Repository navigation
Conversation
…collectors Co-Authored-By: Claude <[email protected]>
…urce-kind scope A local-WSL scope lives on host local and owns only its projects, so host-wide matches stay an SSH whole-host rule. SSH bytes are pinned by the collector golden. Co-Authored-By: Claude <[email protected]>
…ormant state (D1b-3c) Collects the scoped projects, their groups and every dormant-state kind through the local-WSL export scope, rewrites UNC paths to the distro's, and returns blockers for anything the collectors can't carry instead of dropping it. Automations move disabled, as the wire requires, and come back as a list to re-enable on the host after commit. Co-Authored-By: Claude <[email protected]>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 21, 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 a project moves from this computer's WSL bridge into the Orca server running inside the distro, the move has to carry the project's saved state: tabs, layouts, scrollback, workspace details, history, automations and their runs. Until now only the SSH conversion could export that state. This adds the WSL version, reusing the same collectors, and keeps the SSH export byte-for-byte the same.
What Changed
local, these projects". The SSH conversion's own steps (preflight census, subtraction) keep the SSH-only scope, so a WSL manifest reaching them still throws, as before.local's projects, so the host-wide matches (worktree metadata, aliases, automation contexts, client tab ownership, the host/local partition reconciliation) apply to SSH only. A WSL move ignores other local projects instead of blocking on them.exportWslMoveManifest(store, request)insrc/main/persistence/moving-wsl-projects/wsl-move-manifest-export.ts, the port the move driver calls. It:sourcescope equals the request exactly. It's deterministic for one store state and request, so the driver can re-export under the fence and compare digests;WslMoveScopeChangedErrorif the plan names a project that is no longer a local row (a stale plan is replanned, not signed);inspectOrcadMigrationSourceDormantState, the existing collector's full result rather than just its payload.Why
The mover design requires a lossless move. Reusing the SSH collectors through the existing migration-source abstraction keeps one implementation of "what state does a project own", instead of a second one that drifts. Pinning the SSH digests through the real collectors first is what makes the refactor safe, because SSH destinations verify those bytes.
Linked Issue
N/A (internal WSL host work, tracker row D1b-3c).
Visual Proof
N/A — no UI, and nothing calls the exporter yet.
Testing
vitestacross migrating-orcad-catalog,src/main/ssh/orcad-migration*, orcad migration, shared orcad-migration and wsl-move: 82 files / 767 tests pass locally. One unrelated localStorage census test failed once in the combined run and passes alone.tsc(node),oxlint,oxfmtand the max-lines ratchet are clean for the touched files.