Skip to content

Commit 88727e2

Browse files
committed
docs: name why OpenCode re-reports a prompt once per agent step
OpenCode's summariser rewrites the user message's summary.diffs on every agent step (anomalyco/opencode#43551), and the plugin forwards each of those message.updated events as a new turn_started. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FHpDhJupTKqHt7Lw3uJT8q
1 parent 07ca379 commit 88727e2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎HANDOFF.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,12 @@ three.
379379
About 200 `tool_use` records a week share a `tool_use_id` without
380380
matching; only `postToolUse` writes `tool_use`, and it comes only through
381381
Claude Code's registration, so they are not echoes. OpenCode: the plugin
382-
reports a user message as `turn_started` on every `message.updated`, which
383-
fires again whenever OpenCode rewrites that message, with `summary.title`
384-
as the prompt; it also forwards `message.part.updated` text without
385-
checking the role. A `msg_…` id names one message, so a second
386-
`turn_started` for it is always a re-report.
382+
reports a user message as `turn_started` on every `message.updated`, with
383+
`summary.title` as the prompt — and OpenCode's summariser rewrites the user
384+
message's `summary.diffs` on every agent step, so that event fires once per
385+
step (`anomalyco/opencode#43551`). The plugin also forwards
386+
`message.part.updated` text without checking the role. A `msg_…` id names
387+
one message, so a second `turn_started` for it is always a re-report.
387388
- Nothing produces `interrupted_user`; `is_interrupt` on a failed tool call is
388389
the only signal anywhere that a person stopped the work.
389390
- An older `v` is still read as if it were current. `scan` rejects a record

0 commit comments

Comments
 (0)