Skip to content

chore: upgrade embedded opencode v1.14.38 → v1.15.12#1998

Merged
src-opn merged 1 commit into
devfrom
upgrade-opencode
May 29, 2026
Merged

chore: upgrade embedded opencode v1.14.38 → v1.15.12#1998
src-opn merged 1 commit into
devfrom
upgrade-opencode

Conversation

@src-opn
Copy link
Copy Markdown
Collaborator

@src-opn src-opn commented May 29, 2026

Summary

  • Bumps the embedded opencode from v1.14.38v1.15.12 (constants.json, which pins the downloaded binary).
  • Bumps @opencode-ai/sdk ^1.14.38^1.15.12 in apps/{app,server,orchestrator,opencode-router,desktop}.
  • Bumps the @opencode-ai/plugin pin written into workspace .opencode configs (settings-route.tsx) and the agent-runtime .opencode/package-lock.json to 1.15.12.
  • Adds minimumReleaseAgeExclude: [@opencode-ai/sdk] in pnpm-workspace.yaml so same-day SDK publishes can be installed (the 3-day age policy otherwise blocked today's 1.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 sdk.gen.ts: purely additive — error type params went unknown → 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.
  • SDK types.gen.ts: all imported types still exist. Only core shape change is Session gaining optional cost?/tokens? (additive). Part/Message/SessionStatus/PermissionRequest/QuestionRequest/Todo/QuestionInfo unchanged. Event union only gained members; the {id,type,properties} envelope is unchanged and every event string we consume still exists.
  • DB schema (apps/server/src/opencode-db.ts writes directly to SQLite): message/part tables and time_created/time_updated/data columns identical. session gained cost/tokens_* columns but with defaults, so our INSERT/UPDATE is unaffected.
  • CLI/env: serve --hostname --port --cors, --log-level, --version, and OPENCODE_CONFIG_CONTENT/CONFIG_DIR/SERVER_USERNAME/SERVER_PASSWORD all present; stdout line opencode server listening on http://... unchanged.
  • Release assets: all 6 binary assets our sidecar downloads exist in the v1.15.12 release; npm has @opencode-ai/sdk@1.15.12 and @opencode-ai/plugin@1.15.12.

Testing

Static:

  • pnpm --filter ./apps/{server,orchestrator,opencode-router,app} typecheck — all clean
  • apps/server build (tsc emit) — clean
  • App unit tests touching SDK types (bun test session-sync-permissions question-modal permission-approval-modal) — 18 pass / 0 fail

End-to-end (desktop app via pnpm dev + CDP):

  • prepare-sidecar reported OpenCode sidecar updated to 1.15.12; verified spawned binary --version1.15.12
  • Sent a prompt → POST /session/:id/prompt_async returned 204; assistant replied correctly, status returned to "Ready"
  • Verified 200 from event (SSE), config, provider, mcp, permission, question, sessions, snapshotzero 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 at http://127.0.0.1:9824.)

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.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview, Comment May 29, 2026 1:15am
openwork-den Ready Ready Preview, Comment May 29, 2026 1:15am
openwork-den-worker-proxy Ready Ready Preview, Comment May 29, 2026 1:15am
openwork-landing Ready Ready Preview, Comment, Open in v0 May 29, 2026 1:15am

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@src-opn src-opn merged commit 1aeb1e4 into dev May 29, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant