chore: upgrade embedded opencode v1.14.38 → v1.15.12#1998
Merged
Conversation
Bumps the pinned opencode binary (constants.json) and @opencode-ai/sdk across all apps, plus the @opencode-ai/plugin pin written into workspace .opencode configs. All SDK changes between versions are additive and backward-compatible (verified method chains, event shapes, DB schema, and CLI flags). Adds a minimumReleaseAgeExclude for @opencode-ai/sdk so same-day publishes can be picked up.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
No issues found across 10 files
Tip: cubic could auto-approve low-risk PRs like this, if it thinks it's safe to merge. Learn more
Re-trigger cubic
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
v1.14.38→v1.15.12(constants.json, which pins the downloaded binary).@opencode-ai/sdk^1.14.38→^1.15.12inapps/{app,server,orchestrator,opencode-router,desktop}.@opencode-ai/pluginpin written into workspace.opencodeconfigs (settings-route.tsx) and the agent-runtime.opencode/package-lock.jsonto1.15.12.minimumReleaseAgeExclude: [@opencode-ai/sdk]inpnpm-workspace.yamlso same-day SDK publishes can be installed (the 3-day age policy otherwise blocked today's1.15.12).Compatibility analysis (v1.14.38 → v1.15.12)
Diffed the opencode fork between both tags and checked every interaction point in our code. No breaking changes:
sdk.gen.ts: purely additive — error type params wentunknown→ typed*Errors(transparent to callers); new methods (vcs.status/apply,workspace.syncList,v2.model,v2.provider) and new optional params. No methods removed/renamed. Every method chain we use is intact.types.gen.ts: all imported types still exist. Only core shape change isSessiongaining optionalcost?/tokens?(additive).Part/Message/SessionStatus/PermissionRequest/QuestionRequest/Todo/QuestionInfounchanged.Eventunion only gained members; the{id,type,properties}envelope is unchanged and every event string we consume still exists.apps/server/src/opencode-db.tswrites directly to SQLite):message/parttables andtime_created/time_updated/datacolumns identical.sessiongainedcost/tokens_*columns but with defaults, so our INSERT/UPDATE is unaffected.serve --hostname --port --cors,--log-level,--version, andOPENCODE_CONFIG_CONTENT/CONFIG_DIR/SERVER_USERNAME/SERVER_PASSWORDall present; stdout lineopencode server listening on http://...unchanged.v1.15.12release; npm has@opencode-ai/sdk@1.15.12and@opencode-ai/plugin@1.15.12.Testing
Static:
pnpm --filter ./apps/{server,orchestrator,opencode-router,app} typecheck— all cleanapps/server build(tsc emit) — cleanbun test session-sync-permissions question-modal permission-approval-modal) — 18 pass / 0 failEnd-to-end (desktop app via
pnpm dev+ CDP):prepare-sidecarreportedOpenCode sidecar updated to 1.15.12; verified spawned binary--version→1.15.12POST /session/:id/prompt_asyncreturned204; assistant replied correctly, status returned to "Ready"200fromevent(SSE),config,provider,mcp,permission,question,sessions,snapshot— zero 4xx/5xx from opencode, no crashes(Could not attach a video; happy to provide one if needed. Repro:
OPENWORK_ELECTRON_REMOTE_DEBUG_PORT=9824 pnpm dev, then drive via CDP athttp://127.0.0.1:9824.)