Repository navigation
Fix legacy session migration and add confirmed data reset - #3326
Merged
Merged
Conversation
- Convert workspace references in imported session metadata and state to the destination registry IDs. - Resolve path-only assistant references uniquely while preserving unknown IDs and source data.
Convert legacy native Auto selectors to primary during migration and history reads so migrated sessions can resolve their model immediately. Preserve external agent selectors and read-only history behavior. Add migration, metadata, and session restore regression coverage.
Allow users to clear OpenBitFun destination data before retrying migration. Require directory review and explicit confirmation, protect source and migrator directories, check active writers, and report partial failures. Reload migration state after reset and document the recovery workflow.
wsp1911
marked this pull request as ready for review
October 9, 2026 13:14
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
automodel selectors toprimaryduring migration and historical session loading.Type and Areas
Type: Bug fix, feature, docs
Areas: Data Migrator, session persistence, Rust core, desktop/Tauri
Motivation / Impact
Migrated assistant sessions could retain obsolete workspace IDs and fail when continuing a conversation with “Workspace ID is unavailable on this host.” Session workspace references now migrate together with their paths.
Native sessions using the retired
autoselector could display an unavailable model. Both persisted model fields are converted during migration, and existing historical sessions receive read compatibility without rewriting files on display. External-provider selectors and other model IDs remain unchanged.Users can now review destination directories and type
RESETto permanently clear OpenBitFun data before migrating again.Verification
Recorded during implementation on Windows:
cargo test -p openbitfun-data-migrator -p openbitfun-legacy-migration-adapters -p openbitfun-legacy-migration --lib: 88 tests passed.cargo test -p openbitfun-legacy-migration --test migration_engine_contracts: 10 tests passed.node --test scripts/data-migrator-tauri-build.test.mjs scripts/data-migrator-report.test.mjs: 9 tests passed.node --check src/apps/data-migrator/ui/app.js: passed.pnpm run fmt:rsandpnpm run theme:color-audit:all: passed.Confirmed for the final four-commit range:
node scripts/data-migrator-release.mjs --check-version: 0.1.2.git diff HEAD~4 HEAD --check: passed.Reviewer Notes
Checklist