feat(acp): Add messageID and emit user_message_chunk on prompt/command#18625
Merged
rekram1-node merged 6 commits intoanomalyco:devfrom Apr 2, 2026
Merged
feat(acp): Add messageID and emit user_message_chunk on prompt/command#18625rekram1-node merged 6 commits intoanomalyco:devfrom
rekram1-node merged 6 commits intoanomalyco:devfrom
Conversation
e48b053 to
246bc7f
Compare
246bc7f to
5482973
Compare
7d42a7f to
91ea443
Compare
# Conflicts: # bun.lock # packages/opencode/package.json
cavaldos
pushed a commit
to cavaldos/openpentest
that referenced
this pull request
Apr 6, 2026
anomalyco#18625) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Issue for this PR
Closes #18622
Type of change
What does this PR do?
processMessagealso 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 messagesNote
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