Repository navigation
chore: updated for OpenCode v2 stable - #4
Merged
danyel117 merged 3 commits intoOct 13, 2026
Merged
Conversation
Migrate V2 types from the preview alias to stable @opencode/plugin: - devDeps: @opencode-ai/plugin-v2 (beta-18593 alias) -> @opencode/plugin 2.0.16, @opencode-ai/theme -> @opencode/theme 2.0.16, add @opencode/client 2.0.16 - src/server.ts, src/tui.tsx, test/tui-v2.test.ts: import V2/client types from @opencode/* instead of @opencode-ai/* preview packages - tui sidebar: theme.text.default/subdued -> base/muted (stable token names) - engines: declare opencode >=1.17.1 || >=2.0.0 (dual V1 + V2 support kept) - README: OpenCode 2 preview section -> stable (install via plugin add) Verified: bun run typecheck, bun run lint, bun test (51 pass), bun run build, npm pack --dry-run.
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
Support stable OpenCode 2 with the current scheduler and keep-alive behavior while preserving the OpenCode 1 entrypoints.
Changes
@opencode/plugin,@opencode/client,@opencode/schema, and@opencode/theme2.0.16 development types; remove residual preview imports.session.active()with its native idle barrier. Bound local waiting explicitly because the stable promise adapter does not forward request-option cancellation; reuse one pending native wait per session and stop local waiters on unload.theme.text.base/muted, test actual RGBA colors, and align OpenTUI core/solid at 0.5.10.dist/server.jswith the integrated ownership and keep-alive changes from Coordinate loop scheduling across OpenCode plugin instances #2/feat: add keep_alive so a background session's future survives its starting turn #3.Validation
Moved prior node_modules aside and installed with
bun install --frozen-lockfilebefore the full local gate:The plugin does not yet integrate the stable V2 compaction hook; the ordinary context reminder remains implemented.