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
Commit 79b590a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): legacy checkpoints restore files again, and a moved thread stops blocking its old worktree
Drop the blanket refusal for the pre-change root scope: when its cwd matches
the thread's current worktree the normal isolation check applies, as on main,
and a mismatch is already refused as another worktree. The isolation check now
counts only another thread's newest root scope, so a thread that moved away no
longer blocks restores in the worktree it left.
AI-assisted; verified with the tests and tools listed above.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
"File restore requires an isolated worktree. This workspace may contain changes from another thread or a side chat. Rewind the conversation without restoring files instead, or delete side chats you no longer need.";
13
11
14
-
exportconstLEGACY_CHECKPOINT_RESTORE_MESSAGE=
15
-
"This turn was recorded before T3 Code tracked which worktree each turn ran in, so its files can't be restored. Rewind the conversation without restoring files instead.";
16
-
17
12
constOTHER_WORKSPACE_RESTORE_MESSAGE=
18
13
"This turn ran in a different worktree, so its files can't be restored into this one. Rewind the conversation without restoring files instead.";
0 commit comments