Skip to content

fix(opencode): preserve v1 database compatibility - #42444

Merged
thdxr merged 1 commit into
devfrom
v1-db-compat
Aug 14, 2026
Merged

fix(opencode): preserve v1 database compatibility#42444
thdxr merged 1 commit into
devfrom
v1-db-compat

Conversation

@thdxr

@thdxr thdxr commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

  • stop V1 move and revert projection from resetting the removed session context epoch table
  • keep disabled experimental workspace paths from querying the V2 workspace schema
  • cover moved-session projection and disabled workspace listing with regressions

Testing

  • bun test test/session-projector.test.ts test/session-runner.test.ts in packages/core
  • bun test test/control-plane/workspace.test.ts in packages/opencode
  • bun typecheck in packages/core and packages/opencode
  • repository push-hook typecheck: 30 tasks passed
  • file-backed V1 database migrated by V2 and reopened through patched V1 startup, history, prompt, move, and revert paths

Closes #42260

@thdxr
thdxr enabled auto-merge (squash) August 13, 2026 23:48
@thdxr
thdxr merged commit d8bf792 into dev Aug 14, 2026
11 checks passed
@thdxr
thdxr deleted the v1-db-compat branch August 14, 2026 00:05
Qiiks added a commit to Qiiks/opencode that referenced this pull request Aug 15, 2026
…hydration-fix

Sync 86 upstream commits (Aug 6-14) including:
- ID-wrap/chronological message ordering fixes (anomalyco#40987-anomalyco#41006) — upstream
  independently fixed the same bug class as our 07889a1/21964da41;
  adopted upstream versions (parentID === user.id for prompt exit, same
  findIndex boundaries for revert/session, isAfter helper in latest())
- v1.18.18 release (4 releases: v1.18.15-18)
- v1 database compatibility preservation (anomalyco#42444)
- ignore unknown config fields (anomalyco#41312)
- session retry cap with jitter (anomalyco#41939)
- compaction instructions for smaller models (anomalyco#42045)
- DeepSeek V4 Flash sampling defaults (anomalyco#41620)
- Copilot PDF input support detection (anomalyco#41522)
- web search for opencode-go (anomalyco#42630)
- compaction plugin hooks (experimental.session.compacting, messages.transform)
- New models: GLM 5.3, Gemini 3.7 Flash, Grok 4.6, Zen updates

Fork-only changes preserved:
- Synthetic web search backend (synthetic flag in webSearchEnabled)
- Config npm propagation to inherited models
- Tool-result media extraction for models without attachment capability
- packageManager pin to bun 1.4.-canary.1 (Rust runtime)

Conflicts resolved: message-v2, prompt, revert, session, server-session
(adopted upstream), compaction (adopted upstream), registry + websearch
test (merged both synthetic + opencode-go).
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.

opencode2 mutates shared V1 database and breaks opencode 1.x coexistence

1 participant