Repository navigation
feat(wsl-mover): "Use on this computer again" brings a moved project back as it was before the move - #29833
Closed
nwparker wants to merge 1 commit into
Closed
feat(wsl-mover): "Use on this computer again" brings a moved project back as it was before the move#29833nwparker wants to merge 1 commit into
nwparker wants to merge 1 commit into
Conversation
Contributor
Author
|
CI: green except one known Windows Arm flake that isn't caused by this PR.
|
This was referenced Oct 16, 2026
Merged
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7a-moved-project-chats
branch
from
October 20, 2026 21:06
5d9dcb2 to
fa92dab
Compare
nwparker
force-pushed
the
nwparker/wsl-move-use-locally-again
branch
from
October 20, 2026 21:06
7731883 to
e548ed1
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7a-moved-project-chats
branch
from
October 20, 2026 23:16
fa92dab to
76f3e02
Compare
nwparker
force-pushed
the
nwparker/wsl-move-use-locally-again
branch
from
October 20, 2026 23:16
e548ed1 to
bbfbd37
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7a-moved-project-chats
branch
from
October 21, 2026 00:46
76f3e02 to
c035565
Compare
nwparker
force-pushed
the
nwparker/wsl-move-use-locally-again
branch
from
October 21, 2026 00:47
bbfbd37 to
56aafa7
Compare
2 tasks done
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7a-moved-project-chats
branch
from
October 21, 2026 05:16
c035565 to
ed9c23a
Compare
nwparker
force-pushed
the
nwparker/wsl-move-use-locally-again
branch
from
October 21, 2026 05:17
56aafa7 to
fe605f7
Compare
…back as it was before the move Co-Authored-By: Claude <[email protected]>
nwparker
force-pushed
the
nwparker/wsl-move-use-locally-again
branch
from
October 23, 2026 10:12
fe605f7 to
d5806d5
Compare
nwparker
changed the base branch from
nwparker/wsl-mover-d1b-7a-moved-project-chats
to
nwparker/wsl-mover-d1b-10-hooks
October 23, 2026 10:33
This was referenced Oct 23, 2026
Contributor
Author
|
Contained in the dark landing PR #34059 (its head commit is an ancestor of the landing branch). Closing in favour of it; branch kept. |
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
A project that was moved to its WSL host can be brought back to this computer: "Use on this computer again" on its sidebar entry. This is the safety net in place of a reverse mover (owner decision).
Before / after
Before: once a project moved, there was no way back except the narrow "undo if unchanged". If the WSL host broke, the project's Orca state, meaning its tabs, session and settings, was only reachable through the host.
After: the moved project's entry has an undo-arrow button. A plain confirmation says:
On confirm, the project's pre-move rows and session are listed here again, including its slept terminal tab and its chats.
Mechanism
bringWslMovedProjectBackfinds the newest committed move that took the project, using its distro's journal chain, and removes that record (removeCommittedWslMoveCutover). The retained source rows, never rewritten since the move, stop being hidden.wsl-move-release-session-hold.ts) and reloads the window. The hold lifts once the new page has loaded, and that page hydrates the full pre-move session from disk.Fitting it into the chain (restacked onto #32001)
wslMove:useProjectHereAgainsits beside the driver's preview, start, cancel and listUnfinished channels. Like them, it checks the gate first, so with the gate closed nothing is read. It also answers only the main window. Telemetry is unchanged.removeNewestInChain.removeCommittedWslMoveCutovernow just checks that the move committed and then calls it, the same wayremoveUncommittedWslMoveCutoverdoes. The duplicate chain check is gone.orcadRetainedmarks, because no committed move explains them anymore. The retention test now runs the real release instead of removing the record by hand.wsl-move-running-moves.tsso both sides can read it.wslMove.useProjectHereAgain.Why this approach
The owner decided against a reverse mover. Because the repository files never move, the only thing at risk is Orca's own state, and the retained rows exist exactly for this. Reloading the window is the one way to rehydrate the session without a second, partial hydration path.
Testing
wsl-move-use-locally.test.ts: release, a committed move with an unfinished rewrite, not-moved, superseded, gate closed;wsl-move-handlers.test.ts: input validation, then the hold staying until the reloaded page loads;wsl-moved-project-use-here.test.ts: the confirmation copy and refusals;WslMovedProjectsSection.test.tsx: the button is present.tests/e2e/wsl-move-moved-project-chats.spec.ts: a new case brings aretainedmove back headless. It checks that the row lists again, the entry goes away, and the persisted session still holds[terminal, chat]. Both cases pass locally (screenshots above come from that hidden window).