Skip to content

Reattach surviving terminals after a restart and wake quiet coordinators - #33720

Closed
Jinwoo-H wants to merge 12 commits into
mainfrom
jinwoo/restart-attach-surviving-terminals
Closed

Jinwoo-H wants to merge 12 commits into
mainfrom
jinwoo/restart-attach-surviving-terminals

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​270 $\color{#cf222e}{\Huge{\mathbf{−}}}$​26 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​244
Prod 23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​226 $\color{#cf222e}{\Huge{\mathbf{−}}}$​124 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​102

ELI5

Terminals keep running in the background helper when Orca restarts. Before this change, after a restart Orca only listened to the terminals you could see. An agent working in a workspace you had not opened again kept running, but Orca could not see anything it printed. So worker readiness waited 60 s and failed, worker-read and idle detection were blind, and orca serve showed no title or status.

Now Orca listens to every surviving terminal again as soon as it starts, without drawing any of them.

It also wakes coordinators again after a restart. Orca types the "You have N orchestration messages" line only into an agent whose status it has seen since it started. A coordinator that had already finished its turn never reports again, so after a restart it never got its mail. Now Orca uses the agent's own last status report, which the hook server already keeps across restarts, as that status.

Merge after #34706. Without it, Claude's status after you answer a permission prompt is not picked up after a restart, so that one case stays unwoken.

Product change

Bells and title changes in workspaces you have not opened since the restart now raise unread, Recent and phone push, the same as in an Orca that never restarted. Before this PR those terminals were silent until you opened them.

Root cause

Main's per-terminal record (tail, lastOutputAt, title, agent status, headless screen) only fills while main's daemon client is attached to the session. After a restart only two things attached: a window mounting the pane, and a remote or mobile view subscribing. The inventory adopted every survivor as connected: true but attached none of them (reconcileProviderAttach returned unless a remote view was subscribed).

What changed

  • MainDaemonAttachments (new, replaces the attach half of RuntimeTerminalViewSubscribers) is the one attach owner. Its state is two collections: sessions whose stream this run holds, and attaches in flight. Inventory adoption attaches every live local daemon session, not only ones with a remote viewer. Remote and mobile subscribers still go through it. At most 4 attaches run at once.
  • DaemonPtySessionControl.attach now returns the whole attach reply, and attachPtyFromRuntimeController seeds main's headless screen, tail and title through the existing spawn-result seeders.
  • Unseen terminals send no bytes to the renderer: main marks them runtime-owned hidden through the existing hidden-delivery gate, and a pane that mounts later reveals them through the existing path. A failed attach leaves the mark; a reveal or exit clears it. View mounting is unchanged.
  • An agent that is attached but prints nothing gets an output clock from the first attach of its process generation (outputObservedSince), so a later pane mount does not restart its quiet. Readiness evidence, idle polls and the visible-screen probe read one clock per terminal by ptyId (getOutputClockAt), so a pane leaf and its PTY agree and leaves mirror nothing new. Without this, an idle Codex still timed out even with its screen seeded. lastOutputAt itself is untouched, so activity and unread state do not move at startup.
  • Waits behave as on main: they never start or join an attach. If main's attach of a survivor fails, a wait on it still runs to its timeout; an honest "not connected since restart" error returns in plan B, which gives connection state one owner.

A later pane mount uses the same main daemon client, so it does not knock main's stream off. The e2e checks this: output keeps reaching main after the pane mounts.

Restart wake for quiet coordinators

  • AgentHookServer.readRestoredAgentStatus(paneKey) returns the pane's last own report, restored from disk or replayed from the offline spool. It skips remote rows and ended agents, requires a named agent process to still be running, and drops a result that a newer report or a hooks toggle replaced while it waited.
  • At reattach, restoreReattachedAgentStatus applies that report through the existing status-only title path (applyTrackedPtyTitle, new status option), but only when an agent, not a shell, holds the foreground. Nothing can type into the terminal while main is down, so the report is still current. The lead's own turn is read through the existing hookLeadTurnState. A permission or approval prompt restores as waiting, so mail is held until it is answered.
  • Before applying, it re-checks that the PTY record, process incarnation and lifecycle generation are unchanged, that the PTY is still connected, and that no live status arrived meanwhile.
  • The foreground probe waits for its real answer. The 2 s bound stays only on the interactive-dialog caller, so a slow probe no longer drops the wake.
  • Accepted trade-off: after a restart Orca has no record of recent typing, so its draft hold does not apply. A message half-typed before the restart can be sent along with the wake line, the same as a draft left untouched past the existing 10-minute cap.

Not in this PR: re-attaching after the daemon socket drops while Orca runs. That is deferred to a follow-up (plan B), which gives reconnect one owner.

Perf (dev builds, isolated profile, origin/main vs branch, interleaved, medians of 3)

Startup with surviving 5000-line scrollback terminals in an unopened workspace. "First echo" is the time from the inspector answering until the open workspace's terminal echoes a key.

Survivors First echo main / branch Main event-loop p99, first 10 s Typing p50 main / branch Attaches
10 3838 / 3850 ms 19.6 / 23.3 ms 2.2 / 2.3 ms 1 / 12
50 3766 / 4485 ms 16.5 / 33.8 ms 2.2 / 2.4 ms 1 / 52
100 4053 / 3573 ms 20.3 / 27.8 ms 2.1 / 2.3 ms 1 / 102
100, no cap 3740 / 4439 ms 19.1 / 30.7 ms 2.1 / 2.4 ms 1 / 102

Without the cap, 100 survivors delayed the first echo by about 0.7 s, so the cap of 4 stays. With the cap, median typing latency does not regress at any size. At 50 the first-echo median was 0.7 s slower but noisy (3231 to 4957 ms across runs); at 100 it was faster.

Memory, 100 idle scrollback terminals (main heap): created this run 200 MB, restarted on main 73 MB, restarted on branch 122 MB. So about 0.5 MB per attached terminal, below the profile before a restart.

Steady state, Codex-replay printers in an unopened workspace (main CPU % / typing p50 ms):

Printers Never restarted Restarted, main Restarted, branch
5 4.6 / 2.6 1.3 / 3.0 3.8 / 3.2
10 6.1 / 2.5 1.3 / 3.4 5.9 / 2.6
20 8.1 / 2.2 1.3 / 2.5 7.2 / 2.4

Main's event-loop p50/p99 stayed at 10.3 to 11.1 / 11.4 to 12.0 ms in every condition. The branch's restarted cost matches "never restarted"; main's is lower only because it is blind.

Real app, before and after

A worker in a background workspace the window never opened, then a normal quit (the daemon survives), relaunch, worker-start --terminal on that terminal, then a message to it.

origin/main branch
Codex 0.163: readiness failed after 60 s ready in 4 s, task answered (READY-2)
Claude (haiku): readiness ready in 3 s (screen probe fallback) ready in 3 s
Title after relaunch null wtc (Codex), Claude Code
Message pointer reaches the worker no no (plan C)

Restart wake, with #34706 merged in: a real coordinator with a run, quit, relaunch, then mail to the run.

origin/main branch
Claude Code, idle never woken woken in 1 s
Codex 0.163, idle never woken woken in 1 s
Claude Code, permission prompt open held held for 40 s, woken after the prompt is answered
Codex 0.163, approval prompt open held held for 40 s, woken after the prompt is answered

All rows ran against the final code.

Tests

  • e2e restart-unopened-workspace-terminal-attach.spec.ts: a printer in an unopened workspace survives a quit; after relaunch lastOutputAt advances within 5 s with no pane mounted, and keeps advancing after the pane mounts. Fails on origin/main, passes here.
  • Unit: inventory adoption attaches with no subscriber, and the attach reply seeds screen and title.
  • orchestration-reattach-wake.test.ts: after a reattach, a quiet coordinator whose last report ended its turn gets the wake, including the lead's own ended turn under still-running background work and a foreground probe slower than 2 s. Mail is held when the report is a permission prompt or a shell holds the terminal.
  • server-restored-agent-status.test.ts: a report survives a hook-server restart; remote rows and disabled hooks restore nothing.
  • tui-idle-output-clock.test.ts: a reattached, silent Codex composer reaches the same ready verdict through the pane leaf and the PTY, and stays ready when its pane mounts.

Platforms, remote, mobile, folder workspaces

  • Same daemon attach path on macOS, Linux, Windows (named pipe) and WSL sessions. Nothing platform-specific was added.
  • SSH and remote hosts are out of scope: attachPtyFromRuntimeController still refuses non-local hosts. The in-process provider still streams without attach.
  • Mixed versions: no wire or protocol change. The existing attachOnly spawn is used; an older surviving daemon goes through the legacy adapters, and attach stays false on doubt. Desktop, server and phone contracts are unchanged. orca serve runs the same runtime code; it was not tested separately.
  • Mobile: mobile views keep using the same attach owner; nothing changes for them.
  • Folder workspaces: attachment is keyed by session, not git worktree.

Risk

  • More main work right after a restart with many survivors (parsing their screens). It is capped at 4 concurrent attaches and measured above.
  • If a pane mounts during main's attach, the pane's attach clears the hidden mark through the existing reveal path.
  • A daemon socket drop while Orca runs still leaves unseen survivors unattached until the next restart (plan B).

Follow-ups

  • Socket-drop reconnect for survivors: plan B, one owner.
  • Mail for paneless workers and coordinators: the message pointer still needs a pane leaf, so a worker or coordinator in an unopened workspace gets no pointer (plan C, STA-11630 cause 2).
  • Daemon-side detection of agent state.
  • A start cut off by Orca quitting still reports agent_readiness / terminal_handle_stale. Saying "Orca restarted, outcome unknown" needs a quitting signal threaded into the runtime, so it is not in this PR.

Refs STA-11630 (the survivor half), refs #22809.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
Walkthrough

Provider attachment now returns the complete spawn result, which runtime attach handling uses to seed terminal state and restore records. Main-daemon attachment tracking is managed independently of view subscriptions, with inventory and lifecycle events reconciling sessions. Reattached PTYs receive an output-observation clock that idle evidence and terminal wait checks use. An end-to-end test covers reconnecting and rendering output from a terminal in an inactive workspace after app restart.

Priority: Normal

Merge Risk: Low · up to 87183

A replaced terminal may appear idle or ready too early. Reset its output clocks on incarnation changes; the remaining risk is localized.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description provides detailed scope, rationale, implementation changes, testing, performance data, platform considerations, risks, and follow-ups. However, it does not follow the required template… Update the description to include all required template sections. Add an actual linked issue using the required Fixes # format, provide before/after visual proof or write N/A with a reason, complete or explicitly mark AI Disclosure, Review,…
Passed Passed checks: 3 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly summarizes the main changes: reattaching surviving terminals after restart and waking quiet coordinators.
Full details: Description check

Explanation

The description provides detailed scope, rationale, implementation changes, testing, performance data, platform considerations, risks, and follow-ups. However, it does not follow the required template structure. It omits the required Linked Issue section with a Fixes # link, Visual Proof or an explicit N/A explanation, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. It also uses Refs instead of the required issue-link format.

Resolution

Update the description to include all required template sections. Add an actual linked issue using the required Fixes # format, provide before/after visual proof or write N/A with a reason, complete or explicitly mark AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist items, and retain the existing testing and risk details under the corresponding headings.

Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a4aa713-773a-4d21-8158-d8623daec2b6
Commits

Reviewing files that changed from the base of the PR and between d08f3f9 and 0369c7f.

Files selected for processing: 30
  • config/flaky-test-pattern-baseline.txt
  • src/main/daemon/daemon-pty-adapter-protocol-compatibility.test.ts
  • src/main/daemon/daemon-pty-adapter-session-adoption.test.ts
  • src/main/daemon/daemon-pty-router.test.ts
  • src/main/daemon/daemon-pty-session-control.ts
  • src/main/daemon/degraded-daemon-pty-provider.test.ts
  • src/main/ipc/pty/provider/bind-listeners.ts
  • src/main/ipc/pty/pty-controller-ownership-routing.test.ts
  • src/main/ipc/pty/register-without-renderer.test.ts
  • src/main/ipc/pty/runtime/operations.ts
  • src/main/ipc/pty/runtime/spawn-hidden-delivery.ts
  • src/main/providers/pty-provider-contract.ts
  • src/main/runtime/rpc/terminal-multiplex-paused-output-drop.test.ts
  • src/main/runtime/runtime-terminal-state-records.ts
  • src/main/runtime/runtime-terminal-view-subscribers.ts
  • src/main/runtime/terminal-subscriber-driven-daemon-attach.test.ts
  • src/main/runtime/terminal/input/terminal-agent-prompt-render.ts
  • src/main/runtime/terminal/layout/terminal-view-presence.ts
  • src/main/runtime/terminal/lifecycle/main-daemon-attachments.ts
  • src/main/runtime/terminal/lifecycle/pty-controller-inventory-refresh.ts
  • src/main/runtime/terminal/lifecycle/pty-handle-invalidation.ts
  • src/main/runtime/terminal/lifecycle/pty-registration.ts
  • src/main/runtime/terminal/lifecycle/terminal-view-resources.ts
  • src/main/runtime/terminal/output/terminal-output-generation.ts
  • src/main/runtime/terminal/wait/terminal-idle-polls.ts
  • src/main/runtime/tui-idle-evidence-source.ts
  • src/main/runtime/tui-idle-evidence.test.ts
  • src/main/runtime/tui-idle-evidence.ts
  • src/main/runtime/workspaces/workspace-activation.ts
  • tests/e2e/restart-unopened-workspace-terminal-attach.spec.ts
Files with no reviewable changes: 1
  • config/flaky-test-pattern-baseline.txt

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

Comment thread src/main/ipc/pty/runtime/operations.ts Outdated
if (provider !== localProvider || provider instanceof LocalPtyProvider) {
return false
}
const hidden = !visibleRendererPtys.has(ptyId) && hideRuntimeOwnedRendererDelivery(deps, ptyId)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

🔎 Supported by static analysis

Script executed:

#!/bin/bash
# Check how renderer attach interacts with attachingRendererViewPtys and the hidden-delivery gate.
rg -n -C4 'attachingRendererViewPtys|skippedHide' src/main/ipc/pty
rg -n -C6 'transitionSpawnHiddenRendererPtyDeliveryState' src/main/ipc/pty

Repository: stablyai/orca

Length of output: 38147


Script executed:

set -e
printf '%s\n' '--- operations.ts ---'
nl -ba src/main/ipc/pty/runtime/operations.ts | sed -n '1,180p'
printf '%s\n' '--- attach-only-view.ts ---'
nl -ba src/main/ipc/pty/pane/attach-only-view.ts | sed -n '1,120p'
printf '%s\n' '--- runtime attach callers ---'
rg -n -C8 -F -- 'attachPtyFromRuntimeController' src/main/ipc/pty src/main | head -240

Repository: stablyai/orca

Length of output: 20771


Script executed:

set -e
rg -n -F -- 'attachPtyFromRuntimeController' src/main/ipc/pty src/main
rg -n -F -- 'reattachPtyAfterEndpointLoss' src/main/ipc/pty src/main
rg -n -i -C5 -- 'inventory.*reconcil|reconcil.*inventory|reconcile.*pty|pty.*reconcile' src/main/ipc/pty src/main/runtime | head -300

Repository: stablyai/orca

Length of output: 31620


Script executed:

set -e
printf '%s\n' '--- main daemon attachments ---'
nl -ba src/main/runtime/terminal/lifecycle/main-daemon-attachments.ts | sed -n '1,220p'
printf '%s\n' '--- terminal view presence ---'
nl -ba src/main/runtime/terminal/layout/terminal-view-presence.ts | sed -n '1,120p'
printf '%s\n' '--- complete pane adoption ---'
nl -ba src/main/ipc/pty/pane/complete-pane-adoption.ts | sed -n '1,150p'
printf '%s\n' '--- attach-only and spawn route references ---'
rg -n -C8 -e 'attachViewAfterHiddenStart' -e 'attachOnlyViewOf' -e 'provider\.attach' -e 'runtime\?\.attach' src/main/ipc/pty src/main/runtime/terminal

Repository: stablyai/orca

Length of output: 42027


Do not hide delivery during a renderer attach.

Endpoint-loss recovery starts a main-managed attach while a pane can be remounting. attachViewAfterHiddenStart records the PTY in attachingRendererViewPtys before awaiting the renderer attach, but attachPtyFromRuntimeController checks only visibleRendererPtys. It can therefore hide delivery during the pending attach. The successful attach path does not clear a new hidden mark.

Suggested fix
-import { ptySizes, visibleRendererPtys } from '../delivery/visibility-state'
+import { attachingRendererViewPtys, ptySizes, visibleRendererPtys } from '../delivery/visibility-state'
...
-  const hidden = !visibleRendererPtys.has(ptyId) && hideRuntimeOwnedRendererDelivery(deps, ptyId)
+  const hidden =
+    !visibleRendererPtys.has(ptyId) &&
+    !attachingRendererViewPtys.has(ptyId) &&
+    hideRuntimeOwnedRendererDelivery(deps, ptyId)

Comment on lines 169 to 178
const attached = await attach(ptyId)
const pty = attached ? this.ptysById.get(ptyId) : undefined
// An idle agent may print nothing after attach; from now on its silence is observed.
if (pty && pty.lastOutputAt === null) {
pty.outputObservedSince = Date.now()
}
return attached
})()
}
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

