Skip to content

fix(v2): surface toasts via RPC TUI companion - #395

Merged
EyJunge1 merged 1 commit into
tickernelz:mainfrom
EyJunge1:fix/v2-tui-toast-companion
Oct 10, 2026
Merged

EyJunge1 merged 1 commit into
tickernelz:mainfrom
EyJunge1:fix/v2-tui-toast-companion

Conversation

@EyJunge1

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • bun test tests/v2-legacy-client.test.ts tests/tui-companion.test.ts tests/plugin-v2-loader-contract.test.ts
  • bun run check
  • Under OpenCode v2 with showAutoCaptureToasts: true, confirm a capture toast appears in the TUI (not only on server stdout)
  • Confirm plugins: ["opencode-mem@…"] alone loads the companion (no second plugin entry needed)

Closes #391

Server plugins under OpenCode v2 have no ui.toast, so showToast fell
through to a console-only stub. Emit toast intents over rpc.register and
render them from a new ./tui companion that OpenCode auto-loads.

Refs: tickernelz#391
@EyJunge1
EyJunge1 merged commit e7e8895 into tickernelz:main Oct 10, 2026
13 checks passed
@EyJunge1 EyJunge1 mentioned this pull request Oct 10, 2026
2 of 9 tasks
@EyJunge1
EyJunge1 deleted the fix/v2-tui-toast-companion branch October 15, 2026 21:43
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.

v2: toasts silently dropped — server plugins have no client.tui (please add a TUI companion)

1 participant