GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(core): migrate v1 data to v2 by thdxr · Pull Request #40723 · anomalyco/opencode

Conversation

@thdxr

@thdxr thdxr commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • add the REST-triggered V1 session history migration with resumable progress
  • import previous V2 session data and legacy JSON credentials, including well-known credentials
  • update TUI migration flow and rebased session/ACP event handling

Testing

  • bun typecheck
  • bun test test/session-move.test.ts test/database-migration.test.ts test/v1-migration.test.ts in packages/core
  • bun test test/acp/event-behavior.test.ts test/acp/permission-behavior.test.ts in packages/cli
  • bun run script/migration.ts --check in packages/core

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
thdxr added 14 commits August 5, 2026 21:56
@thdxr
migration
e815beb
@thdxr
feat(core): import previous v2 sessions
28e051e
@thdxr
feat(core): import legacy credentials
1024884
@thdxr
test(core): update project fixture
e2af71d
@thdxr
fix: resolve v2 migration rebase
9e23927
@thdxr
fix(core): accept migrated Windows paths
01dd79f
@thdxr
fix(core): skip orphaned beta sessions
09417d5
@thdxr
fix(core): skip orphaned v1 sessions
22cd987
@thdxr
fix(core): reassign orphaned sessions
3dfdd9d
@thdxr
feat(core): run v1 migration in background
b09f691
@thdxr
chore(core): remove migration test delay
675e801
@thdxr
refactor(core): auto-start v1 migration
35ac83f
@thdxr
fix(core): expose migration vacuum progress
90b8221
@thdxr
refactor(core): remove migration vacuum
3fdfc58
@thdxr
thdxr force-pushed the v2-migration branch from 1493144 to 3fdfc58 Compare August 6, 2026 01:57
@thdxr
thdxr merged commit 0fbe489 into v2 Aug 6, 2026
6 of 8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@thdxr
thdxr deleted the v2-migration branch August 6, 2026 01:58
This was referenced Aug 6, 2026
fix(core): import credentials from previous channel database #40920
Closed
V2: V1 session history is never imported into session_v2 — old sessions invisible in OpenCode 2 #41217
Closed
@gclawes gclawes mentioned this pull request Sep 18, 2026
session: V1→V2 importer skips sessions created after first V2 launch #49641
Closed
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
@thdxr
feat(core): migrate v1 data to v2 (anomalyco#40723)
e0adf46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@thdxr
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.