Repository navigation
Conversation
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7c-main-stores
branch
from
October 20, 2026 21:06
bcc1373 to
8d312b4
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7d-renderer-stores
branch
from
October 20, 2026 21:06
033fa04 to
589c670
Compare
Closed
7 of 9 tasks
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7c-main-stores
branch
from
October 20, 2026 23:16
8d312b4 to
574e5f0
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7d-renderer-stores
branch
from
October 20, 2026 23:17
589c670 to
16fbe29
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7c-main-stores
branch
from
October 21, 2026 00:45
574e5f0 to
dd04a70
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7d-renderer-stores
branch
from
October 21, 2026 00:46
16fbe29 to
d82cf50
Compare
…heir UI through catalog prunes (D1b-7d) Registers the renderer-side desktop rewrite stores quick-open-history, file-view-preferences and notebook-environments. The renderer copies each moved workspace's entry to its WSL host key, marks it applied in the same storage, and records the ledger entry; main requests a storage flush first and accepts only the main window. Committed moves are re-listed for re-application at every startup. Catalog prunes keep filters, hook trust and setup-script dismissals of moved repos.
…migration folder (D1b-7d)
…manifest exporter, where 7d moved it (D1b-7d)
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7c-main-stores
branch
from
October 21, 2026 05:17
dd04a70 to
0a93bdd
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-7d-renderer-stores
branch
from
October 21, 2026 05:17
d82cf50 to
df675bf
Compare
This was referenced Oct 22, 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.
Shared paths this PR touches
App.tsxstarts the renderer rewrite once when it mounts. With no committed move, or with the internal WSL gate closed, that is one IPC call that returns an empty list. The moved-projects list fetch (from 7a) now starts before the local repo list instead of after it.wslUncPathToLinuxmoves tosrc/shared/wsl-paths.ts.rewriteWorktreeIdPathis extracted intosrc/shared/worktree/id.ts, and main'srewriteOrcadMigrationWorktreeIdnow calls it.ELI5
Some state is saved in the app window's own browser storage rather than in Orca's profile file: recent files for quick open, CSV column widths, PDF zoom, and which Python a notebook uses. When a WSL project moves to its WSL host, that state is still keyed by the old Windows path, so the moved project would come back with these settings forgotten. This PR copies them to the host's keys.
It also fixes a second problem. When the WSL host's project list hasn't loaded yet, the sidebar could throw away the moved project's filters, hook trust and "don't ask again about the setup script" choices. Nothing in the product writes a move yet, and everything is behind the internal WSL host gate, so nothing changes for anyone today.
What Changed
Before:
After:
Mechanism:
quick-open-history,file-view-preferencesandnotebook-environments.wslMove:listPendingRendererRewrites). For each store it then:wslMove:recordStoreRewritten).destination-committedonward, and each startup re-applies any store whose marker is missing. The marker sits in the same storage area as the data, so the two are lost together and the store simply runs again. Copies are added only when the host key is absent, so re-running never duplicates or overwrites anything.scopeRootPaths, from the manifest). A notebook interpreter is carried only when it lives inside the distro; a Windows Python can't run on the host.withWslMovedRepoIdsadds the moved repo ids fromwslMovedProjectsto the set each prune keeps.withWslMovedSetupScriptDismissalskeeps any dismissal of a moved repo, whichever host it names.Store disposition (renderer)
orca.quick-open-history.v1(item 42)orca.pdf.scale-preferences.v1,orca.csv.column-widths.v1(item 72)orca.notebookPythonEnvironments(item 43)filterRepoIds,agentsFilterRepoIds,trustedOrcaHooks,setupScriptPromptDismissedRepoIds(renderer copies)collapsedGroups,workspaceCleanupdismissals,manualRepoOrder,showDotfilesByWorktree,explorerDisplayRootByWorktree, visible-host lists,lastActiveWorktreeIdui:stateChangedbroadcast, and the UI writer only sends fields the window itself changed.acknowledgedAgentsByPaneKey,activityClearedAtByPaneKey,manuallyUnreadTurnsByPaneKeyorca:structuredAgentLaunches:v1(item 44)expandedDirs, git status, huge-repo warnings (item 46)orca.wsl-move.renderer-rewrites.v1(new)Why
Copy instead of move: this matches 7c. An older build after a downgrade still reads the local keys, and the local rows are hidden rather than deleted.
Markers plus re-application, not trusting the flush: the renderer can't force its storage to disk, and Electron's
flushStorageData()only schedules the write. If we re-applied at every startup with no marker, an entry the user deleted (or that dropped out of the recent-files limit) would come back. Writing the marker after the data in the same storage area means a lost flush loses both, and the store just runs again.Copying through the store modules: quick open and notebooks keep in-memory caches that overwrite storage on their next save. Writing to storage behind their backs would be undone.
Guarding the prune with
wslMovedProjectsrather than delaying it: the prune is correct for every other repo. Moved repos are exactly the ones whose host row can be missing while the local row is hidden.Linked Issue
N/A (maintainer; tracked in the WSL-via-orcad implementation tracker, step D1b-7).
Visual Proof
N/A: no visible change. Nothing writes a move yet, and the stores only add hidden storage entries.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Key mapping (
wsl-move-renderer-store-keys.test.ts):buildFileViewPreferenceKey;Renderer pass (
wsl-move-renderer-store-rewrites.test.ts, real storage modules in happy-dom):Prune guard (
wsl-moved-repo-ui-retention.test.ts, real store):agentsFilterRepoIds;Main:
scopeRootPaths;Gate closed: both IPC channels answer empty or refuse (existing tests).
Checks:
pnpm tc, oxlint on touched paths,pnpm run check:code-quality:changed, and both ratchets pass;Adversarial review: a reviewer agent found no HIGH issues and four MEDIUM ones, all fixed here:
AI Disclosure
Review
Agent skill upstream boundary
Notes
updateUIbroadcasts to the window.scopeRootPaths. Its notebook interpreter choice isn't copied, and the host asks again.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)