Repository navigation
Add OpenCode agent tracking - #18
Conversation
|
@no1msd I have additional working updates that add support for KiloCode, and MimoCode which are based on OpenCode, and well as agent support for Mistral Vibe Code if your looking to adding more agents to Seance. |
|
Thanks @scross01 for contributing OpenCode support. Landed as 8e28286 with your authorship preserved. The final implementation uses per-launch plugin injection and covers configuration preservation, permission/question prompts, resumed sessions, subagents, concurrent sessions, and exit cleanup. CI passed on the final PR revision, alongside local tests and real OpenCode 1.18.26 / OpenRouter GLM-5.3-flash testing; I also verified it manually. Fixed on |
|
@no1msd I played around with adding several more agents using different patterns to encapsulate the agent state and activity, including adding some basic subagent support for OpenCode and others - it diverged a bit from this original PR. I've also been experimenting with adding an embedded browser. I'd be happy to help work some functionality back in to the main seance repo. |
OpenCode sessions now show Running, Needs input, and Idle in the Séance sidebar, with permission/question prompts and completion notifications routed to the correct pane. Tracking handles resumed sessions, subagents, concurrent root sessions, retries, errors, and process exit.
The wrapper injects the bundled plugin for each launch while preserving existing OpenCode configuration, plugins, credentials, and history. Plugin calls are ordered and time-limited so unavailable Séance integration cannot stall OpenCode. A settings toggle controls integration for new panes; remote attachments and
--pureruns pass through without tracking.Validation:
opencode --pure; normal-width panes passed, and tracking clears after the crashed process exits.Closes #9