You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
V1→V2 migration: one off-format message ID aborts it; migrated sessions stay invisible (stale project_id + path) #55663
After upgrading to 2.0.29, all pre-upgrade sessions disappeared from the TUI picker. Nothing was lost — three separate migration defects combined to hide them:
A single off-format message ID aborts the whole V1 migration. One row with id='msg-init1' (hyphen instead of msg_...) failed schema validation (Session.Message.ID must start with "msg_") and stopped the migration after ~52 of 3681 sessions.
Migrated sessions keep project_id='global'. The TUI session list filters by the current project (project + subpath params, see packages/tui/src/component/dialog-session-list.tsx), so migrated sessions never match.
Migrated sessions keep the stale path (subpath relative to the old / worktree, e.g. home/user/project) while the TUI requests subpath=''. Zero matches even after fixing (2).
Migration should skip-and-log (or auto-normalize) rows failing ID validation instead of aborting.
Migration should remap project_id to the per-directory project and recompute path relative to it, so migrated sessions are visible without manual DB edits.
Thanks for the detailed write-up and the verified workaround guide!
I think this is a duplicate of existing reports: it combines two known problems, mainly #54736 for the aborted migration and #49827 for the hidden sessions. Possible duplicates and related issues, ordered by likelihood:
Your numbers (one bad ID stopping the import after about 52 of 3681 sessions, plus 760 and 798 remapped rows) and your gist would be useful as comments on #54736 and #49827.
The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.
Confirmed duplicate — evidence and recovery steps posted on #54736 (migration abort) and #49827 (hidden sessions, incl. the stale-path finding). Closing this one; tracking continues there and on PR #51935.
Thanks for confirming, and for posting your evidence and recovery steps on #54736 and #49827. Follow those two issues and PR #51935 for progress. This issue will be closed as a duplicate.
Closing as a duplicate, as you confirmed. The aborted migration is tracked in #54736, the hidden sessions (project_id and the stale path) in #49827, and PR #51935 has the proposed fix for the hidden sessions. Thanks again for the detailed diagnosis and for adding your evidence there.
Activity
opencode-agent commentedon Oct 15, 2026
Thanks for the detailed write-up and the verified workaround guide!
I think this is a duplicate of existing reports: it combines two known problems, mainly #54736 for the aborted migration and #49827 for the hidden sessions. Possible duplicates and related issues, ordered by likelihood:
Session.Message.ID must start with "msg_"). One legacy V1 message ID without themsg_prefix aborts the whole V1 migration instead of being skipped or fixed. It has been reproduced on 2.0.27 and on the latestdev.project_id = 'global'while V2 creates a project for each directory, so the session picker hides them.project_idalone is not enough andpathhas to be reset too, which matches your point 3.globalsessions to the project of their directory and recomputepath. It also repairs databases that were already migrated.Your numbers (one bad ID stopping the import after about 52 of 3681 sessions, plus 760 and 798 remapped rows) and your gist would be useful as comments on #54736 and #49827.
The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.
marcello-russo commentedon Oct 15, 2026
Confirmed duplicate — evidence and recovery steps posted on #54736 (migration abort) and #49827 (hidden sessions, incl. the stale-path finding). Closing this one; tracking continues there and on PR #51935.
opencode-agent commentedon Oct 15, 2026
Thanks for confirming, and for posting your evidence and recovery steps on #54736 and #49827. Follow those two issues and PR #51935 for progress. This issue will be closed as a duplicate.
opencode-agent commentedon Oct 16, 2026
Closing as a duplicate, as you confirmed. The aborted migration is tracked in #54736, the hidden sessions (
project_idand the stalepath) in #49827, and PR #51935 has the proposed fix for the hidden sessions. Thanks again for the detailed diagnosis and for adding your evidence there.