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
refactor(build): relay survivors named for what they are - #27962
The old SSH relay is gone, but some live build pieces still carried its name: the script that bundles the programs Orca runs inside WSL, the Windows process-table addon build, and a shared list of file names. This PR renames them for what they do today, and moves the relay-era file list next to the only code that still reads it.
What Changed
Users see no difference. Build outputs and their paths (out/relay/wsl) are unchanged.
pnpm run build:relay → pnpm run build:wsl-guest, and config/scripts/build-relay.mjs → build-wsl-guest.mjs. It only builds the WSL guest programs. Its test override env var is now ORCA_WSL_GUEST_OUT_ROOT. Every package script, workflow and test that called it is updated.
build-windows-process-tree-relay-addon.mjs → build-windows-process-tree-addon.mjs, relay-windows-process-tree-prepared-addon(.test).mjs → windows-process-tree-prepared-addon(.test).mjs. The helpers are renamed canReusePreparedAddon, windowsProcessTreeAddonHasBreakawayLauncher and windowsProcessTreeAddonDefect. The addon is staged for orcad now.
src/shared/relay-artifacts.ts is split:
src/shared/remote-bundle-artifacts.ts keeps the live names: the bundle platform list (used by bundled ripgrep), OPENCODE_SQLITE_READER_FILENAME and WSL_CLAUDE_PROFILE_HELPER_FILENAME.
src/main/ssh/relay-install-artifacts.ts holds the relay-era install list, which only the host census and the relay install model read (daemon service children, version and install-complete names, required files). It is unchanged and will be deleted with the census.
The Windows process-table addon name now comes from the existing ORCAD_WINDOWS_PROCESS_TREE_FILENAME. It is the same windows-process-tree.node, previously declared twice.
Removed as unused: isWindowsRelayPlatform, and relayOptionalArtifactFilenames (it was only used by its own test).
Why
Phase 3.99 rule: live code carries no relay names, and the relay-era leftovers sit together so that retiring them later takes one PR. The cloud/mobile relay (src/main/runtime/relay/*) is a different, live system and is untouched. The legacy relay bridge keeps everything it uses: the census list moved without changes, and the install model and daemon-child matching behave the same.
Net: production −30 (+135/−165), tests −17 (+40/−57).
Linked Issue
N/A, internal Phase 3.99 cleanup (PR 3.2).
Visual Proof
N/A, no UI or behaviour change.
Testing
rg finds no remaining relay-artifacts, build:relay, build-relay.mjs, old script names, or old helper/constant names in src config tests mobile .github (@ts-nocheck files included).
ORCA_WSL_GUEST_OUT_ROOT=<tmp> pnpm run build:wsl-guest emits the same four files. build:electron-vite, build:cli and build:orcad pass.
Focused vitest: relay install artifacts, daemon service children, install model, incumbent probe, host census, legacy relay bridge, bundled ripgrep, breakaway launcher, Windows process table, WSL Claude profile / OpenCode prep, WSL hook relay manager (26 files, 322 tests). Config script tests for the renamed scripts and routing (11 files, 260 tests).
pnpm tc, pnpm lint, pnpm run check:code-quality:changed (0 findings).
The Windows-only addon build and WSL lanes run in CI.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
P0/P1 review: my own review plus an independent reviewer.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Windows: addon build steps renamed in node-server-tests, e2e, ssh-windows-hosts and win-orcad-serve-switch-e2e. The ssh-windows-hosts path filters were updated. WSL: same bundle, same path. SSH/wire: no change.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
📝 Walkthrough
Walkthrough
Build commands and workflows now use build:wsl-guest in place of build:relay. Windows process-tree addon scripts, checks, and staging references use non-relay names and the Orcad artifact filename. Relay install artifact definitions move from a shared module to an SSH-local module. Related imports, tests, and build-scope references are updated.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to a9e3c
No issue requiring a change before merge was identified. The renamed build commands and artifact references appear consistent.
Pre-merge checks | 4 | 1
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 27 files. (10 skipped…
Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name
Status
Explanation
Title check
The title clearly identifies the primary change: renaming remaining relay-related build components to reflect their current purpose.
Description check
The description is complete and aligned with the template. It explains the change, rationale, testing, scope, compatibility impact, and checklist status. The N/A linked issue is justified as an intern…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 27 files. (10 skipped: 10 unsupported.)
Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
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
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
The old SSH relay is gone, but some live build pieces still carried its name: the script that bundles the programs Orca runs inside WSL, the Windows process-table addon build, and a shared list of file names. This PR renames them for what they do today, and moves the relay-era file list next to the only code that still reads it.
What Changed
Users see no difference. Build outputs and their paths (
out/relay/wsl) are unchanged.pnpm run build:relay→pnpm run build:wsl-guest, andconfig/scripts/build-relay.mjs→build-wsl-guest.mjs. It only builds the WSL guest programs. Its test override env var is nowORCA_WSL_GUEST_OUT_ROOT. Every package script, workflow and test that called it is updated.build-windows-process-tree-relay-addon.mjs→build-windows-process-tree-addon.mjs,relay-windows-process-tree-prepared-addon(.test).mjs→windows-process-tree-prepared-addon(.test).mjs. The helpers are renamedcanReusePreparedAddon,windowsProcessTreeAddonHasBreakawayLauncherandwindowsProcessTreeAddonDefect. The addon is staged for orcad now.src/shared/relay-artifacts.tsis split:src/shared/remote-bundle-artifacts.tskeeps the live names: the bundle platform list (used by bundled ripgrep),OPENCODE_SQLITE_READER_FILENAMEandWSL_CLAUDE_PROFILE_HELPER_FILENAME.src/main/ssh/relay-install-artifacts.tsholds the relay-era install list, which only the host census and the relay install model read (daemon service children, version and install-complete names, required files). It is unchanged and will be deleted with the census.ORCAD_WINDOWS_PROCESS_TREE_FILENAME. It is the samewindows-process-tree.node, previously declared twice.isWindowsRelayPlatform, andrelayOptionalArtifactFilenames(it was only used by its own test).Why
Phase 3.99 rule: live code carries no relay names, and the relay-era leftovers sit together so that retiring them later takes one PR. The cloud/mobile relay (
src/main/runtime/relay/*) is a different, live system and is untouched. The legacy relay bridge keeps everything it uses: the census list moved without changes, and the install model and daemon-child matching behave the same.Net: production −30 (+135/−165), tests −17 (+40/−57).
Linked Issue
N/A, internal Phase 3.99 cleanup (PR 3.2).
Visual Proof
N/A, no UI or behaviour change.
Testing
rgfinds no remainingrelay-artifacts,build:relay,build-relay.mjs, old script names, or old helper/constant names insrc config tests mobile .github(@ts-nocheckfiles included).ORCA_WSL_GUEST_OUT_ROOT=<tmp> pnpm run build:wsl-guestemits the same four files.build:electron-vite,build:cliandbuild:orcadpass.Focused vitest: relay install artifacts, daemon service children, install model, incumbent probe, host census, legacy relay bridge, bundled ripgrep, breakaway launcher, Windows process table, WSL Claude profile / OpenCode prep, WSL hook relay manager (26 files, 322 tests). Config script tests for the renamed scripts and routing (11 files, 260 tests).
pnpm tc,pnpm lint,pnpm run check:code-quality:changed(0 findings).The Windows-only addon build and WSL lanes run in CI.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
P0/P1 review: my own review plus an independent reviewer.
Agent skill upstream boundary
Notes
Windows: addon build steps renamed in
node-server-tests,e2e,ssh-windows-hostsandwin-orcad-serve-switch-e2e. Thessh-windows-hostspath filters were updated. WSL: same bundle, same path. SSH/wire: no change.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)