Repository navigation
feat(wsl-mover): hold the stale window's saves from commit and reload it, replacing the re-apply patches (restore redesign 2/3) - #32965
Closed
nwparker wants to merge 5 commits into
Conversation
2 of 3 tasks
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 24, 2026 01:02
f055e2a to
d42777c
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 24, 2026 01:02
98e3702 to
ce77bdd
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 24, 2026 02:28
d42777c to
f080760
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 24, 2026 02:29
ce77bdd to
4083c81
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 24, 2026 02:35
f080760 to
a775846
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
2 times, most recently
from
October 24, 2026 02:47
9c76368 to
f89d4cb
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 24, 2026 03:17
3e5a2f4 to
5356b3e
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 24, 2026 03:17
f89d4cb to
45c58fe
Compare
2 of 3 tasks
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 24, 2026 09:13
45c58fe to
a524f62
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 25, 2026 01:47
fcbb767 to
8c8347e
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 25, 2026 01:47
247dfe8 to
0797306
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 25, 2026 02:21
8c8347e to
b99059c
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
2 times, most recently
from
October 25, 2026 06:31
c67e00c to
46bc798
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 25, 2026 06:31
b99059c to
37bf312
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 25, 2026 08:24
46bc798 to
ca0cf9b
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 25, 2026 08:24
37bf312 to
1a9a420
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 25, 2026 10:17
ca0cf9b to
e37bcce
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 25, 2026 10:17
1a9a420 to
40e4d64
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 25, 2026 11:07
e37bcce to
e8d20f8
Compare
…ds it (restore redesign 2/3) The window open across a move hydrated before the desktop rewrite, so every save it made (session, UI, the unload checkpoint behind Reload now) wrote stale state back, and three files re-applied the rewrite after it: echoed browser tabs, the seeded view state's redo and the stale-window reapply. Now main holds that window's saves from the commit request until its reloaded page has loaded, and reloads it itself once the rewrite is on disk. Use on this computer again takes the same path, replacing its per-project release hold. Co-Authored-By: Claude <[email protected]>
A rewrite pass that ends while a commit request is out (another move's retry) must not reload the window early: the reloaded page could save its view of projects the host is publishing. Co-Authored-By: Claude <[email protected]>
…baseline Co-Authored-By: Claude <[email protected]>
…sing A workspace whose pane was still restoring, or had just spawned, could miss its final checkpoint on the first Sleep and stay awake; the move then refused with "Orca could not pause the terminals" although a second Sleep stopped it (awin verify-7, 6e). The pause now sleeps the failed workspaces up to twice more, a second apart, and refuses only when they keep failing. Co-Authored-By: Claude <[email protected]>
… of refusing at once When one workspace of a move failed to pause, the move was refused right away with host_terminal_stop_failed, and the retry added for awin verify-7 never ran (awin verify-8, 6e). The window rolls a failed workspace's panes back and reports that rollback as an error. The pause's persist step waited on every workspace and failed on that error, so the whole pause call threw instead of returning the failed workspace. The retry only ran on a returned failure, and the move's first pause had no retry at all. The persist step now fails only on errors from workspaces main reported as slept; main already reports the failed ones. Both of the move's pauses sleep a failed workspace up to twice more before refusing. Each attempt is a fresh pause with its own id, so a re-sleep is not counted as a duplicate. Co-Authored-By: Claude <[email protected]>
nwparker
force-pushed
the
nwparker/wsl-mover-restore-pane-history
branch
from
October 25, 2026 12:15
96acf50 to
46a13cd
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-restore-hold-reload
branch
from
October 25, 2026 12:15
e8d20f8 to
88e80a7
Compare
This was referenced Oct 25, 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.
ELI5
When you move a project to a WSL host, the Orca window that was open during the move still remembers the old layout. Every time it saved, it wrote that old layout back, and three separate patches kept re-fixing it afterwards. Now the window simply isn't allowed to save from the moment the move commits until Orca reloads it, and Orca reloads it itself. "Use on this computer again" uses the same path.
What Changed
wsl-move-echoed-browser-tabs, the seeded view state's redo,wsl-move-stale-window-reapply). Browser tabs, drafts and focus still went missing in real runs.wsl-move-window-write-hold.ts) drops the window's session saves, UI saves and unload-checkpoint staging:wsl-move-echoed-browser-tabs.ts,wsl-move-stale-window-reapply.ts(and its test),wsl-move-release-session-hold.ts, theafterUnloadStagehook, the startup focus re-apply, and thewindowOpenregistry input. The seeded view state now only runs on the first seed.Why
Each re-apply patch added another writer for the same fields, which is what kept bringing the losses back. One rule (main writes, the stale window can't, then it reloads) gives each field a single writer. Forcing the reload, rather than waiting for the user to click "Reload now", closes the gap where a stale window keeps saving indefinitely. This also clears the inherited layout-writer ratchet failure, which came from the deleted echo file.
Linked Issue
Refs #32956 (restore redesign 1/3). Stacked on it.
Visual Proof
N/A: no new UI. The window reloads on its own after a move instead of waiting for "Reload now". An end-to-end run follows in 3/3.
Testing
Locally: node typecheck, 695 move/IPC tests, oxlint, the code-quality plugins and the layout-writer ratchet all pass.
Review
Self-reviewed (the author can't spawn a separate reviewer). Known edges:
Agent skill upstream boundary
Notes
Gated behind the internal WSL hosts gate. SSH, mobile and folder workspaces are unaffected: the hold only applies while a WSL move or its undo is rewriting this desktop.