🔎 Supported by static analysis

Script executed:

rg -n 'lastOutputAt|outputObservedSince|hasQuietReadyScreen|assertTerminalOutputReachesMain|hasPendingAttach' src/main/runtime/terminal/wait src/main/runtime/tui-idle-evidence.ts src/main/runtime/terminal/layout/terminal-view-presence.ts src/main/runtime/terminal/lifecycle/terminal-view-resources.ts src/main/runtime/terminal/input/terminal-agent-prompt-render.ts | head -160

Repository: stablyai/orca

Length of output: 2019


No readiness guard prevents the false quiet result after reattachment.

The endpoint-loss path reattaches the PTY without resetting its output clock. outputClockAt then prefers the stale lastOutputAt, so idle readiness can pass before Orca observes a post-reattach quiet interval. Resetting lastOutputAt would break consumers that use it as the timestamp of actual output. The reattach path needs a separate readiness clock, or equivalent idle-clock state, that starts at reattachment while preserving lastOutputAt.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b8d9ea55-10bf-4b34-9990-64e778b19c9e
Commits

Reviewing files that changed from the base of the PR and between 0369c7f and 574308e.

Files selected for processing: 18
  • src/main/daemon/daemon-pty-adapter-session-adoption.test.ts
  • src/main/ipc/pty/delivery/visibility-state.ts
  • src/main/ipc/pty/pane/agent-session-owners.ts
  • src/main/ipc/pty/provider/bind-listeners.ts
  • src/main/ipc/pty/pty-renderer-liveness-guard.test.ts
  • src/main/ipc/pty/runtime/operations.ts
  • src/main/ipc/pty/runtime/spawn-hidden-delivery.ts
  • src/main/runtime/runtime-terminal-view-subscribers.ts
  • src/main/runtime/terminal-subscriber-driven-daemon-attach.test.ts
  • src/main/runtime/terminal/input/terminal-agent-prompt-render.ts
  • src/main/runtime/terminal/layout/terminal-view-presence.ts
  • src/main/runtime/terminal/lifecycle/main-daemon-attachments.ts
  • src/main/runtime/terminal/lifecycle/pty-exit-lifecycle.ts
  • src/main/runtime/terminal/lifecycle/terminal-view-resources.ts
  • src/main/runtime/terminal/output/terminal-buffer-operations.ts
  • src/main/runtime/terminal/output/terminal-output-generation.ts
  • src/main/runtime/tui-idle-output-clock.test.ts
  • src/main/runtime/workspaces/workspace-activation.ts
