Repository navigation
fix(ssh): keep 1.4.224's running terminals working after the upgrade (legacy relay bridge) - #27787
Conversation
73972d1 to
b32700e
Compare
📝 Walkthrough
Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to After an SSH bridge teardown and reconnect, a legacy terminal can accept keystrokes but show no output. Fix the renderer's stale attachment state before merging. Pre-merge checks |
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
2755e260-2f97-40d2-a33a-4321c51b62f8
📥 Commits
Reviewing files that changed from the base of the PR and between 57a7c22 and 48a6dd2f51dd6caff720d56d04c7fceebaddfa57.
📒 Files selected for processing (88)
.github/workflows/e2e.ymlconfig/scripts/pr-code-change-scope.mjsconfig/scripts/pr-e2e-source-routing.mjssrc/main/ipc/ssh-connect-flow.tssrc/main/ipc/ssh-connection-handlers.tssrc/main/ipc/ssh-host-server-on-connect-wiring.test.tssrc/main/ipc/ssh-host-server-on-connect-wiring.tssrc/main/ipc/ssh-old-relay-terminals-handler.tssrc/main/ipc/ssh-session-teardown.tssrc/main/ipc/ssh.tssrc/main/ipc/telemetry.tssrc/main/ssh/legacy-relay-bridge/README.mdsrc/main/ssh/legacy-relay-bridge/legacy-relay-bridge-ipc.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-bridge-leases.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-bridge-registry.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-bridge-timers.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-client.test.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-client.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-endpoints.test.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-endpoints.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-target-bridge.test.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-target-bridge.tssrc/main/ssh/orcad-migration-delta-move.test.tssrc/main/ssh/orcad-migration-delta-move.tssrc/main/ssh/orcad-migration-source-assertions.tssrc/main/ssh/orcad-migration-source-fence.tssrc/main/ssh/orcad-migration-terminal-gate-host-wide.test.tssrc/main/ssh/orcad-migration-terminal-gate.test.tssrc/main/ssh/orcad-migration-terminal-gate.tssrc/main/ssh/orcad-runtime-conversion.test.tssrc/main/ssh/orcad-runtime-conversion.tssrc/main/ssh/ssh-host-relay-census-for-target.tssrc/main/ssh/ssh-host-relay-endpoint-census.tssrc/main/ssh/ssh-host-relay-terminals-on-connect.test.tssrc/main/ssh/ssh-host-relay-terminals-on-connect.tssrc/main/ssh/ssh-host-server-on-connect.test.tssrc/main/ssh/ssh-host-server-on-connect.tssrc/main/ssh/ssh-host-server-telemetry.tssrc/main/ssh/ssh-host-unserved-status.test.tssrc/main/ssh/ssh-host-unserved-status.tssrc/main/ssh/ssh-old-relay-daemons-shell.integration.test.tssrc/main/ssh/ssh-old-relay-daemons.test.tssrc/main/ssh/ssh-old-relay-daemons.tssrc/main/ssh/ssh-old-relay-terminals-end.test.tssrc/main/ssh/ssh-old-relay-terminals-end.tssrc/main/ssh/ssh-target-orcad-preflight.tssrc/preload/api-types.tssrc/preload/api/legacy-relay-bridge-api.tssrc/preload/api/ssh-api.tssrc/preload/api/ssh-bridge.tssrc/preload/index.tssrc/renderer/src/components/settings/SshPane.tsxsrc/renderer/src/components/settings/SshTargetServerStatus.tsxsrc/renderer/src/components/sidebar/WorktreeCardSshHostControl.tsxsrc/renderer/src/components/status-bar/SshTargetStatusRow.tsxsrc/renderer/src/components/terminal-pane/TerminalSshReconnectOverlay.tsxsrc/renderer/src/components/terminal-pane/legacy-relay-bridge-panes.tssrc/renderer/src/components/terminal-pane/legacy-relay-bridge-transport.test.tssrc/renderer/src/components/terminal-pane/legacy-relay-bridge-transport.tssrc/renderer/src/components/terminal-pane/pty-connection/deferred-session-attach.tssrc/renderer/src/components/terminal-pane/pty-connection/pty-input-recovery.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/ssh/ssh-host-server-status-copy.test.tssrc/renderer/src/ssh/ssh-host-server-status-copy.tssrc/renderer/src/ssh/ssh-old-relay-terminals-action.test.tsxsrc/renderer/src/ssh/ssh-old-relay-terminals-action.tssrc/shared/legacy-relay-bridge-contract.tssrc/shared/orcad-migration-source-cutover.tssrc/shared/ssh-old-relay-processes-admission.tssrc/shared/ssh-old-relay-stop-command.test.tssrc/shared/ssh-old-relay-stop-command.tssrc/shared/ssh-retained-payload-admission.test.tssrc/shared/ssh-retained-payload-admission.tssrc/shared/ssh-types.tssrc/shared/telemetry-event-registry.tssrc/shared/telemetry-ssh-host-server-event-schemas.tstests/e2e/cross-version-wire/legacy-relay-bridge.unit.test.tstests/e2e/cross-version-wire/released-relay-daemon.tstests/e2e/cross-version-wire/released-relay-transport.tstests/e2e/helpers/build-released-relay-bundle.mtstests/e2e/helpers/legacy-relay-docker-host.tstests/e2e/helpers/orcad-upgrade-profile.tstests/e2e/ssh-orcad-legacy-relay-bridge.spec.ts
💤 Files with no reviewable changes (19)
- src/shared/ssh-old-relay-stop-command.test.ts
- src/main/ipc/ssh-connection-handlers.ts
- src/renderer/src/ssh/ssh-old-relay-terminals-action.test.tsx
- src/main/ssh/ssh-old-relay-terminals-end.ts
- src/main/ssh/ssh-old-relay-daemons.test.ts
- src/main/ssh/ssh-old-relay-terminals-end.test.ts
- src/shared/ssh-old-relay-processes-admission.ts
- src/renderer/src/components/settings/SshTargetServerStatus.tsx
- src/main/ipc/ssh-old-relay-terminals-handler.ts
- src/preload/api/ssh-api.ts
- src/main/ssh/ssh-host-unserved-status.test.ts
- src/main/ssh/ssh-host-relay-census-for-target.ts
- src/renderer/src/ssh/ssh-old-relay-terminals-action.ts
- src/shared/ssh-retained-payload-admission.test.ts
- src/shared/ssh-types.ts
- src/main/ssh/ssh-old-relay-daemons-shell.integration.test.ts
- src/shared/ssh-old-relay-stop-command.ts
- src/preload/api/ssh-bridge.ts
- src/main/ssh/ssh-old-relay-daemons.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| if (!pane) { | ||
| // Still waiting on the relay: ask again, which answers exited once it is proven gone. | ||
| if (!attached) { | ||
| void reattach() | ||
| } | ||
| return | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
#!/bin/bash
rg -nP -C3 'stopLegacyRelayBridge|teardownSshTargetTransport\s*\(' src/main
rg -nP -C3 'this\.attached\.(has|set|delete|clear)' src/main/ssh/legacy-relay-bridgeRepository: stablyai/orca
Length of output: 7509
Reset the attachment state when the bridged pane disappears.
When stopLegacyRelayBridge clears the bridge, the renderer can receive an empty pane list while its local attached flag remains true. On reconnect, the new bridge reports the pane as live, but reattach() is skipped because the renderer still considers the pane attached. The new bridge therefore does not add the PTY to attached, and wireClient drops its output because it requires this.attached.has(ptyId). Input can still reach the relay through liveRoute, leaving a terminal that accepts keystrokes but shows no output.
🐛 Proposed fix
--- "a/src/renderer/src/components/terminal-pane/legacy-relay-bridge-transport.ts"
+++ "b/src/renderer/src/components/terminal-pane/legacy-relay-bridge-transport.ts"
@@ -96,13 +96,13 @@
if (mode !== 'bridge') {
return
}
if (!pane) {
- // Still waiting on the relay: ask again, which answers exited once it is proven gone.
- if (!attached) {
- void reattach()
- }
+ // Gone from main (bridge stopped, or waiting on the relay): main's attachment is lost
+ // with it, so ask again. That answers exited once the terminal is proven gone.
+ attached = false
+ void reattach()
return
}
if (pane.state === 'unverifiable') {
attached = false
showUnreachable()📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| if (!pane) { | |
| // Still waiting on the relay: ask again, which answers exited once it is proven gone. | |
| if (!attached) { | |
| void reattach() | |
| } | |
| return | |
| } | |
| if (!pane) { | |
| // Gone from main (bridge stopped, or waiting on the relay): main's attachment is lost | |
| // with it, so ask again. That answers exited once the terminal is proven gone. | |
| attached = false | |
| void reattach() | |
| return | |
| } |
…ay listing as exit
… end panes proven gone
…publish every leased pane before the first look
…r loads ESM build tooling
48a6dd2 to
1269cbd
Compare
There was a problem hiding this comment.
♻️ Duplicate comments (1)
src/renderer/src/components/terminal-pane/legacy-relay-bridge-transport.ts (1)
100-106: 🎯 Functional Correctness | 🟠 MajorReset
attachedwhen the bridged pane disappears.
stopLegacyRelayBridgecan publish an empty pane list. If it does,attachedstaystrue. After reconnect, the pane isliveagain, butreattach()does not run. Main therefore never adds the PTY to itsattachedmap, andwireClientdrops all output. Input still reaches the relay. The prior review raised this, and the code is unchanged.🐛 Proposed fix
if (!pane) { lastState = null - if (!attached) { - void reattach() - } + attached = false + void reattach() return }
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
4bb689e0-ac9b-4d16-bb59-718441d93849
📥 Commits
Reviewing files that changed from the base of the PR and between 48a6dd2f51dd6caff720d56d04c7fceebaddfa57 and 1269cbd.
📒 Files selected for processing (7)
src/main/ssh/legacy-relay-bridge/legacy-relay-bridge-leases.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-target-bridge.test.tssrc/main/ssh/legacy-relay-bridge/legacy-relay-target-bridge.tssrc/renderer/src/components/terminal-pane/legacy-relay-bridge-panes.tssrc/renderer/src/components/terminal-pane/legacy-relay-bridge-transport.test.tssrc/renderer/src/components/terminal-pane/legacy-relay-bridge-transport.tssrc/renderer/src/i18n/locales/en.json
🚧 Files skipped from review as they are similar to previous changes (1)
- src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
The last stage of the catch-up. Measured from the post-stage-5 main: 425 commits, 23 conflicting files, merge base `6cbbe456c0` — the previous stage's target, so the lineage is clean. Four analysts planned the clusters in parallel, one implementer applied all four, and an independent critic reviewed the staged index. ## What upstream did Upstream deleted the SSH relay client path, the SSH PTY provider and most of `src/main/providers/` — about 153 files and 17.8k lines — plus the `ipc/pty.ts` and `providers/types.ts` barrels. Commits `ff27338299e`, `a4a96fee704`, `0df25b7ac9b`, `c5224f70d8c`, `b368ebc7a6c`, `aeffeb4cfb5`, `3c49cdf09ce`. **It changed no owner-routing logic.** So nearly every conflict had the same shape: the fork's per-window routing with an SSH-projection line inside it, against upstream's main-window line with that line removed. The resolution is the fork's logic minus the SSH lines — `combine`, never `take-ours`, which would re-reference deleted modules and fail typecheck. ## The two decisions this merge turned on **The legacy relay bridge must reach every window, and gate its input.** Upstream's new `legacy-relay-bridge-ipc.ts` keeps 1.4.224's running terminals alive after an upgrade (stablyai#27787, stablyai#27951). It merges cleanly, and its `send` reaches `getMainWindow()` only. Three analysts found this independently: a relay-era SSH pane whose tab lives in a fork project window attaches, replays, and then never receives output or exit again. It now broadcasts to every app window, which is safe because each window's transport filters by `ptyId`, and relay-era ids (`ssh:<target>@@<relay id>`) are often unknown to `getPtyWorktreeId` so an owner lookup would fall back to main anyway. Its `write`, `resize` and `detach` also accepted input from any sender, where every sibling PTY input path in this fork is gated by `isTrustedUIRenderer` (`write.ts:18,29,41`, `resize-visibility.ts:111,166`, `delivery-flow.ts:167`, `serialize-buffer.ts:43`). The gate is applied. The legitimate path was traced end to end before doing so: the only renderer sender is `legacyRelayBridgeApi`, its only caller is `pty-input-recovery.ts:294`, and that path runs in the main, workspace and satellite windows, all registered as trusted UI renderers. The dashboard pop-out loads the same preload and is *not* trusted, but nothing under `components/dashboard-popout/` imports the bridge transport. **The user-named access ratchet stays, and the fork now owns it.** Upstream `26ee9bbfabe` (stablyai#27308, "remove source text checks") deletes the whole ratchet from `local-file-access.test.ts` — all three lists, the three helpers and the `node:fs`/`node:path` imports — and replaces it with nothing. Keeping it means the fork maintains all three lists, not just its own two entries, and a future upstream commit that adds a user-file builder or a tab opener will fail this test. That is the point: stage 5's SFTP defect arrived exactly as "upstream added a new way to open a user-named tab", so a failure here is the alarm working. The block carries a comment saying the fork owns these lists and that the response to a failure is to check each new entry against the SFTP guard, never to delete the fork's entries. The import removal merged cleanly, so the two imports are restored; without them six identifiers were undefined. ## Defects found that no conflict marker could show This stage's real work was outside the 23 conflicts: 11 hand edits, three of which no plan predicted. - **The scoped reconnect path.** Upstream `bd54fc7fa32` deleted `reconnectPersistedTerminals(signal, { workspaceKeys })` as dead code — true upstream, where direct SSH was its only caller. The fork has three production callers and one test that need it for project windows, and the deletion lands cleanly in every region the fork did not touch: the scoping filter, the early return, the deferred-SSH preservation, the `remaining*` computation and the `workspaceSessionReady` gating. Resolving only the conflict hunks would have made every scoped call a silent global reconnect, so the file was replaced whole. - `pty/delivery/payload.ts` — the fork-only `if (!ownerState)` block still used the removed `projectionAdmissionIds` and returned the old object from a function now typed `boolean`. - `pty/delivery/window-flow-state.ts` — a fork-only `max-lines` extraction stranding upstream's SSH-projection removal; it was not on any extraction list. 297 → 287 lines. - `ssh-filesystem-provider-sftp.ts` — a whole-side take still breaks, because the import line upstream deleted sits *outside* the conflict hunks and merges cleanly, leaving four types and a helper undefined. Six fork files call them. - Two fork tests still named the deleted `ipc/pty` barrel: the fork's primary multi-window routing suite would have failed to load, and a `vi.mock` of the barrel would have silently stopped intercepting, running real PTY registration inside a test. - Found by the cold typecheck: two upstream tests called `isHiddenRendererPty` with one argument. The fork keys hidden marks per window, so it takes two. - Found by the sweep: `daemon-host-path-budget.test.ts` hard-coded upstream's `Orca` host root. - Found by the critic, in a file no gate executes: the fork-only `orcinus-cd.yml` still ran `config/scripts/relay-watcher-fault-harness.mjs`, which upstream deleted in `2b4b60a87ea` while removing the same step from its own release workflows. The next `v*` tag would have failed both build legs before publishing. Removed, mirroring upstream. Coverage upstream deleted and the fork still needs was restored: `sftp-directory-entries.test.ts` ports the five cases that cover SFTP handle cleanup on cancellation, for code the fork keeps. ## Review An independent critic returned REJECT for the `orcinus-cd.yml` defect above and nothing else: the 27 decisions are applied as specified, both coordinator decisions hold when re-derived, and every gate re-measures as reported. It found the defect with a set difference of every repo-path string in every tracked text file, merged tree minus both parents — it was the only merge-only dangling path in the repository. No compiler, linter or test executes a workflow file. The critic also partitioned the sweep's "same" bucket by *which* baseline fails: `both=2451 mainOnly=35 upOnly=131 neither=5`. Those 35 are the fork's own pre-existing reds, none merge-caused, and three of them mean a fork feature has no live test — project windows (`create-project-window.test.ts`), the custom date-range usage dashboard (`UsageOverviewFilters.test.tsx`) and notifier owner routing. A follow-up owns them; this merge does not. `verify-orcinus-identity` is blind to the identity residue this merge adds: the new macOS terminal-host helper's `CFBundleName` 'Orca', its Orca icon, and the "Orca allows…" usage-description strings. All inert on an unsigned build. ## macOS terminal-host helper Upstream `3f8d296b8d7` adds a signed `Orca Terminal Host.app`, about 124 MiB per mac slice, started from a copy through launchd. Read statically; no Mac host was available. The fork's unsigned build *can* produce it ad hoc, and can never load it: the runtime requires the copy to satisfy the running app's designated requirement, which for an ad-hoc app is its own cdhash. Every failure path falls back to the pre-merge fork launch. No gate or packaging step the fork runs assumes a signing identity — `orcinus-ci.yml` is ubuntu-only, `orcinus-cd.yml` has no macOS leg, and upstream's mac workflows are guarded on their repository. The cost is that every daemon launch on a fork mac build copies the helper, fails the check and deletes it. Skipping `packageMacTerminalHost` on unsigned builds is recorded as a follow-up. ## Gates Cold typecheck (after deleting `config/*.tsbuildinfo`): 0 errors, measured independently twice; its first run is what caught the two `isHiddenRendererPty` arity breaks. Runtime-electron ratchet: `nothing reachable imports electron`. oxlint: 0 warnings, 0 errors across 32,422 files; oxfmt clean. verify-orcinus-identity: OK, `upstreamRefs=0`. Unsigned smoke: OK, `forceCodeSigning=false`. Fork contract tests: 32/32. Windows CLI launcher: the Rust build runs here and passes. Localization catalog: OK. max-lines ratchet: OK, 4 grandfathered, no new bypasses. Regression sweep, scoped as the whole universe rather than by directory — the error that cost stage 4 a rejection and left a 46% hole in stage 5: `discoverUnitFiles()` is 12,051 files on this tree, every one reported, 0 missing. The three-tree recheck of all 493 failing files gives `same=2615 diff=2 mergeOnly=5`. One of those five was a real merge defect, the `Orca` host root, and is fixed. The other four are attributed with evidence: three flakes that also fail on the upstream baseline in the same file, and one CRLF artefact of this long-lived working copy whose index blobs are LF in all three trees. Merge-only failures attributable to this merge: **0**. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
ELI5
Orca 1.4.224 kept your SSH terminals running on the server in a helper process (the "relay"), even after you quit the app. Orca 1.4.225 no longer has a relay client, so it refused to connect to those servers until you ended the old terminals yourself. Now upgrading no longer ends your running terminals: Orca connects as normal, the old terminals keep working in their old tabs until they exit on their own, and new terminals open on the new managed server. Nobody is asked anything.
What Changed
Before (1.4.225 today): connecting an SSH host where 1.4.224 left a terminal running fails with "Terminals started by an older version of Orca are still running on this host…". #27748 added an "End old terminals on this host" button and confirmation dialog to that refusal.
After:
Mechanism (everything bridge-specific is in
src/main/ssh/legacy-relay-bridge/, with a README andCOMPAT(legacy-relay-bridge)tags on every seam):bridgedverdict instead of refusing. Converting never stops a relay. The conversion journal records those leases in a new optionalbridgedPtyIdsfield, so the fence and the stage/commit checks don't mistake them for terminals started mid-conversion. A lease that appears after the proof still refuses, as before.$HOMEmoved under/tmp) or named pipes (Windows, through the existing pipe inventory). It runs each relay's ownrelay.js --connectfrom its version directory, so the old build's handshake accepts it, the same way the existing census already counts relay terminals. It takes the terminal-owner role without output flow control, which is what 1.4.224's own previous-relay route did. It never deploys, starts, stops or deletes a relay, and never displaces a client that is still attached. Verdicts follow the SSH execution boundary: a dropped connection isunverifiableand retried with backoff, and a lease is markedterminatedonly when the relay reports the exit, or when every relay for the target answered and none holds it.ssh:PTY id) gets a small transport that reattaches through the bridge's own IPC channels and hands every other connect to the normal orcad transport. A terminal the relay no longer runs comes back as the existing "session expired" error, which retires the binding and starts a fresh shell on orcad.ssh_host_server_legacy_relay_bridgeevent (enum-only, same host fields as the otherssh_host_server_*events):phase: connectedwith aterminalsbucket when a host connects with bridged terminals, andphase: terminal_exitedper exit.Why
--connect, so no host is refused. Windows relay bridging is covered by unit tests, not by a live Windows host in this PR.COMPAT(legacy-relay-bridge)seams and thebridgedverdict.Linked Issue
Release blocker for 1.4.225 (follow-up to STA-10166, #27748).
Visual Proof
The Docker e2e saves
bridged-terminal.pngas a test artifact. It shows the upgraded app with the old tab ("Terminal 1") under the converted host, displaying the 1.4.224 shell's screen (GOT:before-upgrade) and the line typed after the upgrade (GOT:after-upgrade). Otherwise N/A: there is no new UI. The tab looks like any other terminal, and #27748's button and dialog are removed.Testing
tests/e2e/cross-version-wire/legacy-relay-bridge.unit.test.tsbuilds the real v1.4.224 relay from its tagged sources, runs it detached with--grace-time 0, and leaves a shell in it the way 1.4.224 did on quit. Then:tests/e2e/ssh-orcad-legacy-relay-bridge.spec.ts(Docker SSH host,orcad-ssh-dockerlane): a v1.4.224 relay with live shells for this desktop's target and another desktop's target. The upgraded desktop connects and the host converts (never refused). The old tab shows the old shell's screen and answers typing. A new terminal opens on orcad. After every SSH connection is killed, the old tab reattaches and still answers. When the old shell exits, the pane and lease retire. The other desktop's relay and shell are untouched, and its directory still exists.live/unverifiable/exited rules, retry, dead sockets, pending stops and dispose;/tmpsocket path;bridgedverdict under the fence;pnpm tc,pnpm lint,pnpm run check:code-quality:changed, and focused vitest. No Docker or Electron was run locally; the e2e runs in CI.Review
P0/P1 review: my own pass plus a codex reviewer (GPT-6.1 Sol), focused on never deploying a relay, never killing or sweeping an in-use relay, the SSH boundary verdicts, mixed versions, and data loss.
unverifiablebefore the first look, and leaves only on proof of exit.orca …commands run inside its terminals to its attached client. This build has no relay-era remote CLI (about 3.5k lines removed in refactor(ssh): connect fails for hosts orcad can't serve; remove the relay client path #27214), so the bridge now answers those commands with a clear message ("…started by an older version of Orca, so orca commands are unavailable in it. Run them in a new terminal on this host.") instead of "Method not found".unverifiableand retries on the doubling backoff, and the renderer reattaches only when a pane changes tolive.Agent skill upstream boundary
Notes
bridgedPtyIdsis an optional journal field, and older builds' non-strict parse drops it. The bridge's IPC is new and desktop-only (window.api.legacyRelayBridgeis optional, so web clients leave it undefined). Another desktop's relay hashes a different target id, so it is never listed, connected to or stopped.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)