Files
rhema-claw/crates
vhaudiquet acda9cc537 feat(claw): post forge comments only through a tool
A forge dispatch used to post the turn's final assistant message as the thread's comment. A turn that only investigated still posted, and the model could not tell a comment from a private note.

Forge turns now carry `forge_comment`, bound to the dispatched thread and forge client. The tool takes the comment body and posts through `Forge::comment`; a turn that never calls it sends nothing. One comment per turn, retried only when the post itself failed.

The final assistant message stays in the session. The prompt and SYSTEM.md say so, and both ask the model to call the tool only when the thread needs an answer.

The e2e, mention, and continuity tests script the tool call. A new test asserts a text-only turn makes no POST.

fmt, clippy with -D warnings, and the rhema-claw tests pass.
2026-11-30 18:22:46 +01:00
..