GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ACP: user_message_chunk incorrectly emitted during session/prompt turn · Issue #21708 · anomalyco/opencode

ACP: user_message_chunk incorrectly emitted during session/prompt turn #21708

New issue
Copy link
New issue
Copy link
Closed
#21851
Closed
ACP: user_message_chunk incorrectly emitted during session/prompt turn#21708
#21851
Copy link
Assignees
rekram1-node
Labels
acpbugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Description

@RAIT-09
RAIT-09
opened on Apr 9, 2026
Issue body actions

Description

During a normal session/prompt turn, the ACP agent echoes back the user's message as a session/update with user_message_chunk. This causes ACP clients (e.g. Zed Editor,Obsidian Agent Client) to display the user message twice.

Per the ACP spec, user_message_chunk should only be sent during session/load or session/fork to replay conversation history — not during an active prompt turn. The client already knows the message it sent, so echoing it back is incorrect and results in duplication.

This behavior was introduced in #18625, which intentionally added user_message_chunk emission on the live prompt path to align output between the live and replay paths. While the goal of consistency is understandable, the ACP prompt turn lifecycle does not include user_message_chunk, and compliant clients interpret it as a new message — causing the duplication.

If the underlying need is to expose the internal messageId to clients (e.g. for revert), that should be addressed through a different mechanism (such as including it in the session/prompt response) rather than echoing back user messages during the prompt turn.

Related: RAIT-09/obsidian-agent-client#209

I'd like to submit a PR to fix this.

Plugins

No response

OpenCode version

1.4.1

Steps to reproduce

  1. Connect to OpenCode via an ACP client (e.g. Zed Editor, Obsidian Agent Client)
  2. Send any prompt (e.g. "Hello World")
  3. The user message is immediately displayed twice — once from the client's own input, and once from the echoed user_message_chunk session/update

Screenshot and/or share link

Image Image

Operating System

No response

Terminal

No response

Activity

  1. RAIT-09
    added
    bugSomething isn't working
    on Apr 9, 2026
  2. github-actions
    assigned
    rekram1-node
    on Apr 9, 2026
  3. github-actions
    added
    acp
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 9, 2026
  4. VectorialAdventure commented on Apr 10, 2026

    @VectorialAdventure
    VectorialAdventure
    on Apr 10, 2026
    More actions

    期待修复!

    Reacted by RAIT-09
    Reacted by VectorialAdventure
  5. rekram1-node
    closed this as completedin #21851on Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

acpbugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.