Skip to content

fix(opencode): Duplicated user request during ACP use#22192

Closed
OpeOginni wants to merge 2 commits intoanomalyco:devfrom
OpeOginni:fix/zed-acp
Closed

fix(opencode): Duplicated user request during ACP use#22192
OpeOginni wants to merge 2 commits intoanomalyco:devfrom
OpeOginni:fix/zed-acp

Conversation

@OpeOginni
Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #21910

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

fixes an ACP integration bug where OpenCode echoed the user’s live prompt back to the editor as user_message_chunk. We don’t need to send user_message_chunk for a live prompt because the client already has that message

How did you verify your code works?

Created a Custom ACP server with my dev opencode instance and tested this agent and noticed no duplicated user request.

Screenshots / recordings

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions
Copy link
Copy Markdown
Contributor

Hey! Your PR title Fix/zed acp doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

I found a potentially related PR:

PR #21851: "fix(acp): stop emitting user_message_chunk during session/prompt turn"
#21851

This appears to be directly related to the current PR #22192. Both address the same issue of not emitting user_message_chunk during ACP interactions. You should verify whether PR #21851 already resolves issue #21910 or if it's a different aspect of the same problem that PR #22192 is addressing.

@OpeOginni OpeOginni changed the title Fix/zed acp fix(opencode): Duplicated user request during ACP use Apr 12, 2026
@OpeOginni OpeOginni closed this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ACP: messages are duplicated

1 participant