Files with no reviewable changes: 1
  • src/main/runtime/runtime-terminal-view-subscribers.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

Comment on lines +141 to +145
const attaching = options?.condition === 'exit' ? null : this.attachTerminalOutputToMain(handle)
return attaching
? attaching.then(() => this.waitForReachableTerminal(handle, options))
: this.waitForReachableTerminal(handle, options)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Stability & Availability · Quick win

🔎 Supported by static analysis

Script executed:

sed -n '125,195p' src/main/runtime/terminal/input/terminal-agent-prompt-render.ts
sed -n '55,85p' src/main/runtime/terminal/layout/terminal-view-presence.ts
sed -n '1,135p' src/main/runtime/terminal/lifecycle/main-daemon-attachments.ts
rg -n 'waitForReachableTerminal|timeoutMs|request_aborted' src/main/runtime/terminal/wait src/main/runtime/terminal/input/terminal-agent-prompt-render.ts

Repository: stablyai/orca

Length of output: 9558


Script executed:

set -o pipefail
printf '%s\n' '--- attachProvider bindings ---'
rg -n -F --glob '*.ts' -e 'attachProvider' -e 'attachTerminalOutputToMain' -e 'waitForFreshWorkerComposer' src/main
printf '%s\n' '--- provider attach definitions and callers ---'
rg -n -F --glob '*.ts' -e '.attach(' -e 'attach:' -e 'attachTerminal' src/main/runtime src/main/providers src/main/daemon src/main | head -200
printf '%s\n' '--- terminal wait implementation ---'
sed -n '1,235p' src/main/runtime/terminal/wait/terminal-wait.ts
printf '%s\n' '--- visible probe implementation ---'
sed -n '1,175p' src/main/runtime/terminal/wait/terminal-wait-visible-probe.ts
printf '%s\n' '--- workspace activation ---'
sed -n '175,270p' src/main/runtime/workspaces/workspace-activation.ts
printf '%s\n' '--- attach owner construction/context ---'
rg -n -F --glob '*.ts' -e 'new MainDaemonAttachments' -e 'attachProvider:' -e 'provider.attach' src/main

Repository: stablyai/orca

Length of output: 42244


Script executed:

set -o pipefail
printf '%s\n' '--- terminal-view-resources attach binding ---'
sed -n '135,180p' src/main/runtime/terminal/lifecycle/terminal-view-resources.ts
printf '%s\n' '--- provider operation ---'
sed -n '100,165p' src/main/ipc/pty/runtime/operations.ts
printf '%s\n' '--- provider types and concrete attach implementations ---'
rg -n -F --glob '*.ts' -e 'interface.*PtyProvider' -e 'type.*PtyProvider' -e 'class LocalPtyProvider' -e 'async attach(' -e 'attach(ptyId' src/main/pty src/main/providers src/main/daemon src/main/ipc 2>/dev/null || true
printf '%s\n' '--- startup draft helper ---'
rg -n -F --glob '*.ts' -e 'waitForWorktreeStartupDraft' src/main

Repository: stablyai/orca

Length of output: 7285


Script executed:

set -o pipefail
printf '%s\n' '--- pty controller attach chain ---'
rg -n -F --glob '*.ts' -e 'class.*PtyController' -e 'attach(id:' -e 'attach(ptyId:' -e 'ptyController' src/main/daemon src/main/providers src/main/runtime src/main/ipc | head -240
sed -n '1,155p' src/main/providers/local-pty-provider.ts
sed -n '95,250p' src/main/daemon/daemon-pty-router.ts
printf '%s\n' '--- startup-draft readiness helper ---'
sed -n '1,270p' src/main/runtime/runtime-worktree-startup-readiness.ts

Repository: stablyai/orca

Length of output: 37240


Script executed:

set -o pipefail
printf '%s\n' '--- daemon adapter attach implementation ---'
rg -n -F --glob '*.ts' -e 'class DaemonPtyAdapter' -e 'async attach(id: string)' -e 'attach(id: string)' src/main/daemon
sed -n '1,75p' src/main/daemon/daemon-pty-session-control.ts
sed -n '1,180p' src/main/daemon/daemon-pty-adapter.ts 2>/dev/null || true
printf '%s\n' '--- attach transport/deadline references ---'
rg -n -i -F --glob '*.ts' -e 'attach' -e 'timeout' src/main/daemon/daemon-pty-adapter*.ts src/main/daemon/daemon-pty-session-control.ts src/main/daemon | head -240

Repository: stablyai/orca

Length of output: 40973


Script executed:

set -o pipefail
printf '%s\n' '--- attach-only spawn path ---'
rg -n -F --glob '*.ts' -e 'async spawn(' -e 'client.request' -e 'remainingDaemonRequestTimeoutMs' src/main/daemon/daemon-pty-session-input.ts src/main/daemon/daemon-pty-spawn-result.ts src/main/daemon src/main | head -220
sed -n '1,230p' src/main/daemon/daemon-pty-session-input.ts
printf '%s\n' '--- daemon request implementation and defaults ---'
rg -n -F --glob '*.ts' -e 'class DaemonClient' -e 'request<T' -e 'request<T = ' -e 'DEFAULT.*TIMEOUT' -e 'REQUEST_TIMEOUT' src/main/daemon src/main | head -200

Repository: stablyai/orca

Length of output: 41419


Script executed:

set -o pipefail
nl -ba src/main/daemon/daemon-pty-spawn-request.ts | sed -n '135,170p'
nl -ba src/main/daemon/client.ts | sed -n '190,215p'
nl -ba src/main/runtime/terminal/input/terminal-agent-prompt-render.ts | sed -n '132,175p'
nl -ba src/main/runtime/workspaces/workspace-activation.ts | sed -n '208,260p'
nl -ba src/main/runtime/terminal/lifecycle/main-daemon-attachments.ts | sed -n '92,125p'

Repository: stablyai/orca

Length of output: 8405


Apply the caller deadline to the attach phase.

waitForTerminal starts waitForReachableTerminal only after attachment completes. A queued attach can wait behind four active attaches, and the provider uses an independent 30-second request timeout. The caller's timeoutMs and signal do not apply during this period. The subsequent wait then receives the full timeout.

waitForFreshWorkerComposer has the same ordering. Use one helper to race attachment against the caller deadline and abort signal. Pass the remaining timeout to the readiness wait. The helper must clean up its timer and abort listener when attachment settles.

