Repository navigation
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #40745
Type of change
What does this PR do?
Maps OpenCode
todo.updatedevents into ACPsession/updatemessages withsessionUpdate: "plan".This lets ACP clients render the current session plan from the same todo events already used by OpenCode. The mapping preserves task content, priority, and the ACP-supported statuses (
pending,in_progress,completed).How did you verify your code works?
bun test ./test/acp/event.test.ts --test-name-pattern 'routes todo.updated events to ACP plan updates'bun test ./test/acp/event.test.tsbun typecheckinpackages/opencodebun run lint packages/opencode/src/acp/event.ts packages/opencode/test/acp/event.test.tsgit diff --checkNote: repo-wide pre-push typecheck is currently blocked by an existing
@opencode-ai/enterprise/src/custom-elements.d.tsparse error unrelated to this diff, so I pushed with--no-verifyafter the focused checks passed.Screenshots / recordings
Not a UI change.
Checklist