Repository navigation
Feat/opencode v2 migration - #89
Closed
JeanLucBou wants to merge 6 commits into
Closed
JeanLucBou wants to merge 6 commits into
JeanLucBou wants to merge 6 commits into
Conversation
- Replace @opencode-ai/plugin and @opencode-ai/sdk with @opencode/plugin and @opencode/client 2.x
- Rewrite entrypoint with Plugin.define/setup(ctx), tool and command transforms, session/tool hooks, event subscription and RPC toasts
- Migrate all 18 tools to V2 definitions returning { content }
- Migrate SDK client, monitor events, notifications, question relay and model tracking
- Add TUI part (src/tui.ts) and RPC contract (src/rpc.ts) for toast notifications
- Update tests, CI, docs and package exports for V2
- Generate and propagate a per-job server password (V2 serve always requires auth) - Detect completion via session.execution.succeeded (serve never emits idle) - Answer V2 question forms instead of posting prompts that do not unblock the tool - Use resume:false for synthetic command/notification output (no model turn) - Backfill pending permissions and reconcile finished sessions on SSE subscribe - Treat shell command strings as commands, not paths, when evaluating policy - Relay permission prompts through the control-center notifier, not the job server
- run vanilla plan jobs via 'opencode run' (TUI has no top-level -m flag) - do not treat a vanished pane with no exit status as success - bind the plugin location into mc_report and thread cwd through job state/reports - allow valid plan transitions running -> creating_pr/completed
… TUI - store pre_merge/pre_pr approvals in plan.json so mc_plan_approve works across processes\n- honor and consume persisted merge approvals in the reconciler\n- route orchestrator toasts through the global RPC toast channel\n- emit auto-status toasts on session.execution.succeeded in V2\n- document the separate cli.json entry required for TUI notifications\n- add regression tests for persisted supervisor approvals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brief description of the changes.
Changes
Testing
bun run buildpassesbun testpassesNotes
Any additional context or trade-offs worth mentioning.