GeezerVison is showing github.com — feat(acp): Add messageID and emit user_message_chunk on prompt/command by noamzbr · Pull Request #18625 · anomalyco/opencode
Conversation
noamzbr
commented
Mar 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #18622
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
- Adds messageID to the ACP ContextChunks created by the acp adapter
- Call
processMessage also on user messages in the live path. This is so the updates seen on the "live" (prompt / command) path are the same to what is emitted when hitting /load (replay path) - which does emit these chunks for the user messages
Note Opencode messageID are not UUID, so this is not strictly speaking compliant with the experimental ACP messageID standard.
I personally think that the standard should adapt to allow for ACP messageID to actually be the internal messageID stored and managed by the agent server - otherwise clients can't use it to interface directly with the server when needed (e.g. - revert)
How did you verify your code works?
Used the emitted messageIds to revert messages, and reconcile the same message between live (prompt) path and reload path.
Screenshots / recordings
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
# Conflicts:
# bun.lock
# packages/opencode/package.json
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Apr 9, 2026
Rwanbt
pushed a commit
to Rwanbt/unifia
that referenced
this pull request
May 5, 2026
AIALRA-0
pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
[FEATURE]: Add ACP messageId
Uh oh!
There was an error while loading. Please reload this page.
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.
|