Suggested fix
--- "a/src/main/runtime/terminal/input/terminal-agent-prompt-render.ts"
+++ "b/src/main/runtime/terminal/input/terminal-agent-prompt-render.ts"
@@ -138,10 +138,19 @@
       launchReadiness?: boolean
     }
   ): Promise<RuntimeTerminalWait> {
+    const startedAt = Date.now()
     const attaching = options?.condition === 'exit' ? null : this.attachTerminalOutputToMain(handle)
-    return attaching
-      ? attaching.then(() => this.waitForReachableTerminal(handle, options))
-      : this.waitForReachableTerminal(handle, options)
+    if (!attaching) {
+      return this.waitForReachableTerminal(handle, options)
+    }
+    const timeoutMs = options?.timeoutMs
+    return raceAttachWithDeadline(attaching, { timeoutMs, signal: options?.signal }).then(() => {
+      const left = timeoutMs && timeoutMs > 0 ? timeoutMs - (Date.now() - startedAt) : timeoutMs
+      if (timeoutMs && timeoutMs > 0 && left !== undefined && left <= 0) {
+        throw new Error('timeout')
+      }
+      return this.waitForReachableTerminal(handle, { ...options, timeoutMs: left })
+    })
   }
 
   private waitForReachableTerminal(

Apply the same deadline accounting around attachTerminalOutputToMain(handle) in waitForFreshWorkerComposer, and pass the remaining timeoutMs to waitForWorktreeStartupDraft.

@blacksmith-sh

This comment has been minimized.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments: 1
tests/e2e/restart-unopened-workspace-terminal-attach.spec.ts: 1

170-170: Trivial · Functional Correctness · Quick win

Assert terminal output through the DOM after the pane mounts.

The test reads xterm’s internal buffer and checks main’s output clock. Neither check proves that the mounted pane renders output. The E2E rule requires a user-visible DOM assertion. Assert the rendered terminal text, not only pane visibility.

Suggested fix
+    await expect(second.page.locator('.pane:visible .xterm-accessibility-tree')).toContainText(
+      'tick '
+    )
     await expectMainReceiving('main stopped receiving after the pane mounted')

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c60e9d69-eb17-4e6d-85b1-8eb3d597ffef
Commits

Reviewing files that changed from the base of the PR and between f1d3f1d and 8b1ec49.

Files selected for processing: 1
  • tests/e2e/restart-unopened-workspace-terminal-attach.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4e74fdc2-c267-4084-9376-8f1d9e561808
Commits

Reviewing files that changed from the base of the PR and between 8b1ec49 and 87183a8.

Files selected for processing: 10
  • src/main/ipc/pty/runtime/operations.ts
  • src/main/ipc/pty/runtime/spawn-hidden-delivery.ts
  • src/main/runtime/terminal-subscriber-driven-daemon-attach.test.ts
  • src/main/runtime/terminal/layout/terminal-view-presence.ts
  • src/main/runtime/terminal/lifecycle/main-daemon-attachments.ts
  • src/main/runtime/terminal/lifecycle/pty-controller-inventory-refresh.ts
  • src/main/runtime/terminal/output/terminal-buffer-operations.ts
  • src/main/runtime/terminal/wait/terminal-wait-visible-probe.ts
  • src/main/runtime/terminal/wait/terminal-wait.ts
  • src/main/runtime/tui-idle-output-clock.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment on lines +228 to +234
/** A reattached live process may print nothing; its silence is observed quiet from the first attach of this generation. */
startReattachedOutputClock(ptyId: string): void {
const pty = this.ptysById.get(ptyId)
if (pty && pty.lastOutputAt === null) {
pty.outputObservedSince ??= Date.now()
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

🔎 Supported by static analysis

Script executed:

sed -n '155,205p' src/main/runtime/terminal/identity/pty-worktree-record.ts
rg -n -C 3 'lastOutputAt\s*=|outputObservedSince\s*=' src/main/runtime/terminal

Repository: stablyai/orca

Length of output: 6815


Script executed:

set -e
printf '%s\n' '--- clock API ---'
sed -n '200,255p' src/main/runtime/terminal/output/terminal-buffer-operations.ts
printf '%s\n' '--- generation cleanup ---'
sed -n '60,125p' src/main/runtime/terminal/output/terminal-output-generation.ts
printf '%s\n' '--- complete record update block ---'
sed -n '110,260p' src/main/runtime/terminal/identity/pty-worktree-record.ts
printf '%s\n' '--- inventory call order ---'
sed -n '145,210p' src/main/runtime/terminal/lifecycle/pty-controller-inventory-refresh.ts
printf '%s\n' '--- all clock reads and starts ---'
rg -n -C 5 -F -e 'readOutputClockAt' -e 'startReattachedOutputClock' -e 'outputObservedSince' src/main/runtime
printf '%s\n' '--- lastOutputAt declarations and initialization ---'
rg -n -C 4 -F -e 'lastOutputAt:' -e 'lastOutputAt =' src/main/runtime/terminal/identity src/main/runtime/terminal/output | head -240

Repository: stablyai/orca

Length of output: 28770


Script executed:

set -e
printf '%s\n' '--- lifecycle generation callers ---'
rg -n -C 8 -F 'advancePtyLifecycleGeneration(' src/main/runtime
printf '%s\n' '--- incarnation and reset references ---'
rg -n -C 5 -e 'incarnationId' -e 'lastOutputAt = null' -e 'outputObservedSince = null' src/main/runtime/terminal src/main/runtime | head -420
printf '%s\n' '--- relevant tests ---'
rg -n -C 8 -e 'incarnation' -e 'outputObservedSince' -e 'lastOutputAt' src/main/runtime/*test.ts src/main/runtime/**/*test.ts 2>/dev/null | head -500

Repository: stablyai/orca

Length of output: 41960


Script executed:

set -e
printf '%s\n' '--- spawn registration ---'
sed -n '135,205p' src/main/runtime/terminal/lifecycle/pty-handle-invalidation.ts
printf '%s\n' '--- exit lifecycle around reset and deletion ---'
sed -n '55,185p' src/main/runtime/terminal/lifecycle/pty-exit-lifecycle.ts
printf '%s\n' '--- inventory entrypoint and record call sites ---'
rg -n -C 8 -e 'refreshPtyControllerInventory' -e 'recordPtyWorktree\(' src/main/runtime/terminal/lifecycle src/main/runtime/terminal | head -360
printf '%s\n' '--- clock test setup and assertions ---'
sed -n '1,90p' src/main/runtime/tui-idle-output-clock.test.ts
printf '%s\n' '--- output-clock type comments and reset candidates ---'
sed -n '115,136p' src/main/runtime/runtime-terminal-state-records.ts
rg -n -C 4 -e 'lastOutputAt' -e 'outputObservedSince' src/main/runtime/terminal/lifecycle src/main/runtime/terminal/identity src/main/runtime/terminal/output

Repository: stablyai/orca

Length of output: 41713


Reset both output-clock fields when the PTY incarnation changes.

recordPtyWorktree and onPtySpawned can replace an existing PTY incarnation without clearing lastOutputAt. readOutputClockAt prefers that stale timestamp over outputObservedSince, so clearing only outputObservedSince does not prevent premature idle readiness when the predecessor emitted output.

Suggested fix
diff --git a/src/main/runtime/terminal/identity/pty-worktree-record.ts b/src/main/runtime/terminal/identity/pty-worktree-record.ts
@@
     ) {
       pty.agentSessionOwners = []
+      pty.lastOutputAt = null
+      pty.outputObservedSince = null
     }

diff --git a/src/main/runtime/terminal/lifecycle/pty-handle-invalidation.ts b/src/main/runtime/terminal/lifecycle/pty-handle-invalidation.ts
@@
     ) {
+      existingPty.lastOutputAt = null
+      existingPty.outputObservedSince = null
       // Fence predecessors when providers announce children, before pane binding commits, so reused ids cannot route through stale handles.
       this.rememberPtyHandleReplacementFence(

@Jinwoo-H
Jinwoo-H force-pushed the jinwoo/restart-attach-surviving-terminals branch 2 times, most recently from f5bf7fc to e457429 Compare October 26, 2026 22:04
@blacksmith-sh

This comment has been minimized.

…tart

Main now attaches every live local daemon session it adopts at startup,
not only ones a window pane or remote view is showing, and re-attaches
after a daemon endpoint drop. The attach snapshot seeds main's screen,
tail and title, and an attached-but-silent agent gets an output clock so
readiness can see it has gone quiet. Waits on a survivor main could not
attach fail at once instead of timing out.
…e attach state

- Endpoint loss re-attaches in main only sessions no renderer view reports; a pane restores its own.
- The attach hide skips views mid-attach and leaves a pane's own hidden claim alone on failure.
- One per-session stream state (attaching, attached, lost) replaces three sets and is forgotten on exit.
- Waits retry the attach before failing, including after a failed re-attach.
- The output clock starts wherever a reattach result is seeded, so pane reattaches get it too.
…s on unattached survivors fail at once; one ptyId output clock
…uiet clock per generation, keep main's hidden mark on failed attach
@Jinwoo-H
Jinwoo-H force-pushed the jinwoo/restart-attach-surviving-terminals branch from e457429 to f46777b Compare October 26, 2026 22:37
Jinwoo-H added a commit that referenced this pull request Oct 28, 2026
…ration"

This reverts commit d4b0c6c, reversing
changes made to 53f9735.
After a restart, main typed the mail wake only into an agent whose status it
had seen live since starting, so a coordinator whose turn had already ended
never woke. At reattach, take the agent's own last hook report, which the hook
server restores from disk and from its offline spool, as that observation while
an agent still holds the surviving process.
…t, fence respawns

Read the lead agent's turn from the restored report so background work does
not hide an ended turn, keep the wake out of a composer that still holds text
typed before the restart, and drop a restore that a respawn has overtaken.
…creen without a draft

The whole-screen accessor hides a model the provider still owns after attach, so a
draft there read as none. Read the screen the way wait gates do, provider image
included, and decline the restoration when it is unavailable.
…creen

After a restart main has no record of typing, so the existing draft hold cannot
apply; a screen read here could miss a draft and, when slow, strand the
coordinator for good. A draft left before the restart now meets the same rule
as an abandoned one.
…ached status

A probe answering after the interactive two-second bound was dropped for good,
stranding the coordinator. Restoration has no caller waiting, so it takes the
real answer; the existing fences still guard application.
@Jinwoo-H Jinwoo-H changed the title Keep terminals in unopened workspaces visible to Orca after a restart Reattach surviving terminals after a restart and wake quiet coordinators Oct 29, 2026
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes affect local daemon-backed terminals and readiness after Orca restarts.

Fix the screen-seeding race before merging so surviving terminals retain their pre-restart screen.

Findings

  1. P1 Live output blocks screen restore ▶

Summary

Main now attaches surviving local daemon terminals during inventory adoption, with four attaches running at once.

  • Orca keeps listening to surviving terminals before their workspaces are opened.
  • Reattached terminals restore their screen, title, and surviving agent status.
  • Quiet checks use the same clock for reattached terminals and their panes.

Jinwoo-H explicitly deferred socket-drop reconnect, mail pointers for paneless workers, and restart-interrupted start reporting to follow-ups.

Diagram

sequenceDiagram
  participant I as Inventory
  participant M as Main
  participant D as Daemon
  participant H as Headless screen
  I->>M: Adopt surviving terminal
  M->>D: Attach
  D->>D: Capture snapshot and attach stream
  D-->>M: Live output
  M->>H: Create partial screen
  D-->>M: Attach reply with snapshot
  M->>H: Seed snapshot
  H-->>M: Skip because screen exists
Loading

Reviews (1) · Last reviewed commit: "test(orchestration): mark the slow foreg..." · Reviewed by Greptile

Comment on lines +146 to +149
if (attachResult) {
// A restarted runtime has never seen this screen; an idle agent may print nothing after attach.
seedHeadlessTerminalFromSpawnResult(deps.runtime, attachResult, null)
seedTerminalRestoreRecordsFromSpawnResult(deps.runtime, attachResult)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Live output blocks screen restore

A surviving terminal can print while provider.attach() is still building its reply, especially while it awaits the durable-history overlay. Those bytes create a headless terminal before this seed runs. seedHeadlessTerminal() then returns because that terminal already exists, discarding the attach snapshot.

An unopened workspace can therefore keep only output received after restart and lose its existing screen. Readiness checks may miss the composer or prompt until the agent redraws it. Reserve the headless state before attaching, then seed it and replay buffered live bytes in sequence order.

@brennanb2025

Copy link
Copy Markdown
Contributor

@Jinwoo-H this fixes a stall we hit live on 10-28. After an Orca restart, a Codex coordinator in a worktree that hadn't been reopened showed orphaned: true, paneRuntimeId: -1, lastOutputAt: null, preview: "" and no title, while it was visibly mid-turn. terminal wait --for tui-idle and Run mail never saw it settle: 11 queued messages over about 3 hours were picked up only when something typed into the terminal directly. In that session's terminal list, every orphaned local terminal (108 of them: Claude, Codex and plain shells) had no output clock. The cause matches your root cause: reconcileProviderAttach returns unless a remote viewer exists, so nothing attaches a live session no pane mounts.

On current main this PR is still green and merges cleanly. One question worth checking before it lands: when a headless orca serve shares the same daemon, does inventory adoption skip that runtime's sessions? isUnattachedLocalCandidate (terminal-view-resources.ts) excludes only this runtime's own headlessTerminals, so I couldn't tell from the code whether attaching "every live local daemon session" could reach another runtime's terminals, or whether a second attach is safe for them.

Are you still working on this and #34056? If you'd rather hand them off, Brennan's lane can finish them, with you keeping review.

@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Superseded by #36137, which combines the orchestration v3 changes into one PR.

@Jinwoo-H Jinwoo-H closed this Oct 29, 2026
Jinwoo-H added a commit that referenced this pull request Oct 30, 2026
…6137)

* fix(orchestration): keep a terminal's mail from being consumed by another terminal, and let settled structured workers take further tasks

A plain orchestration check consumed the named terminal's mail whatever terminal ran it, so a
coordinator checking a worker's handle took the worker's message. A consuming check from a
terminal whose own live pane is a different terminal's is now refused; --peek and --all still read
it without consuming.

worker-start --terminal and dispatch --inject routed a structured worker (structworker_ handle) as
a terminal and failed with terminal_unsupported_for_agent_session. Any agent-session party now
takes its task as a send into its session, while a structured worker keeps the pane and process
authority its first Dispatch had.

* fix(orchestration): fence check by live terminal incl. acks; defer injecting structured workers

Review fixes for the mail fence and structured worker reuse:
- The check fence compares the caller's and the mailbox's live terminal process instead of
  recorded panes, so exited terminals keep the old behaviour and two processes sharing a
  recorded pane are told apart. It also covers --ack in every read mode. The caller lookup is
  shared with the lifecycle caller fence.
- dispatch --inject to a structured worker stays refused as before: an injected Dispatch takes
  no custody, so releasing the first Dispatch could close a session working on the second.
  worker-start --terminal reuse transfers custody and stays supported.
- worker-start decides pane-less chat authority from the resolved party and passes the session
  down, so delivery and next commands no longer re-derive it from the address spelling.
- Receipts name an agent session, not a chat.

* fix(orchestration): an exited caller's env pane names no caller

The caller lookup fell back to the env pane key whenever the env handle was not live, so an
exited terminal's pane resolved to whatever terminal now occupies it, and a tmux worker's own
check was refused. The pane fallback now applies only when the env handle is not proven exited.

* fix(terminal): keep surviving terminals streaming to main after a restart

Main now attaches every live local daemon session it adopts at startup,
not only ones a window pane or remote view is showing, and re-attaches
after a daemon endpoint drop. The attach snapshot seeds main's screen,
tail and title, and an attached-but-silent agent gets an output clock so
readiness can see it has gone quiet. Waits on a survivor main could not
attach fail at once instead of timing out.

* fix(terminal): restore only pane-less streams after endpoint loss; one attach state

- Endpoint loss re-attaches in main only sessions no renderer view reports; a pane restores its own.
- The attach hide skips views mid-attach and leaves a pane's own hidden claim alone on failure.
- One per-session stream state (attaching, attached, lost) replaces three sets and is forgotten on exit.
- Waits retry the attach before failing, including after a failed re-attach.
- The output clock starts wherever a reattach result is seeded, so pane reattaches get it too.

* refactor(terminal): attach survivors at inventory adoption only; waits on unattached survivors fail at once; one ptyId output clock

* test(e2e): scope the restart attach spec's terminal listing to the unopened workspace

* fix(terminal): narrow survivor attach: waits behave as on main, one quiet clock per generation, keep main's hidden mark on failed attach

* Teach the orchestration guide when to hand off and to end the turn after dispatch

* Rewrap a messaging reference line

* Keep the original placement default and skill trigger; keep the accuracy fixes

* Point DAG retries at --retry-of and drop the last blocking-wait instruction

* Check the served orchestration guide by its new worker heading

* Apply council review: best-effort wake, full completion rule, restored safety rules, fixed scope and settled wording

* Say when the orchestration skill applies, and prefer own subagents otherwise

* Name the polling, steering, checkout, and worker fan-out habits to avoid

* fix(orchestration): wake a coordinator whose turn ended while its program still reports working

Claude Code keeps its OSC 7501 report on working while an agent-teams
teammate is alive, even after the lead's own turn ends. The mailbox gate,
idle edges and tui-idle all read that report, so worker mail was stored and
never typed. A hook turn end newer than the program's working report now
counts as rest; hook rows re-classify the PTY so the existing idle edge
delivers. Agent Teams panes now join their claude hook rows.

* fix(orchestration): compare the lead's own turn end, not the row's receipt

A child's hook restamps the row's receivedAt while the lead's turn is still
the old one, which could mark rest under a newer program working report.
Use the lead's turn-end stamp on this runtime's clock, after the latest input.

* feat(orchestration): a consuming check marks the batch it returns as handled

* Say why watch scripts and open waits block the wake

* feat(orchestration): release settled workers automatically after a grace period

* fix(orchestration): use checked row reads for delivery cursors

* fix(orchestration): trust a live own-process turn end instead of comparing clocks

Drop programActivitySince and the turn-end clock mapping: replays and SSH
host clocks made the comparison unreliable. A Claude lead counts as at rest
under a program working report when its hook turn end is a live transition
from this pane's host and launch, past the existing input and respawn floors.

* test(orchestration): drop cast in ack no-op check

* test(orchestration): seed legacy outstanding batch for held chat nudges

* test(orchestration): built CLI check hands its batch over

* test(orchestration): annotate unchanged casts and stub the keep item in tab menu tests

* fix(orchestration): let real input, explicit release and host releases converge with automatic release

- Record worker takeover at the owning runtime when it accepts UI input, before the bytes reach the PTY.
- Run remote attachment releases through the same per-resource single-flight as local ones.
- Apply the confirmed-release home projection when host observation reports a host-side release, and carry the host deadline in fleet snapshots.
- Prove restart recovery with a file-backed database reopened by a fresh runtime.

* test(orchestration): classify the keep RPC's worker fields instead of counting methods

* fix(orchestration): checked delivery reads and observer and recovery help

* refactor(orchestration): end a check when it hands over a batch; wake rides the wait result

* fix(orchestration): refuse an automatic close after real input, join remote releases, converge the home

- An automatic close checks the terminal's last driving-input time right before closing and keeps a worker someone typed into after worker_done; typing itself does no orchestration database work.
- Remote releases share the per-resource single-flight with local release, so a home worker-release joins the host timer's close.
- Host fleet snapshots and federationShow report released and the pending deadline; the home applies the existing release projection inside its observation fence.
- Real restart tests: a file-backed database reopened by a fresh runtime releases a missed deadline once and finishes interrupted requests.

* fix(orchestration): receipt a shared wake batch on arrival and report the applied Run ack

* fix(orchestration): deliver the wake to a working coordinator; agents queue mid-turn input

The wake was typed only into a live idle pane, so a Claude lead whose program
status stayed working (teammate alive) never got it. Agents queue or steer text
typed mid-turn, so a pane takes mail when live idle or working; dialogs,
permission prompts, exited agents, unsettled panes and cold-parked Enter still
hold it. Drops the held-batch Enter deferral and the per-turn-end hook logic.

* fix(orchestration): record each remote release request before joining, publish archives only through the conditional commit

- Each remote release caller records its own request before joining a close under way, and the close decides on the current row, so an explicit release that overlaps the host timer clears the automatic deadline.
- Remote capture publishes its archive through commitWorkerTerminalArchiveForRelease, so a retain during capture leaves no stale archive for worker-read.
- Remote worker-show projects the fenced host deadline and its next action.
- The input guard lives in its own module instead of the scheduler.

* feat(orchestration): start a worker in one step; worker-start creates the coordinator's Run when none is bound

worker-start --spec now creates and binds a Run for a root coordinator with
no bound Run, through the same path run-create uses, and names the Run it
created or joined in every receipt. Workers on a Dispatch keep starting
helpers in their own Run and never get a new one. A new CLI against an older
runtime runs run-create and retries; old CLIs need no change.

* fix(orchestration): drop the older-runtime fallback; check the spec before a Run is created

The CLI fallback matched a refusal text the client decorates, could not
prove the caller was a root coordinator on an older runtime, and recovered
an inner run-create under the worker-start command. Older runtimes keep
their refusal and the guide says to run-create first there. The prompt
budget check now runs before worker-start can create a Run.

* Route report-back requests to coordinators, complete the steer command, and label the wake loop branches

* Say workers are done only when worker_done confirms, wait for helpers to settle, and let bare-shell workers exit

* Route report-back requests away from handoff and steer supervised workers through their mailbox

* docs(orchestration): teach auto-handled check, retry-request and inbox recovery in the guides

* Describe the mid-turn wake in the messaging reference

* docs(orchestration): say terminal workers are released 2 minutes after worker_done

- The guide's Completion section, the reuse recipe and the recovery reference now describe the automatic release and its autoReleaseAt deadline: reuse or worker-retain before it; explicit worker-release still works and is required for chat workers and workers without a deadline.
- The worker preamble says the terminal stays available until Orca releases it, about 2 minutes after worker_done unless retained.
- Regenerated the bundled guides.

* feat(orchestration): receipts say when to end the turn

* feat(orchestration): tell the coordinator when a worker stops without worker_done

* test+docs: worker stop reports

* fix(orchestration): judge the empty-check stop with execution-host verdicts

* test: drop casts from worker stop tests

* Say that report-back requests still mean end the turn

* Say that report-back requests still mean end the turn

* fix(orchestration): stop reports wait for children, keep their Dispatch, and relay intact

* fix(orchestration): a stop belongs to the Dispatch active when it was seen; restored stamps announce nothing

* fix(orchestration): never say to stop while a remote worker runs

* Shrink the orchestration guide to the end-state workflow

* fix(orchestration): stop reports quote the agent's last words, or the screen for errors and prompts

* fix(orchestration): withhold the stop while chat failure mail is off

* test: a clean finish quotes the agent's last words

* fix(orchestration): stop asking workers for heartbeats

Workers are no longer told to send periodic heartbeats. A heartbeat that
still arrives from an older worker or peer only records last_heartbeat_at:
it is stored already handled, so it never lands in a coordinator inbox and
never wakes a coordinator or a check --wait. Removes the stale-heartbeat
warning and the heartbeat interval plumbing that only fed the preamble.

* fix(settings): remove the worker heartbeat controls

The Worker heartbeats switch and Heartbeat interval field only changed the
worker preamble text, which no longer mentions heartbeats. Saved values are
dropped on load as retired settings.

* fix(orchestration): wake a coordinator that reports program status but never sets a title

Program status only re-classified a pane that had a title, so a titleless
agent (agy) never got a live status and the wake gate refused it.

* fix(orchestration): a new Run no longer cuts a coordinator off from its earlier Run

* test(orchestration): drop heartbeat-batch cases the handled heartbeat row removed

* fix(orchestration): redact capabilities from a stop report's quoted output

* fix(orchestration): never wake a mailbox for a heartbeat

One rule at the runtime notification entry replaces per-call-site read
checks, so mutation replay and federated control-mail import stay silent
for heartbeats too.

* Shrink the orchestration references and worker preamble to the end-state workflow

* Name the older-Orca bind refusal as worker-start prints it

* Owner-fence test: a refused foreign ack changes nothing, whatever the worker's own check already handled

* Integration: drop the duplicate consumingCheck after merging #34043 and #35293

* Integration: await the worker-start next receipt before naming its Run

* Apply review round 1: drain to zero, release without auto-release, retry after stop, Run before a DAG

* Apply review round 2: start ready DAG Tasks, block when no failure wake, replay sends by request ID

* Apply review round 3: one receipt-based wait rule for starts and wakes

* fix(orchestration): a worker stopped without reporting needs action, and stop keeps its output

worker-list projected a stop-reported attempt as live, in_progress, no action. It now
projects finished_unverified with a worker-read recovery until mail reaches the worker.
worker-stop closed the terminal before anything archived it, so release reported the
archive unavailable; stop now archives the output first.

* Revert "Owner-fence test: a refused foreign ack changes nothing, whatever the worker's own check already handled"

This reverts commit 336ff91.

* Revert "Merge #34043 (terminal mail guard, chat worker reuse) into integration"

This reverts commit 9c01b1a, reversing
changes made to d4b0c6c.

* Revert "Merge #33720 (restart: attach surviving terminals) into integration"

This reverts commit d4b0c6c, reversing
changes made to 53f9735.

* Integration: restore #35293's check-methods after removing #34043

* fix(orchestration): bound the pre-stop archive and keep it through retain

* fix(orchestration): a failed pre-stop archive never blocks the stop

* fix(orchestration): answering a question says to end the turn while the worker runs

* fix(orchestration): a settled worker whose terminal moved owes nothing

* Cut the orchestration guide to what Orca does not already enforce or explain

* Drop the terminal-send recovery the CLI already prints

* Restore a short never-do block: no polling, no terminal steering, no hand-made checkouts

* Trigger on named-agent review requests, define failure in specs, show the reuse commands

* Restore six guide rules from the cut review and drop the preamble heartbeat block

* Integration: drop the removed heartbeat interval from preamble tests

* Drop the outside-Orca wait and run-use lines; Orca's errors teach both

* Release finished chat workers like terminal workers unless the user touched them

A finished chat worker now closes ~2 min after its accepted worker_done, like a
terminal worker. Clients report a touch when a chat is on screen at rest (opened
idle, or its turn ends on screen); the owning host keeps a finished worker's
chat on that report, until its automatic release commits the archive and closes
in the same tick. Chat workers arm only while every connected client advertises
the touch capability; old clients keep today's manual release.

* Decide an automatic chat close in the session lane, recheck clients there, re-touch after reconnect

The automatic close now asks the database in the chat's session lane right before
Stop: a touch until then keeps the chat, and a client that cannot report touches
(joined during the grace or after a restart) sends it back to manual release.
Touch reports wait for a read chat, so a reconnect re-reads and reports again.

* Keep explicit chat releases eager and re-touch a desktop chat after lost contact

* Resolve a chat touch by durable worker identity, so a closing chat's hidden tab stays touchable

* Keep the mobile touch report free of route and app-state hooks: shown counts as seen

* List workerChatTouch's identity fields and the close's optional admission in their census tests

* Release a settled remote worker from the home when its host predates automatic release

* Replace Keep Worker Open with an auto-close setting, and tell agents when an older server needs a Run

The coordinator's runtime decides whether finished workers close: it gates local arming, the
settlement ack's autoRelease opt-in to a remote host, and the home deadline for older hosts.
worker-start and run-create name an older server's one-Run-per-coordinator behaviour instead
of failing or rebinding silently.

* Escalate a parent's prompt or error even while its helper is open

* Report a chat touch when a worker chat is opened while working, and on each turn edge

* Record worker takeover when the host admits a person's chat send, so mobile sends keep the worker

* End a reported worker stop when the worker resumes, not only when Dispatch mail arrives

* Recheck a chat mail notice at admission so mail a check consumed starts no turn

* Type the resumed-turn stop test's pane move directly

* Keep the stop decision in an empty check, report muted chat failures as stops, and bind a new Run only once a start passes preflight

A start or reply receipt now sends the caller to drain its mail with check instead of ending its turn, so a mid-batch answer cannot skip a later report and a replayed receipt carries no stale stop. With chat error mail off, a failed chat request still reports a plain stop through the existing stop report path. worker-start creates and binds its Run just before the Task and Dispatch, so a start refused in preflight leaves no Run behind. worker-release help no longer says chats never auto-release.

* Reuse a Run a parallel first start bound, refuse dependencies before creating a Run, and relay a paired-server worker exit home as a stop report

* Read a reported worker stop against live agent status instead of recording resume observations

A stop report is mail the coordinator reads once. Whether a worker shows as
finished now comes from its live status: a fresh working agent status (local
pane, chat session, or the execution host's fleet snapshot) outranks the
report, so nothing needs clearing on resume.

* Drop agent steps Orca already covers: start receipts say Orca wakes you, a check asks for another only when a capped batch leaves mail, workers get no mail-check or ack lines, and chat errors always report with the exact error

* Keep the home's remote auto-release deadline until the host answers, and let a retain win at the send

Claiming a due deadline postpones it instead of moving it to a releasing state, so a restart or
a failed attempt runs it again; the release send rechecks the deadline with no await before it.
A host that cannot be asked at settlement still gets the deadline, and a host upgraded since
settlement is released by the home, since it never armed its own.

* Close a finished worker automatically only if the user never opened it

Seeing a worker's terminal or chat now writes the user's Keep record (owned,
retained) on its host, at any point before its close is admitted, so a worker
seen while it worked is never armed and a pending automatic close is cancelled;
the coordinator can still release, stop or re-engage it. Desktop reports from
the on-screen attention scan for every on-screen terminal pane and chat once a
present user is on that workspace; mobile reports the tab a session opens on
and each tab switch. The weaker chat-only touch hooks are removed. A chat send
admitted after the automatic close committed its archive now keeps the chat.

* Show only live facts for a worker that reported a stop

A stop report is escalation mail that wakes the coordinator once. worker-list
and worker-show no longer project it as finished_unverified with a recovery
action, so the live-working override that cleared that label goes too.

* Report a paired-server worker's process exit home even while its ask or check --wait is still registered

* Report a seen worker until its host records the keep, including chats shown before custody and mobile auto-selections

The touch reply now says pending while a structured worker's custody row is
not yet recorded; desktop and mobile keep a subject unreported after a
failed or pending reply and retry on the next scan, snapshot or reconnect.
Mobile reports whichever terminal or chat is displayed, tapped or selected
by a snapshot, instead of only the first per workspace.

* Record a person's chat send or command takeover inside the session lane

Takeover moves from the RPC wrappers into the host's in-lane acceptance
of userSend sends, /compact and /clear, so a close queued behind an
accepted send cannot admit before the keep, including during /compact's
handover wait. Host orchestration sends never set userSend.

* Say which stop reports a deliberate wait suppresses

* Align merged tests with the shorter preamble and the fixed start hint

* Retry an unrecorded mobile worker touch when the phone reconnects

* Drop the removed worker check line from the CLI boundary test

* fix(orchestration): wake a coordinator that survived an app restart

After a restart, main typed the mail wake only into an agent whose status it
had seen live since starting, so a coordinator whose turn had already ended
never woke. At reattach, take the agent's own last hook report, which the hook
server restores from disk and from its offline spool, as that observation while
an agent still holds the surviving process.

* fix(orchestration): restore the lead's own turn, hold a restored draft, fence respawns

Read the lead agent's turn from the restored report so background work does
not hide an ended turn, keep the wake out of a composer that still holds text
typed before the restart, and drop a restore that a respawn has overtaken.

* fix(orchestration): restore a reattached status only from a current screen without a draft

The whole-screen accessor hides a model the provider still owns after attach, so a
draft there read as none. Read the screen the way wait gates do, provider image
included, and decline the restoration when it is unavailable.

* fix(orchestration): restore a reattached status without reading the screen

After a restart main has no record of typing, so the existing draft hold cannot
apply; a screen read here could miss a draft and, when slow, strand the
coordinator for good. A draft left before the restart now meets the same rule
as an abandoned one.

* fix(orchestration): let a slow foreground probe still restore a reattached status

A probe answering after the interactive two-second bound was dropped for good,
stranding the coordinator. Restoration has no caller waiting, so it takes the
real answer; the existing fences still guard application.

* test(orchestration): mark the slow foreground probe as fake-clock driven

* Report a terminal worker whose agent died while its shell lives

A killed agent sends no stop hook and its shell keeps the PTY open, so its
Dispatch stayed open and the coordinator was never woken. The shell's
command-finished already retires the PTY's launched-agent authority; the
panes it retires now go to the worker stop reporter as an 'exited' stop
(same mail and wake as a PTY exit, once per Dispatch, none once settled).

* refactor(orchestration): key mail, waits and settle checks by terminal

Reapplies #34056 on the integrated orchestration work: mail delivery, the
settle recheck and terminal waits are keyed by ptyId instead of the window
pane, deleting the pane-keyed leaf lane and the headless-only PTY lane.

Keeps #34706's delivery rule (a terminal taking input, idle or mid-turn,
gets the wake; dialogs, permission prompts and unsent drafts hold it; the
cold-park fence still defers a parked Enter) and #35274's multi-Run
coordinator mailboxes.

* fix(orchestration): keep best-effort delivery's catch; stage the remount e2e

deliverForHandle keeps the integration branch's catch: ownership resolution
still reads SQLite, and a notification queued before teardown must not throw.

The remount e2e now asserts each stage on its own (mid-turn mail before the
workspace opens, the wait across the remount, mail after it), since #34706
types mail mid-turn and the old single mail check could pass before the
remount happened.

* refactor(orchestration): settle a new terminal wait from its first reading

A wait now keeps the PTY record it resolved, and nothing runs between the
first evaluation and the waiter's registration, so the second evaluation
re-read the same evidence. Starts the poll from the first verdict instead.

Deletes the leaf wait-result builders the leaf lane left without callers,
and adds a unit test that a tui-idle wait survives its pane remounting
(the e2e cannot order the wait's registration before the remount).

* Report a dead worker agent only once its shell is proven alone

A command-finished marker alone does not prove the launched agent exited: a
nested interactive shell in a live worker emits the same marker. The exit
report now waits for the execution host's shell-alone proof and is fenced to
the Dispatch and launch seen at the marker, so a relaunch in the pane is not
reported by an older completion. It no longer hangs on launch-authority
retirement, so a nested completion that retires metadata does not stop a later
real death from being reported. The agent-exited fact feeds the same path for
shells without OSC 133.

The shell-alone report and a paired-server worker's PTY exit share one exit
entry point and key, so the Run home gets one report per process.

* fix(orchestration): resolve a terminal's mailbox across every pane that shows it

Two panes can show one PTY; ownership read only the first listed pane, so a
Run bound to the other was never woken. The mailbox terminal now carries
every pane alias and ownership, discovery and the delayed-Enter recheck
consult them all.

* Report a killed worker agent from its launch's exit receipt

The launch command now ends with a per-shell marker the shell prints once
the agent returns, however it ended. The execution host scans it before
thinning (main and daemon), checks it against the PTY's current launch and
incarnation, and reports through reportWorkerExit. A nested shell has no
receipt and a relaunch names a new one, so the shell-alone inference is gone.
A later local PTY exit reuses the same exit message id, so it settles the
Dispatch without a second report.

* Revert "Revert "Merge #33720 (restart: attach surviving terminals) into integration""

Reapplies survivor attach (72b3b79, fe906ea, f46777b) so the
#33720 merge that follows carries it; integration reverted it in 2f945fa.
The output clock now feeds v3's terminal-keyed wait path; the leaf lane it
also fed is gone in v3.

* test(orchestration): give exit-path DB stubs the remote-attachment lookup

The paired-server exit relay now asks the Orchestration DB for an active remote
attachment on every local pty exit; partial stubs without it threw.

* Report a worker killed after a restart from its Dispatch's launch commitment

The exit receipt ID is now derived from the launch-token hash a Dispatch
persists, so a PTY reattached after restart (no launch token in memory)
accepts its receipt when the pane's active Dispatch committed that launch
in the same shell process.

* test(orchestration): stub main's session-dispatch presentation read in the stale-leaf DB

Main's projection scope now reads listSessionDispatchesForPresentation on every
projection; v3's hand-rolled stub predates it.

* test(orchestration): drop the stale-leaf stub key integration's merge now supplies

* test(orchestration): align main's new tests with integration's mid-turn mail, admitted close and nameless worktrees

Main's titleless-turn test assumed mail waits for Stop; v3 types it into a working agent.
Main dropped the --name requirement, so that preflight case now fails on the missing repo.
The evict close now forwards the session lane's admitClose.

* perf(orchestration): read the next federated release deadline through its partial index

The armed-state filter alone cannot use the non-null partial index, so every rearm walked retained federation history.

* perf(terminal): keep unviewed restart survivors to the daemon's live window

Main now attaches every surviving terminal at startup; each mirror took the full
5,000-row depth with no viewer. A survivor nobody views keeps the 1,000 rows the
daemon itself holds, and grows to full depth from those rows once a view subscribes.

* chore(orchestration): clear check:changed findings on the main merge

Format a listing statement, prune the flaky-pattern baseline, and justify or remove the
test casts the changed-code gate flags.

* Revert the unviewed-survivor mirror cap: it can lose desktop history after a restart

A capped survivor mirror is still served as complete history to desktop recovery, and a desktop pane
added after inventory never lifts the cap. Restart memory for unviewed survivors moves to a follow-up
that defers the screen model instead of truncating it.

This reverts commit 4ea934c.

* Key main's new null-agent idle-wait test by terminal, as integration's waits are

* fix(orchestration): type mid-turn mail only into a recognized agent

An unrecognized terminal's working verdict may be a running program reading stdin,
so null-agent panes keep waiting for quiet before the pointer is typed.

* Remove killed-worker exit receipts from orchestration v3

The launch-bound receipt added a visible printf to every agent launch line. Owner decision: ship v3
without killed-worker detection (behaves as main does today) and revisit it later, e.g. by watching the
agent's hook-reported process.

This reverts merge b9a30b6.

* Stop re-arming a delivery recheck once the quiet window has passed

A refusal that outlives the quiet window (an unrecognized terminal still reading as working) is not
time-bound, so a 50 ms recheck spun forever. The next output, title or mail edge rechecks it.

* Keep retrying deliverable mail past the quiet window; gate mid-turn delivery on terminal agent identity

A refusal outliving the quiet window can wait on a hook final-frame deadline or a late foreground
recognition, neither of which emits a delivery edge, so poll slowly while that terminal still has
deliverable mail and stop once none is pending. Mid-turn delivery now asks whether the terminal agent
is recognized at all, not whether it has readiness rules, so a recognized reusable agent keeps it.

* Keep structured-agent-session.ts within the 300-line cap

* fix(orchestration): arm delivery rechecks only for actionable delivery work

The recheck predicate now counts persisted pointer reservations awaiting
recovery as well as selectable new mail, and gates every recheck (quiet
window, post-quiet, and holds) on it, using the canonical output clock.

* Check the served orchestration guide by a heading the v3 guide keeps

* test(e2e): launch the mail-pane fake under its agent CLI's name

v3 types mid-turn mail only into a recognized terminal agent, and a title alone no longer
recognizes one, so the fake runs as `node …/codex` (or cursor-agent) like an npm shim.
The hold-while-working case now models the unrecognized program that contract still holds for.

* test(e2e): align idle mail delivery spec with v3 auto-ack, mid-turn Enter and multi-Run coordinators

A consuming check now marks its batch handled (8fbb395), so the live
waiter's mail is pulled once returned and the held-batch case is seeded
as an older Orca leaves it. Agents queue mid-turn input (e0cb9a6), so
the held reminder's Enter is no longer withheld. A coordinator keeps its
earlier Run (#35274), so Run A direct mail is pointed with --run A.

* Wake a Run's coordinator through its pane when the Run's stored terminal handle belongs to the pane's previous PTY

* Make check --ack acknowledge only, so it never takes new mail

A check carrying --ack acknowledged that Delivery and then took (and,
since checks now acknowledge what they show, consumed) the next batch.
A caller that discarded the output lost that mail. --ack now returns
after acknowledging; newer mail stays unread, so the wake path still
fires and the next plain check shows it. The receipt says --ack is not
needed. Removes the ack-then-take receipts this made dead.

* Print every message body and payload in a plain orchestration check, since current hosts acknowledge the batch on read

* Keep acknowledge-then-take for check --ack --wait, and reject --ack on direct mail

A waiting caller reads what the wait takes, so --ack --wait acknowledges
and then waits for and takes the next batch, as before; --ack alone
stays acknowledge-only. Direct mail has no Delivery, so --ack there now
fails as a foreign delivery instead of consuming the mail.

* Keep a user-kept worker terminal kept when a new Dispatch reuses it, since its on-screen pane reports only once

* Tell a coordinator to check a remote worker itself when its host cannot report turn stops

* Find a Run's pane terminal for mail without re-issuing its handle mid-reload

* Keep the original ack-then-take path for check --ack --wait

Composing an ack with a second check lost the acknowledged consumer
generation and persisted subcall receipts. --ack --wait now runs the
original single-generation path unchanged; only --ack without --wait
returns after acknowledging, and direct mail still rejects --ack.

* Settle the e2e agent idle before newer mail so the mid-turn pointer cannot race the idle title

* Record a user's view of a worker terminal as user_seen so only it, not a coordinator's retain, survives reuse by a new Dispatch

* Let a worker ask, end its turn, and be woken with the answer

* Drop casts from the ask tests and the pending-question query

* Tell agents to run a plain check after acknowledging a held Delivery

--ack without --wait no longer takes newer mail, so the held-delivery
pointer now names the follow-up check for the new messages.

* Deliver Run and Dispatch mail to the pane's current PTY, issuing its handle only when none exists

* Wait for a PTY's exported handle before mail, and wake it when that handle is adopted

* Keep a cancelled ask from taking its answer, scope the asked-question stop mute to the asking turn, and end a waiting ask when its Dispatch settles

* Order the asked-question stop mute by message sequence, not same-second timestamps

* Wake a PTY's deferred mail whenever it gets a handle, by any path

* Make the headless Dispatch adoption test hold in both layout modes

* Mock the finished-worker strip states with neutral pane and chat notice fixtures

* Mock the temporary-worker strip with the owner's copy and the Allow auto-close tab menu item

* Mock chat workers with a goal-style composer strip instead of the composer notice

* Keep a worker open only by Keep open; hold its countdown while its agent works again

* Remove viewing and typing as implicit keeps on desktop and mobile

* Update the routing specs to acknowledge a held Delivery, then take with a plain check

* Show the temporary-worker strip with Keep open and its countdown, and Allow Auto-Close in tab menus

* Share the worker auto-close poll and key its read to the subject

* Re-read kept workers often so Allow Auto-Close shows its countdown promptly

* Hold auto-close through every turn, refuse stopping kept workers before anything changes, and read worker state only for known workers

* Keep a claimed close final, check the agent before claiming, refuse remote stops without a Keep open answer, and keep re-reading known workers

* Classify workerChatTouch caller fields and drop a test-only cast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants