feat: migrate brain to bus system — real-time push with HTTP fallback - #130
Conversation
There was a problem hiding this comment.
3 issues found across 4 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
There was a problem hiding this comment.
1 issue found across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
There was a problem hiding this comment.
2 issues found across 3 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
There was a problem hiding this comment.
1 issue found across 2 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
Summary
@four-bytes/opencode-plugin-libdependency from v0.3.0 → v0.4.0 (adds BusClient/BusTui)BusClient.publish()on every writeBusTui.connect()for real-time push, HTTP polling as fallbackChanges
src/status.ts— Import and useBusClientfor real-time bus push on status updatessrc/tui.tsx— Import and useBusTuifor WebSocket subscription alongside HTTP fallback pollingpackage.json— Bump plugin-lib to v0.4.0 for bus classesbun.lock— Updated lockfileSummary by cubic
Migrate the brain plugin to the plugin bus for real-time WebSocket updates with HTTP fallback. Adds session-scoped channels, ingest progress, and safe reconnect/unmount handling; stops polling once the socket connects and uses
@four-bytes/opencode-plugin-libv0.5.0.New Features
brain/{sessionID}viaBusClient(fallback tobrain/statuswhen no session).chat.messageviasetSessionId; passsession_idto the sidebar TUI.BusTui; keeps HTTP polling as fallback; shows ingest progress withProgressBar.Bug Fixes
ProgressBarin the non-centered status row ([bug] duplicate ProgressBar renders in non-centered Brain sidebar #133).main(no behavior changes).Written for commit 21c8b33. Summary will update on new commits.