Skip to content

fix(opencode): propagate TUI worker RPC errors#28044

Open
PeterPonyu wants to merge 1 commit into
anomalyco:devfrom
PeterPonyu:fix/opencode-28043-rpc-worker-errors
Open

fix(opencode): propagate TUI worker RPC errors#28044
PeterPonyu wants to merge 1 commit into
anomalyco:devfrom
PeterPonyu:fix/opencode-28043-rpc-worker-errors

Conversation

@PeterPonyu
Copy link
Copy Markdown

Issue for this PR

Closes #28043

Type of change

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

What does this PR do?

Makes worker RPC failures return a structured error response instead of rejecting the worker message handler. The parent RPC client now rejects the matching request and can keep handling later responses.

This keeps TUI worker communication from getting stuck behind a failed RPC call.

How did you verify your code works?

  • cd packages/opencode && bun test test/util/rpc.test.ts test/lsp/index.test.ts -> 10 pass, 0 fail
  • cd packages/opencode && bun typecheck -> pass
  • git diff --check -> pass

Screenshots / recordings

Not a UI change.

Checklist

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

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: TUI worker RPC errors can leave requests unresolved

1 participant