Skip to content

fix(opencode): bump runtime for session schema compatibility#2380

Open
snvtac wants to merge 1 commit into
different-ai:devfrom
snvtac:snvtac/2370-cannot-create-new-session
Open

fix(opencode): bump runtime for session schema compatibility#2380
snvtac wants to merge 1 commit into
different-ai:devfrom
snvtac:snvtac/2370-cannot-create-new-session

Conversation

@snvtac

@snvtac snvtac commented Jun 26, 2026

Copy link
Copy Markdown

Summary

  • Bump the bundled OpenCode sidecar from v1.17.3 to v1.17.11.
  • Bump all direct @opencode-ai/sdk consumers to ^1.17.11 and update the lockfile.

Why

Issue

Scope

  • OpenCode sidecar version pin in constants.json.
  • Direct SDK dependency pins in app, desktop, server, orchestrator, and opencode-router packages.
  • Minimal lockfile update for @opencode-ai/sdk@1.17.11.

Out of scope

  • No OpenWork session UI or server route behavior changes.
  • No OpenCode DB repair/migration code in OpenWork.

Testing

Ran

  • pnpm install --frozen-lockfile --ignore-scripts --store-dir ../pnpm-store
  • git diff --check
  • pnpm --filter openwork-server typecheck
  • pnpm --filter @openwork/app typecheck
  • pnpm --filter @openwork/desktop typecheck:electron
  • pnpm --filter opencode-router typecheck
  • pnpm --filter openwork-orchestrator typecheck
  • PATH=$PWD/../opencode-bin/extract:$PATH HOME=$PWD/../opencode-e2e-home XDG_DATA_HOME=$PWD/../opencode-e2e-data XDG_CONFIG_HOME=$PWD/../opencode-e2e-config OPENCODE_DISABLE_AUTOUPDATE=1 OPENCODE_CHANNEL=local OPENCODE_CLIENT=openwork-e2e node apps/app/scripts/e2e.mjs --dir "$PWD"
  • sqlite3 ../opencode-e2e-data/opencode/opencode.db "pragma table_info('session_context_epoch');"

Result

  • pass: frozen lockfile install reported lockfile up to date and supply-chain policy passed.
  • pass: all five SDK consumers typechecked.
  • pass: real OpenCode v1.17.11 smoke returned healthy: true, created a session, ran session.prompt noReply, and wrote 1 message.
  • pass: the smoke DB's session_context_epoch columns were session_id, baseline, snapshot, baseline_seq; replacement_seq was absent while prompt write still succeeded.

CI status

  • pass: not run remotely yet; local gates above passed.
  • code-related failures: none observed.
  • external/env/auth blockers: full AI model call skipped because the regression is in prompt/session DB setup and the local smoke intentionally used noReply to avoid requiring provider credentials.

Manual verification

  1. Downloaded the v1.17.11 darwin-arm64 OpenCode release asset used by constants.json.
  2. Started opencode serve from that binary with isolated HOME/XDG dirs.
  3. Verified session.prompt noReply succeeds on a DB schema without replacement_seq.

Evidence

  • Runtime smoke output: health.version = 1.17.11, session.prompt noReply status ok, message count 1.
  • Schema check: session_context_epoch has no replacement_seq column.
  • Video/screenshot: N/A; this is a backend/runtime DB compatibility path validated by scripted smoke output.

Risk

  • Low-to-medium: this updates the embedded OpenCode runtime across OpenWork consumers. Typechecks passed and the release asset exists for supported sidecar platforms.

Rollback

  • Revert this PR to restore OpenCode/SDK 1.17.3 pins.

Review in cubic

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Jun 26, 2026 8:54am

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

@snvtac is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 7 files

Re-trigger cubic

@fussdeek-del fussdeek-del left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, so far nothing unusual found.

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.

[Bug]: Cannot create new session

2 participants