Repository navigation
fix(ssh): never offer Move for terminals another Orca desktop or session runs - #25815
Merged
OrcaWin merged 1 commit intoOct 6, 2026
Merged
Conversation
OrcaWin
force-pushed
the
OrcaWin/node-rt-p3-move-attribution
branch
from
October 6, 2026 07:29
e7c9bda to
9e2889f
Compare
7 of 9 tasks
…ion runs
On a host where another desktop held a live relay shell, this desktop read relay_terminals_live
with offerMove, and its copy ("Its N open terminals will restart") implied they were its own. The
census already attributes them: terminals counted only by the host-wide census, with no lease or
listing of this target naming one, run under another target or session. That verdict now carries
elsewhere / terminalsElsewhere; no move is offered (no toast, no status-line action) and the status
line says the terminals belong to another Orca desktop or session.
OrcaWin
force-pushed
the
OrcaWin/node-rt-p3-move-attribution
branch
from
October 6, 2026 08:04
9e2889f to
0c85e5c
Compare
This was referenced Oct 6, 2026
OrcaWin
pushed a commit
that referenced
this pull request
Oct 6, 2026
…not 2.5k times check-runtime-electron-ratchet bundled ~2,532 entry points each in full (format cjs, no splitting), so esbuild held thousands of copies of the runtime graph: about 2.2GB RSS and 11s per run, twice per test file. It was in flight in every unit shard that died with "The runner has received a shutdown signal" (#25815 5/5 twice, #25876 2/5 twice). With esm + splitting the shared modules land in one chunk: same metafile, about 200MB and 2s.
OrcaWin
added a commit
that referenced
this pull request
Oct 6, 2026
…s out of the branch-cleanup runtime (#25876) * refactor(runtime): move run-terminal client-use and shell-alone checks out of the branch-cleanup runtime orca-runtime-preserved-branch-cleanup.ts had grown past max-lines (303) with the headless run-terminal helpers. Their logic now lives in run-terminal-client-use.ts and the runtime keeps one-line delegators, with behavior unchanged. * fix(ci): the runtime Electron ratchet bundles its entry points once, not 2.5k times check-runtime-electron-ratchet bundled ~2,532 entry points each in full (format cjs, no splitting), so esbuild held thousands of copies of the runtime graph: about 2.2GB RSS and 11s per run, twice per test file. It was in flight in every unit shard that died with "The runner has received a shutdown signal" (#25815 5/5 twice, #25876 2/5 twice). With esm + splitting the shared modules land in one chunk: same metafile, about 200MB and 2s. --------- Co-authored-by: m4air <[email protected]>
2 of 3 tasks
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
If the only running terminals on an SSH host belong to another computer's Orca, this Orca no longer offers "Move to managed server". It says those terminals belong to another Orca desktop or session, and leaves them alone.
What Changed
Before (real-host test, host B9):
relay_terminals_live, terminals: 1, but it also gotofferMove: true.After: A shows "Runs the relay while 1 terminals another Orca desktop or session opened on this host are running." It shows no toast and no Move action.
How it works: the terminal check already tells the two cases apart:
livewith their ids, and never consults the host-wide census.The changes:
terminalsRunElsewhere(proof)(orcad-migration-terminal-gate.ts) names that case.elsewhere. This covers bothrelayTerminalsOnConnectand the re-check once connected (relayTerminalsOnceConnected). The connect decision forwards it asterminalsElsewhere.canOfferManagedServerMovereturns false for it, so the connect sets noofferMoveand no toast appears.managedServerstatus gains an optionalterminalsElsewhere, which the remote-state check on paired clients lets through.Why
The lead preferred option (a), attribution, over (b), a stronger confirmation, as long as the census can attribute the terminals. It can, without any new probing.
Mixed case: when this desktop also has its own live terminals, the check reports those first, so Move is still offered for them. Move only stops this target's terminals, then re-runs the full check, so another desktop's shell still makes it refuse (and reconnect). It never ends that shell.
Linked Issue
Node-runtime Phase 3 real-host testing: Move offered for another desktop's relay shell (B9).
Visual Proof
N/A: copy-only change in the SSH Hosts status line, covered by the copy test. The toast and the action are absent for this case.
Testing
elsewhere: true. Terminals this target lists or leases are this desktop's.terminalsElsewhere: true.terminalsElsewhereis forwarded into the relay decision.action.terminalsElsewherepasses the field-by-field check.pnpm tc:node,pnpm tc:weband the changed-code gate pass.Review
Agent skill upstream boundary
Notes
offerMoveabsent.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (CI will cover)