You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(acp): emit session plan from todo updates - #40746
ACP clients never show the session plan: the adapter doesn't emit sessionUpdate: "plan". todo.updated already carries the data on the stream the adapter consumes, so this maps it through (Todo.Info → PlanEntry is 1:1). Statuses outside the ACP set (e.g. cancelled) collapse to completed.
Verified: bun test packages/opencode/test/acp/event.test.ts. Also confirmed a standalone ACP agent emitting the same plan updates renders a live plan panel in Zed.
Why it's related: This PR also addresses emitting session plan updates from ACP, but specifically from todowrite tool calls rather than todo updates. The current PR (40746) extends plan emission to the todo.updated stream. These appear to be complementary efforts on the same feature area.
All other results were either the current PR (40746) itself or unrelated changes.
Closing as a duplicate of #31834 — it implements the same todo.updated → plan mapping and is further along (fingerprint dedup, richer tests). I'll help move #31834 forward instead of fragmenting the effort.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
needs:complianceThis means the issue will auto-close after 2 hours.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ACP clients never show the session plan: the adapter doesn't emit
sessionUpdate: "plan".todo.updatedalready carries the data on the stream the adapter consumes, so this maps it through (Todo.Info → PlanEntry is 1:1). Statuses outside the ACP set (e.g.cancelled) collapse tocompleted.Fixes #40745
Verified:
bun test packages/opencode/test/acp/event.test.ts. Also confirmed a standalone ACP agent emitting the sameplanupdates renders a live plan panel in Zed.