Repository navigation
fix(terminal-wait): unattended launches report Claude's trust dialog instead of timing out or typing into it - #22927
Conversation
Review statusVerdict: ready for a human review; CI is green at What happened during review
Live QA (this revision against main, on a separate Mac, Claude Code 2.1.283)
Gates at
|
3a0aad2 to
9248249
Compare
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughTUI-idle evaluation now returns ranked verdicts for blocked, ready, working, and pending states. Runtime wait resolution and polling use shared leaf and PTY evidence. Polling checks rendered-screen text for blocked prompts before settling weak-ready waits. New Claude trust-dialog captures and tests cover visible and answered dialogs, narrow panes, title changes, and idle readiness. Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to Unattended launches can still be reported ready while Claude is blocked by a trust prompt or has resumed working. Resolve these readiness paths before merging. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to A screen check can begin while a terminal appears ready, then finish after the terminal has become busy or blocked. The wait may still report ready, so the protection against sending a task at the wrong time is not complete. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: 7c74752b-06b7-453d-a155-94f0bc92266c
📒 Files selected for processing (19)
src/main/daemon/serialize-grid-transcript-replay.test.tssrc/main/runtime/__fixtures__/claude-dialog-trust-workspace-answered.meta.jsonsrc/main/runtime/__fixtures__/claude-dialog-trust-workspace-answered.txtsrc/main/runtime/__fixtures__/claude-dialog-trust-workspace-narrow.meta.jsonsrc/main/runtime/__fixtures__/claude-dialog-trust-workspace-narrow.txtsrc/main/runtime/__fixtures__/claude-dialog-trust-workspace.meta.jsonsrc/main/runtime/__fixtures__/claude-dialog-trust-workspace.txtsrc/main/runtime/agent-transcript-pane-test-harness.tssrc/main/runtime/claude-trust-dialog-transcript.test.tssrc/main/runtime/orca-runtime-apply-tracked-pty-title.tssrc/main/runtime/orca-runtime-resolve-exit-waiters.tssrc/main/runtime/orca-runtime-runtime-id.tssrc/main/runtime/runtime-terminal-idle-polls.test.tssrc/main/runtime/runtime-terminal-idle-polls.tssrc/main/runtime/runtime-terminal-wait.tssrc/main/runtime/terminal-wait-name-only-idle.test.tssrc/main/runtime/tui-idle-evidence.test.tssrc/main/runtime/tui-idle-evidence.tssrc/main/runtime/tui-idle-weak-evidence-seam.test.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.
| private async tick(entry: IdlePollEntry): Promise<void> { | ||
| if (!this.entries.has(entry)) { | ||
| return | ||
| } | ||
| const { waiter, pty } = entry | ||
| // Why no re-read here: `ptysById` has a single create-once `set` site, so PTY | ||
| // records are mutated in place rather than swapped, and a capture stays live. | ||
| const agent = this.deps.getPaneAgent(pty.ptyId) | ||
| let startedForegroundPoll = false | ||
| try { | ||
| const waitText = buildTerminalWaitText(pty.tailBuffer, pty.tailPartialLine, pty.preview) | ||
| const blockedReason = detectTerminalWaitBlockedReason(waitText) | ||
| if (blockedReason) { | ||
| this.stop(entry) | ||
| this.deps.resolve( | ||
| waiter, | ||
| buildPtyTerminalWaitBlockedResult(waiter.handle, 'tui-idle', pty, blockedReason) | ||
| ) | ||
| const sample = this.sample(entry) | ||
| const { verdict, ptyId } = sample | ||
| if (verdict.kind === 'blocked') { | ||
| this.settle(entry, sample.blocked(verdict.reason)) | ||
| return | ||
| } | ||
| if ( | ||
| isTuiIdleSatisfied({ | ||
| record: pty, | ||
| readPositiveBodyEvidence: () => | ||
| this.deps.getAdoptedPtyIdleStatus(pty) === 'idle' || | ||
| isKnownReadyPromptPreview(waitText), | ||
| readMuseReadyBodyEvidence: () => isMuseReadyPromptPreview(waitText), | ||
| agent, | ||
| firstPartyStatus: this.deps.getFirstPartyAgentStatus(pty.ptyId), | ||
| quiescenceMs: this.deps.quiescenceMs | ||
| }) | ||
| ) { | ||
| this.stop(entry) | ||
| this.deps.resolve(waiter, buildPtyTerminalWaitResult(waiter.handle, 'tui-idle', pty)) | ||
| // Why strong ready outranks the screen: the detector is not scoped to a region, so dialog | ||
| // wording anywhere on a finished agent's screen would otherwise read as blocked. | ||
| if (verdict.kind === 'ready-strong') { | ||
| this.settle(entry, sample.ready()) | ||
| return | ||
| } | ||
| if ( | ||
| pty.lastAgentStatus === null && | ||
| quietForegroundProcessProvesTuiIdle(agent) && | ||
| !entry.foregroundPollInFlight | ||
| ) { | ||
| const foregroundRead = this.deps.getForegroundProcess(pty.ptyId) | ||
| // Why no screen read while working: its output can quote dialog wording (a diff of this | ||
| // detector), and the dialogs only the screen shows are start-up ones, painted before any title. | ||
| if (verdict.kind === 'working' || entry.screenReadInFlight) { | ||
| return | ||
| } | ||
| const screenRead = ptyId ? this.readScreenBlockedReason(entry, ptyId) : null | ||
| // Why await only a real read: a pane with no screen model keeps its tick synchronous. | ||
| const screenBlockedReason = screenRead ? await screenRead : null | ||
| if (!this.entries.has(entry)) { | ||
| return | ||
| } | ||
| if (screenBlockedReason) { | ||
| this.settle(entry, sample.blocked(screenBlockedReason)) | ||
| return | ||
| } | ||
| if (verdict.kind === 'ready-weak') { | ||
| this.settle(entry, sample.ready()) | ||
| return | ||
| } | ||
| if (verdict.quietForeground && ptyId && !entry.foregroundPollInFlight) { | ||
| const foregroundRead = this.deps.getForegroundProcess(ptyId) | ||
| if (!foregroundRead) { | ||
| return | ||
| } | ||
| entry.foregroundPollInFlight = true | ||
| startedForegroundPoll = true | ||
| const foreground = await foregroundRead | ||
| if ( | ||
| foreground && | ||
| !isShellProcess(foreground) && | ||
| isQuietForQuiescence(pty.lastOutputAt, this.deps.quiescenceMs) | ||
| ) { | ||
| this.stop(entry) | ||
| this.deps.resolve(waiter, buildPtyTerminalWaitResult(waiter.handle, 'tui-idle', pty)) | ||
| if (foreground && !isShellProcess(foreground) && sample.isQuiet()) { | ||
| this.settle(entry, sample.ready()) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '80,225p' src/main/runtime/runtime-terminal-idle-polls.ts
sed -n '190,350p' src/main/runtime/runtime-terminal-idle-polls.test.tsRepository: stablyai/orca
Length of output: 12209
🏁 Script executed:
set -eu
cat -n src/main/runtime/runtime-terminal-idle-polls.ts | sed -n '1,280p'
rg -n --glob '*.ts' 'evaluateTuiIdle|TuiIdleVerdict|ptyTuiIdleEvidence|leafTuiIdleEvidence|readVisibleScreen|startPty|startLeaf|agent-trust-workspace|blockedReason|tui-idle' src
git diff --unified=35 f0a36109285e7bd90c0e8452c439de12a991a02a 92482496be5d2e50c67d1ac4e89c449e1735652d -- src/main/runtime/runtime-terminal-idle-polls.ts src/main/runtime/runtime-terminal-idle-polls.test.ts | sed -n '1,500p'Repository: stablyai/orca
Length of output: 41589
🤖 get_repo_knowledge executed:
get_repo_knowledge stablyai/orca /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/learnings /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/conventions
Length of output: 41060
🏁 Script executed:
set -eu
printf '%s\n' '--- tui-idle-evidence.ts ---'
cat -n src/main/runtime/tui-idle-evidence.ts
printf '%s\n' '--- screen reader bindings ---'
rg -n -C 8 'readVisibleScreen\s*[:=]|readVisibleScreen\(' src/main src/shared
printf '%s\n' '--- idle poll callers ---'
rg -n -C 10 '\.startPty\(|\.startLeaf\(|new RuntimeTerminalIdlePolls|evaluateTuiIdle\(' src/main/runtime src/main
printf '%s\n' '--- contracts and detection ---'
cat -n src/shared/runtime-types.ts | sed -n '320,370p'
cat -n src/main/runtime/terminal-wait-detection.ts | sed -n '1,240p'Repository: stablyai/orca
Length of output: 42593
🏁 Script executed:
set -eu
cat -n src/main/runtime/tui-idle-evidence.ts
rg -n -C 8 'readVisibleScreen\s*[:=]|readVisibleScreen\(' src/main src/shared
rg -n -C 10 '\.startPty\(|\.startLeaf\(|new RuntimeTerminalIdlePolls|evaluateTuiIdle\(' src/main/runtime src/main
cat -n src/shared/runtime-types.ts | sed -n '320,370p'
cat -n src/main/runtime/terminal-wait-detection.ts | sed -n '1,240p'Repository: stablyai/orca
Length of output: 42488
🏁 Script executed:
set -eu
printf '%s\n' '--- callers ---'
rg -n -l 'startPty|startLeaf|RuntimeTerminalIdlePolls' src/main --glob '*.ts' | while read -r f; do
echo "### $f"
rg -n -C 8 'startPty|startLeaf|RuntimeTerminalIdlePolls' "$f"
done
printf '%s\n' '--- visible-screen bindings ---'
rg -n -l 'readVisibleScreen|visibleScreen|screen\.lines|headless' src/main/runtime --glob '*.ts' | while read -r f; do
echo "### $f"
rg -n -C 10 'readVisibleScreen|visibleScreen|screen\.lines|headless' "$f"
doneRepository: stablyai/orca
Length of output: 45652
🏁 Script executed:
set -eu
rg -n -l 'startPty|startLeaf|RuntimeTerminalIdlePolls' src/main --glob '*.ts' | while read -r f; do
echo "### $f"
rg -n -C 8 'startPty|startLeaf|RuntimeTerminalIdlePolls' "$f"
done
rg -n -l 'readVisibleScreen|visibleScreen|screen\.lines|headless' src/main/runtime --glob '*.ts' | while read -r f; do
echo "### $f"
rg -n -C 10 'readVisibleScreen|visibleScreen|screen\.lines|headless' "$f"
doneRepository: stablyai/orca
Length of output: 45652
Re-sample the verdict after the screen read completes.
A ready-weak tick captures verdict before awaiting readVisibleScreen. The membership check only handles cancellation. If the agent becomes working or the tail gains a blocking prompt while the read is pending, a clear screen result still reaches the old verdict.kind === 'ready-weak' branch and reports readiness. This can report tui-idle while the prompt owns the screen.
Suggested fix
if (!this.entries.has(entry)) {
return
}
+ const currentSample = this.sample(entry)
+ const currentVerdict = currentSample.verdict
+ if (currentVerdict.kind === 'blocked') {
+ this.settle(entry, currentSample.blocked(currentVerdict.reason))
+ return
+ }
+ if (currentVerdict.kind === 'ready-strong') {
+ this.settle(entry, currentSample.ready())
+ return
+ }
+ if (currentVerdict.kind === 'working') {
+ return
+ }
if (screenBlockedReason) {
- this.settle(entry, sample.blocked(screenBlockedReason))
+ this.settle(entry, currentSample.blocked(screenBlockedReason))
return
}
- if (verdict.kind === 'ready-weak') {
- this.settle(entry, sample.ready())
+ if (currentVerdict.kind === 'ready-weak') {
+ this.settle(entry, currentSample.ready())
return
}
- if (verdict.quietForeground && ptyId && !entry.foregroundPollInFlight) {
- const foregroundRead = this.deps.getForegroundProcess(ptyId)
+ if (currentVerdict.quietForeground && currentSample.ptyId && !entry.foregroundPollInFlight) {
+ const foregroundRead = this.deps.getForegroundProcess(currentSample.ptyId)
if (!foregroundRead) {
return
}
entry.foregroundPollInFlight = true
startedForegroundPoll = true
const foreground = await foregroundRead
- if (foreground && !isShellProcess(foreground) && sample.isQuiet()) {
- this.settle(entry, sample.ready())
+ if (foreground && !isShellProcess(foreground) && currentSample.isQuiet()) {
+ this.settle(entry, currentSample.ready())
}
}📝 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.
| private async tick(entry: IdlePollEntry): Promise<void> { | |
| if (!this.entries.has(entry)) { | |
| return | |
| } | |
| const { waiter, pty } = entry | |
| // Why no re-read here: `ptysById` has a single create-once `set` site, so PTY | |
| // records are mutated in place rather than swapped, and a capture stays live. | |
| const agent = this.deps.getPaneAgent(pty.ptyId) | |
| let startedForegroundPoll = false | |
| try { | |
| const waitText = buildTerminalWaitText(pty.tailBuffer, pty.tailPartialLine, pty.preview) | |
| const blockedReason = detectTerminalWaitBlockedReason(waitText) | |
| if (blockedReason) { | |
| this.stop(entry) | |
| this.deps.resolve( | |
| waiter, | |
| buildPtyTerminalWaitBlockedResult(waiter.handle, 'tui-idle', pty, blockedReason) | |
| ) | |
| const sample = this.sample(entry) | |
| const { verdict, ptyId } = sample | |
| if (verdict.kind === 'blocked') { | |
| this.settle(entry, sample.blocked(verdict.reason)) | |
| return | |
| } | |
| if ( | |
| isTuiIdleSatisfied({ | |
| record: pty, | |
| readPositiveBodyEvidence: () => | |
| this.deps.getAdoptedPtyIdleStatus(pty) === 'idle' || | |
| isKnownReadyPromptPreview(waitText), | |
| readMuseReadyBodyEvidence: () => isMuseReadyPromptPreview(waitText), | |
| agent, | |
| firstPartyStatus: this.deps.getFirstPartyAgentStatus(pty.ptyId), | |
| quiescenceMs: this.deps.quiescenceMs | |
| }) | |
| ) { | |
| this.stop(entry) | |
| this.deps.resolve(waiter, buildPtyTerminalWaitResult(waiter.handle, 'tui-idle', pty)) | |
| // Why strong ready outranks the screen: the detector is not scoped to a region, so dialog | |
| // wording anywhere on a finished agent's screen would otherwise read as blocked. | |
| if (verdict.kind === 'ready-strong') { | |
| this.settle(entry, sample.ready()) | |
| return | |
| } | |
| if ( | |
| pty.lastAgentStatus === null && | |
| quietForegroundProcessProvesTuiIdle(agent) && | |
| !entry.foregroundPollInFlight | |
| ) { | |
| const foregroundRead = this.deps.getForegroundProcess(pty.ptyId) | |
| // Why no screen read while working: its output can quote dialog wording (a diff of this | |
| // detector), and the dialogs only the screen shows are start-up ones, painted before any title. | |
| if (verdict.kind === 'working' || entry.screenReadInFlight) { | |
| return | |
| } | |
| const screenRead = ptyId ? this.readScreenBlockedReason(entry, ptyId) : null | |
| // Why await only a real read: a pane with no screen model keeps its tick synchronous. | |
| const screenBlockedReason = screenRead ? await screenRead : null | |
| if (!this.entries.has(entry)) { | |
| return | |
| } | |
| if (screenBlockedReason) { | |
| this.settle(entry, sample.blocked(screenBlockedReason)) | |
| return | |
| } | |
| if (verdict.kind === 'ready-weak') { | |
| this.settle(entry, sample.ready()) | |
| return | |
| } | |
| if (verdict.quietForeground && ptyId && !entry.foregroundPollInFlight) { | |
| const foregroundRead = this.deps.getForegroundProcess(ptyId) | |
| if (!foregroundRead) { | |
| return | |
| } | |
| entry.foregroundPollInFlight = true | |
| startedForegroundPoll = true | |
| const foreground = await foregroundRead | |
| if ( | |
| foreground && | |
| !isShellProcess(foreground) && | |
| isQuietForQuiescence(pty.lastOutputAt, this.deps.quiescenceMs) | |
| ) { | |
| this.stop(entry) | |
| this.deps.resolve(waiter, buildPtyTerminalWaitResult(waiter.handle, 'tui-idle', pty)) | |
| if (foreground && !isShellProcess(foreground) && sample.isQuiet()) { | |
| this.settle(entry, sample.ready()) | |
| private async tick(entry: IdlePollEntry): Promise<void> { | |
| if (!this.entries.has(entry)) { | |
| return | |
| } | |
| let startedForegroundPoll = false | |
| try { | |
| const sample = this.sample(entry) | |
| const { verdict, ptyId } = sample | |
| if (verdict.kind === 'blocked') { | |
| this.settle(entry, sample.blocked(verdict.reason)) | |
| return | |
| } | |
| // Why strong ready outranks the screen: the detector is not scoped to a region, so dialog | |
| // wording anywhere on a finished agent's screen would otherwise read as blocked. | |
| if (verdict.kind === 'ready-strong') { | |
| this.settle(entry, sample.ready()) | |
| return | |
| } | |
| // Why no screen read while working: its output can quote dialog wording (a diff of this | |
| // detector), and the dialogs only the screen shows are start-up ones, painted before any title. | |
| if (verdict.kind === 'working' || entry.screenReadInFlight) { | |
| return | |
| } | |
| const screenRead = ptyId ? this.readScreenBlockedReason(entry, ptyId) : null | |
| // Why await only a real read: a pane with no screen model keeps its tick synchronous. | |
| const screenBlockedReason = screenRead ? await screenRead : null | |
| if (!this.entries.has(entry)) { | |
| return | |
| } | |
| const currentSample = this.sample(entry) | |
| const currentVerdict = currentSample.verdict | |
| if (currentVerdict.kind === 'blocked') { | |
| this.settle(entry, currentSample.blocked(currentVerdict.reason)) | |
| return | |
| } | |
| if (currentVerdict.kind === 'ready-strong') { | |
| this.settle(entry, currentSample.ready()) | |
| return | |
| } | |
| if (currentVerdict.kind === 'working') { | |
| return | |
| } | |
| if (screenBlockedReason) { | |
| this.settle(entry, currentSample.blocked(screenBlockedReason)) | |
| return | |
| } | |
| if (currentVerdict.kind === 'ready-weak') { | |
| this.settle(entry, currentSample.ready()) | |
| return | |
| } | |
| if (currentVerdict.quietForeground && currentSample.ptyId && !entry.foregroundPollInFlight) { | |
| const foregroundRead = this.deps.getForegroundProcess(currentSample.ptyId) | |
| if (!foregroundRead) { | |
| return | |
| } | |
| entry.foregroundPollInFlight = true | |
| startedForegroundPoll = true | |
| const foreground = await foregroundRead | |
| if (foreground && !isShellProcess(foreground) && currentSample.isQuiet()) { | |
| this.settle(entry, currentSample.ready()) |
There was a problem hiding this comment.
ℹ️ No critical issues — one rough edge worth a look, plus two small notes.
Reviewed changes
Read the complete 19-file diff (5 commits, +1090/−295). This PR reworks tui-idle readiness so an unattended Claude launch into an untrusted folder reports agent-trust-workspace within a few seconds instead of timing out or typing its brief into the trust dialog.
- One evaluator for every settle site —
isTuiIdleSatisfied(boolean) is replaced byevaluateTuiIdle, returning aTuiIdleVerdict(blocked/ready-strong/ready-weak/working/pending).runtime-terminal-wait.ts,runtime-terminal-idle-polls.ts, andorca-runtime-resolve-exit-waiters.tsnow branch only on the verdict, and blocking becomes tier 0 ahead of strong ready. - Weak ready settles only on the poll, after a rendered-screen read —
RuntimeTerminalIdlePollsgainsreadVisibleScreen, wired to the runtime's in-process headless emulator;ready-weak/pendingverdicts are gated behinddetectTerminalWaitBlockedReason(screen). Aworkingverdict skips the read so an agent quoting the dialog's wording in its own output is not misread as blocked, and aready-weakverdict triggers an immediate tick so sub-interval probes (the automation start probe) still see it. - Claude's bare name now needs corroboration —
NATIVE_EXPLICIT_IDLE_TITLE_AGENTSaddsclaude, so a shell auto-title (claude,claude ~/path) waits for the quiescence window the way Codex/Devin already do. - Transcript fixtures and tests — three captured Claude trust-dialog fixtures, the new
claude-trust-dialog-transcriptandtui-idle-weak-evidence-seamsuites, additions to the idle-poll and evidence unit specs, and a pinned count in the serializer replay suite.
The ranking, the phy/leaf evidence builders, and the resolver changes are consistent across sites, and the transcript and seam tests genuinely fail under ablation — the core change is well covered.
ℹ️ Nitpicks
- The class-header claim at
src/main/runtime/tui-idle-evidence.ts:36-38— "ONLY the poll may settle on it" — is broader than the implementation:isAgentSettledForDelivery(orca-runtime-resolve-exit-waiters.ts:207-209) also acceptsready-weakwithreadTailBlockedReason: () => nulland no screen read. The PR body documents this as deliberate delivery behavior, but the absolute wording here invites the next reader to treat it as an invariant. Scoping it to "only the wait path's poll" would match reality. - The screen-read await re-checks
this.entries.has(entry)atruntime-terminal-idle-polls.ts:169-171; the foreground await at line 187 does not, sosettle()can calldeps.resolvefor an entry the poll already removed. It is currently masked because everycancelIdlePollcaller settles the promise first (making the secondresolvea no-op), but it is the same invariant the screen path deliberately enforces.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| return | ||
| } | ||
| if (verdict.kind === 'ready-weak') { | ||
| this.settle(entry, sample.ready()) |
There was a problem hiding this comment.
sample() computes the verdict at line 149, before the await on the screen read, but this ready-weak branch acts on that captured verdict afterwards — guarded only by the entries.has re-check. If the pane starts a new turn (lastAgentStatus/title → working) while the read is pending, the poll still settles satisfied: true over a busy agent.
Technical details
# `ready-weak` settles a verdict captured before the screen-read await
## Affected sites
- `src/main/runtime/runtime-terminal-idle-polls.ts:149` — `const sample = this.sample(entry)` (verdict computed here)
- `src/main/runtime/runtime-terminal-idle-polls.ts:168` — `await screenRead`
- `src/main/runtime/runtime-terminal-idle-polls.ts:169-171` — re-checks only `this.entries.has(entry)`, not the verdict
- `src/main/runtime/runtime-terminal-idle-polls.ts:176-178` — settles `sample.ready()` from the stale verdict
The pty `sample()` closes over `entry.pty`, which is mutated in place, so a title/status change during the read is visible to the record but not to the captured `verdict`. The `resolveTuiIdleWaiters` resolver does not settle a `working` transition, so the entry is not removed by the interim change and this branch fires.
## Required outcome
- Do not settle `ready-weak` on a verdict the pane has since contradicted. Either recompute the sample after the screen read resolves, or re-validate the `ready-weak` verdict (e.g. no `working` status) before `settle()`.
## Suggested approach (optional)
- Compute `ptyId` first, perform the screen read, then evaluate the full verdict/sample from the post-await record — mirroring the `entries.has` re-check already there for cancellation.
## Open questions for the human (optional)
- Window is narrow (`await state.writeChain`); is a fresh sample per pending/weak tick's screen read acceptable, or would you rather gate just the `ready-weak` settle?…ocking prompt
Claude's first-launch "trust this folder?" dialog parks the cursor above its
options, and the host's line tail drops the lines below it, which are the only
ones the trust matcher knew ("trust this folder", "Enter to confirm"). An
unattended Claude launch into a fresh folder therefore waited out its whole
budget and reported a timeout instead of the blocking prompt. The dialog's
opening question ("... one you trust?") survives in the tail, so it is now
recognised, pinned by a captured transcript of the real dialog.
…he tui-idle poll Claude's workspace-trust dialog parks the cursor on its highlighted option with a cursor-up, and the host line tail deletes every retained row below the cursor, so "Yes, I trust this folder" and "Enter to confirm" never reach the blocked-prompt detector. In a live launch the dialog also arrives in 1024-byte reads, and the tail's plain path blanks each line that ends in a carriage return before the newline, so the opening question does not survive either. An unattended launch waited out its whole budget and reported a timeout. The runtime already feeds every PTY chunk into its own headless emulator. The tui-idle poll now also runs the existing blocked-prompt rules over that emulator's visible screen (no provider or host round trip), after the tail checks and before the quiet-foreground idle fallback. The "one you trust" phrase is dropped: it only matched when the whole dialog arrived in one chunk, wrapped away on narrow panes, and could match prose. Replays three live Claude 2.1.280 captures through the runtime: the dialog in one chunk and in 1024-byte reads, a 60-column pane, and the dialog answered with "Yes", which must report ready rather than blocked.
…agent reports working The screen check runs on every tui-idle poll, and the automation observer holds a tui-idle wait open for a whole agent turn. A working Claude whose screen showed dialog wording (a diff of the detector, say) was reported blocked where main kept waiting. The dialogs only the screen reveals are start-up ones painted before any title, so a working title now vetoes it.
…screen read A shell auto-title (oh-my-zsh's `claude`, fish's `claude <cwd>`) names Claude before its workspace trust dialog paints, and the line tail loses that dialog. The wait took the bare name as rest, settled ready, and the launch typed its brief into the dialog. Every tui-idle settle site now asks one evaluator for a verdict: blocked, strong ready, working, weak ready or pending. The pre- and post-registration checks and the title-change resolvers settle only blocked or strong ready; weak ready is left to the poll, which settles it only once the rendered screen shows no blocker. A name-only Claude title is held to the same quiet window as Codex and Devin, since Claude announces rest with its own explicit title.
…ializer divergences The captured answered-dialog transcript added by this PR is replayed by the serialize round-trip suite and diverges at 13 checkpoints. It diverges identically on origin/main and on the pre-#22586 addon build (13 both-fail, 0 regressions): the live SGR pen leaks into the alt buffer, and an alt buffer first entered after a shrink keeps hidden scrollback. Pin the count like the other known captures and correct the comment, which called these upstream.
9248249 to
83aa3aa
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
src/main/runtime/runtime-terminal-idle-polls.ts (1)
166-179: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winRe-sample the verdict after the screen read resolves.
tickcomputesverdictbefore it awaitsscreenRead. After the await, the code checks only whether the entry is still registered. The pane can change while the read is pending. For example,lastAgentStatuscan becomeworking, or the tail can show a blocking prompt. In that case, a clear screen still reaches the staleready-weakbranch, and the poll settlessatisfied: true.resolvePtyTuiIdleWaitersdoes not settle on aworkingtransition, so nothing retires the entry before this branch runs.Call
this.sample(entry)again after the await. Use the fresh sample to handleblocked,ready-strong, andworkingbefore you settleready-weak.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 8c33e93b-73b6-4c1d-bf91-58fd0b3d17a2
📒 Files selected for processing (8)
src/main/daemon/serialize-grid-transcript-replay.test.tssrc/main/runtime/orca-runtime-resolve-exit-waiters.tssrc/main/runtime/orca-runtime-runtime-id.tssrc/main/runtime/runtime-terminal-idle-polls.test.tssrc/main/runtime/runtime-terminal-idle-polls.tssrc/main/runtime/runtime-terminal-wait.tssrc/main/runtime/terminal-wait-name-only-idle.test.tssrc/main/runtime/tui-idle-evidence.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
| } | ||
| if ( | ||
| pty.lastAgentStatus === null && | ||
| quietForegroundProcessProvesTuiIdle(agent) && | ||
| !entry.foregroundPollInFlight | ||
| ) { | ||
| const foregroundRead = this.deps.getForegroundProcess(pty.ptyId) | ||
| // Why no screen read while working: its output can quote dialog wording (a diff of this | ||
| // detector), and the dialogs only the screen shows are start-up ones, painted before any title. | ||
| if (verdict.kind === 'working' || entry.screenReadInFlight) { | ||
| return | ||
| } | ||
| const screenRead = ptyId ? this.readScreenBlockedReason(entry, ptyId) : null | ||
| // Why await only a real read: a pane with no screen model keeps its tick synchronous. | ||
| const screenBlockedReason = screenRead ? await screenRead : null | ||
| if (!this.entries.has(entry)) { | ||
| return | ||
| } | ||
| if (screenBlockedReason) { | ||
| this.settle(entry, sample.blocked(screenBlockedReason)) | ||
| return | ||
| } | ||
| if (verdict.kind === 'ready-weak') { | ||
| this.settle(entry, sample.ready()) | ||
| return | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '135,225p' src/main/runtime/runtime-terminal-idle-polls.ts
sed -n '325,365p' src/main/runtime/orca-runtime-runtime-id.ts
rg -n 'readVisibleScreen|headlessTerminal|ready-weak' src/main/runtime/runtime-terminal-idle-polls.ts src/main/runtime/orca-runtime-runtime-id.ts src/main/runtime/runtime-terminal-idle-polls.test.tsRepository: stablyai/orca
Length of output: 6994
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- changed-file diff ---'
git diff --stat 89cf55dfc8f2af9c2c57f8a977ef6fc769c4a46a 83aa3aa98f2fc5ddbadc0b79d0f9db477bac93e8 -- src/main/runtime/runtime-terminal-idle-polls.ts src/main/runtime/orca-runtime-runtime-id.ts src/main/runtime/runtime-terminal-idle-polls.test.ts
git diff --unified=35 89cf55dfc8f2af9c2c57f8a977ef6fc769c4a46a 83aa3aa98f2fc5ddbadc0b79d0f9db477bac93e8 -- src/main/runtime/runtime-terminal-idle-polls.ts src/main/runtime/orca-runtime-runtime-id.ts | sed -n '1,360p'
printf '%s\n' '--- relevant symbols ---'
rg -n -C 5 'headlessTerminals|readHeadlessVisibleTerminalState|readLiveTerminalScreenLines|startTuiIdleVisibleReadProbe|detectTerminalWaitBlockedReason|workspace trust|trust|headless' src/main/runtime src/main | head -n 320Repository: stablyai/orca
Length of output: 42371
🤖 get_repo_knowledge executed:
get_repo_knowledge stablyai/orca /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/architecture /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/learnings /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/conventions
Length of output: 47935
🏁 Script executed:
git diff --stat 89cf55dfc8f2af9c2c57f8a977ef6fc769c4a46a 83aa3aa98f2fc5ddbadc0b79d0f9db477bac93e8 -- src/main/runtime/runtime-terminal-idle-polls.ts src/main/runtime/orca-runtime-runtime-id.ts src/main/runtime/runtime-terminal-idle-polls.test.ts
git diff --unified=35 89cf55dfc8f2af9c2c57f8a977ef6fc769c4a46a 83aa3aa98f2fc5ddbadc0b79d0f9db477bac93e8 -- src/main/runtime/runtime-terminal-idle-polls.ts src/main/runtime/orca-runtime-runtime-id.ts
rg -n -C 5 'headlessTerminals|readHeadlessVisibleTerminalState|readLiveTerminalScreenLines|startTuiIdleVisibleReadProbe|detectTerminalWaitBlockedReason|workspace trust|trust|headless' src/main/runtime src/mainRepository: stablyai/orca
Length of output: 45636
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- idle poll exact source ---'
sed -n '1,260p' src/main/runtime/runtime-terminal-idle-polls.ts
printf '%s\n' '--- wait controller and visible probe bindings ---'
rg -n -C 12 'startTuiIdleVisibleReadProbe|startLeaf\\(|startPty\\(|startVisibleReadProbe|readVisibleScreen|headlessTerminals\\.has' src/main/runtime/runtime-terminal-wait.ts src/main/runtime/orca-runtime-runtime-id.ts src/main/runtime
printf '%s\n' '--- headless lifecycle declarations and mutations ---'
rg -n -C 8 'headlessTerminals' src/main/runtime/orca-runtime-runtime-id.ts src/main/runtime --glob '*.ts' | head -n 260
printf '%s\n' '--- focused idle-poll tests ---'
sed -n '1,390p' src/main/runtime/runtime-terminal-idle-polls.test.tsRepository: stablyai/orca
Length of output: 10294
🏁 Script executed:
#!/bin/bash
set -eu
sed -n '1,260p' src/main/runtime/runtime-terminal-idle-polls.ts
rg -n -C 12 'startTuiIdleVisibleReadProbe|startLeaf\(|startPty\(|startVisibleReadProbe|readVisibleScreen|headlessTerminals\.has' src/main/runtime/runtime-terminal-wait.ts src/main/runtime/orca-runtime-runtime-id.ts src/main/runtime
rg -n -C 8 'headlessTerminals' src/main/runtime/orca-runtime-runtime-id.ts src/main/runtime --glob '*.ts' | head -n 260
sed -n '1,390p' src/main/runtime/runtime-terminal-idle-polls.test.tsRepository: stablyai/orca
Length of output: 41576
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- wait controller full relevant ranges ---'
sed -n '1,280p' src/main/runtime/runtime-terminal-wait.ts
printf '%s\n' '--- visible probe implementation and callers ---'
rg -n -F -C 18 'startTuiIdleVisibleReadProbe' src/main/runtime
rg -n -F -C 10 'startVisibleReadProbe' src/main/runtime/runtime-terminal-wait.ts src/main/runtime
printf '%s\n' '--- renderer/headless mode lifecycle ---'
rg -n -F -C 10 'headlessTerminals.has' src/main/runtime --glob '*.ts'
rg -n -F -C 10 'headlessTerminals.set' src/main/runtime --glob '*.ts'Repository: stablyai/orca
Length of output: 41914
🏁 Script executed:
#!/bin/bash
set -eu
sed -n '1,280p' src/main/runtime/runtime-terminal-wait.ts
rg -n -F -C 18 'startTuiIdleVisibleReadProbe' src/main/runtime
rg -n -F -C 10 'startVisibleReadProbe' src/main/runtime/runtime-terminal-wait.ts src/main/runtime
rg -n -F -C 10 'headlessTerminals.has' src/main/runtime --glob '*.ts'
rg -n -F -C 10 'headlessTerminals.set' src/main/runtime --glob '*.ts'Repository: stablyai/orca
Length of output: 41775
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- visible probe complete source ---'
sed -n '1,260p' src/main/runtime/orca-runtime-start-tui-idle-visible-read-probe.ts
printf '%s\n' '--- renderer and headless PTY creation/attachment ---'
rg -n -F -C 16 'createPtyHeadlessTerminalState' src/main/runtime --glob '*.ts'
rg -n -F -C 16 'disposeHeadlessTerminal' src/main/runtime --glob '*.ts'
rg -n -F -C 16 'attachRenderer' src/main/runtime --glob '*.ts'
rg -n -F -C 16 'serializeBuffer' src/main/runtime --glob '*.ts'Repository: stablyai/orca
Length of output: 42372
🏁 Script executed:
#!/bin/bash
set -eu
sed -n '1,260p' src/main/runtime/orca-runtime-start-tui-idle-visible-read-probe.ts
rg -n -F -C 16 'createPtyHeadlessTerminalState' src/main/runtime --glob '*.ts'
rg -n -F -C 16 'disposeHeadlessTerminal' src/main/runtime --glob '*.ts'
rg -n -F -C 16 'attachRenderer' src/main/runtime --glob '*.ts'
rg -n -F -C 16 'serializeBuffer' src/main/runtime --glob '*.ts'Repository: stablyai/orca
Length of output: 43051
Keep weak readiness pending when no rendered screen is available.
When readVisibleScreen returns null, the polling path treats the missing screen as clear. A ready-weak bare agent title can therefore settle while a rendered workspace-trust prompt remains visible. The separate visible-read probe starts only after startPty invokes its immediate weak-ready tick, so it cannot prevent this settlement.
Suggested fix
const screenRead = ptyId ? this.readScreenBlockedReason(entry, ptyId) : null
+ if (!screenRead && verdict.kind === 'ready-weak') {
+ return
+ }
// Why await only a real read: a pane with no screen model keeps its tick synchronous.
const screenBlockedReason = screenRead ? await screenRead : null📝 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 ( | |
| pty.lastAgentStatus === null && | |
| quietForegroundProcessProvesTuiIdle(agent) && | |
| !entry.foregroundPollInFlight | |
| ) { | |
| const foregroundRead = this.deps.getForegroundProcess(pty.ptyId) | |
| // Why no screen read while working: its output can quote dialog wording (a diff of this | |
| // detector), and the dialogs only the screen shows are start-up ones, painted before any title. | |
| if (verdict.kind === 'working' || entry.screenReadInFlight) { | |
| return | |
| } | |
| const screenRead = ptyId ? this.readScreenBlockedReason(entry, ptyId) : null | |
| // Why await only a real read: a pane with no screen model keeps its tick synchronous. | |
| const screenBlockedReason = screenRead ? await screenRead : null | |
| if (!this.entries.has(entry)) { | |
| return | |
| } | |
| if (screenBlockedReason) { | |
| this.settle(entry, sample.blocked(screenBlockedReason)) | |
| return | |
| } | |
| if (verdict.kind === 'ready-weak') { | |
| this.settle(entry, sample.ready()) | |
| return | |
| } | |
| } | |
| // Why no screen read while working: its output can quote dialog wording (a diff of this | |
| // detector), and the dialogs only the screen shows are start-up ones, painted before any title. | |
| if (verdict.kind === 'working' || entry.screenReadInFlight) { | |
| return | |
| } | |
| const screenRead = ptyId ? this.readScreenBlockedReason(entry, ptyId) : null | |
| if (!screenRead && verdict.kind === 'ready-weak') { | |
| return | |
| } | |
| // Why await only a real read: a pane with no screen model keeps its tick synchronous. | |
| const screenBlockedReason = screenRead ? await screenRead : null | |
| if (!this.entries.has(entry)) { | |
| return | |
| } | |
| if (screenBlockedReason) { | |
| this.settle(entry, sample.blocked(screenBlockedReason)) | |
| return | |
| } | |
| if (verdict.kind === 'ready-weak') { | |
| this.settle(entry, sample.ready()) | |
| return | |
| } |
There was a problem hiding this comment.
ℹ️ No new issues in the new commits — the change since the prior review is a rebase, and the earlier finding on the poll's screen-read verdict remains open.
Reviewed changes
Re-reviewed the 5 commits at 83aa3aa98f against the previously reviewed 92482496be. The two heads were rebased apart (no common merge base), so the delta was recovered with git range-diff; it is a rebase plus a small test-comment change.
- Rebased onto current
main—mainhad renamed and expanded the tier-1 body detector toisKnownReadyPromptBody(waitText, agent, readScreenLines)(Codex header readiness, #23475). The two new evidence builders now pass the pane's agent and its live screen lines, matching every other caller. - Transcript-harness change dropped — the
size/getSizesupport the captured fixtures need now lives inagent-transcript-pane-test-harness.tsonmain, so the PR no longer touches that file. - Serializer pin comment corrected — the known-divergence comment now names the two pre-existing serializer limitations; the pinned
claude-dialog-trust-workspace-answered: 13count is unchanged in effect.
Verified on this head: the 5 focused tui-idle/transcript suites (60 tests), the serializer replay suite (27 tests), and pnpm tc:node all pass. No specialist review was needed.
The prior inline finding on the stale screen-read verdict (runtime-terminal-idle-polls.ts, thread PRRT_kwDORpCz1s6mONgc) is unchanged by the rebase, so it remains open rather than being re-raised here.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
When Orca starts Claude by itself (an orchestration worker, a launch from the CLI or the phone, or an automation) in a folder Claude has never seen, Claude first asks "Do you trust this folder?". Orca waits for Claude to be ready and then types the task in. Before this change, Orca either missed the question and gave up after its whole time budget, or, for people whose shell puts the command name in the terminal title, decided Claude was ready and typed the task straight into the question. Pressing Enter there picks "No, exit" and Claude quits. Now Orca looks at the screen the way the user sees it, reports "this launch is waiting on you" within a few seconds, and never types into the question.
What Changed
Before: an unattended Claude launch into an untrusted folder either waited out its whole budget and failed with
timeout, or, for oh-my-zsh and fish users, typed its brief into the trust dialog. oh-my-zsh sets the terminal title toclaudewhen the command starts and fish sets it toclaude ~/path; Orca took that bare name as "Claude is idle", and Enter on the dialog's default answer made Claude exit.After: the launch stops as blocked with
agent-trust-workspacewithin a few seconds and leaves the dialog untouched for the user to answer. Once the user picks "Yes", the same wait reports Claude as ready. A working Claude whose output quotes the dialog's wording on screen is not reported as blocked; the existing line-tail check is unchanged and still applies at every rank.Mechanism: every place that can settle a
tui-idlewait now asks one evaluator (evaluateTuiIdleinsrc/main/runtime/tui-idle-evidence.ts) for a verdict instead of combining checks itself. The verdicts, in rank order:✳,Codex ready) or a known ready screen. Muse's ready screen after a quiet period keeps this rank.The checks that run the moment a wait is registered, and the resolvers that run when a terminal title changes (including the path that restores a title after an exit probe), settle only on blocked or strong ready. The 2-second poll is the only place a weak ready can settle, and only after it reads the runtime's own rendered screen and finds no blocking prompt; if the screen shows one, the wait resolves blocked. When a wait is registered on a pane that already has weak evidence, the poll does this screen read at once rather than a tick later.
A name-only Claude title (
claude,claude ~/path) now needs the pane to go quiet first, the same rule Codex and Devin already had, because Claude announces rest with its own✳title. This is an extension of the existing "does this agent's bare name need corroboration" rule, not a new check.Weak ready is a verdict class, not a property of one piece of evidence, so a future readiness signal added as a weak-ready rank can only ever settle on the poll after the screen read. A test injects such a signal that fires over the dialog itself and checks the wait still reports blocked.
The tail still loses Claude's dialog: its cursor-up handling drops the rows below the cursor, and lines ending in
\r\r\ncome out blank. This PR does not change the tail; the screen read is what sees the dialog.Timing changes:
✳title is still ready at once.Ordering choice: the agent's own idle title outranks dialog wording on the rendered screen. The blocked-prompt rules are not scoped to a region of the screen, so wording anywhere on a finished agent's screen would otherwise read as blocked. A name-only title does not get this protection: under it, dialog wording on the screen resolves blocked.
Side effects in shared code:
Why
Follow-ups (not in this PR)
isAgentSettledForDelivery) uses the same ranking with no blocked check and then sends Enter, so it can still answer "No, exit" on a trust dialog. It is edge-driven with no poll behind it and cannot do an async screen read; adding the tail check alone would spin its recheck timer on a lingering prompt. Highest priority.resolveAuthoritativeTerminalWaitPermissionlets a title outrank blocked body text.\r\r\nblanking and its cursor-up row deletion.ESC[?1049h█ESC[1mat 20x5; a reset beforeESC[?1049htakes the answered Claude capture from 13 to 9 round-trip mismatches,less6→0,nano2→0,opencode5→2. The fix changes the add-on patch, so it needs its own PR with the lockfile update.ESC[?1049h ESC[5;1H A LF B ESC[H, then back to 20x6; accounts for the other 9 mismatches. This is a terminal-core fix for its own PR.This PR adds a captured Claude transcript that the serializer round-trip suite also replays; it exposes items 7 and 8. Both diverge identically on main and on the add-on build from before #22586 (13 mismatches on both, 0 regressions), so the suite pins that count the same way it already does for
less,nanoandopencode.Linked Issue
No tracking issue. Found during live QA of an unattended Claude launch into a fresh folder.
Visual Proof
Live QA of this revision (
ac12fa3c37) against its base on main (acf8e679ea): the Orca desktop app launched hidden on a separate Mac, Claude Code 2.1.283, a fresh untrusted folder per run, and the shell's title set either by a stock oh-my-zsh install (default auto-title) or by a plain zsh. Each build was confirmed from its compiled main bundle before its runs.orca terminal wait --for tui-idleagent-trust-workspacein ~2 s, dialog untouchedAgent startup blocked: agent-trust-workspace; the dialog is still up, untouchedorca terminal wait --for tui-idletimeoutafter 60 sagent-trust-workspacein ~2 s, dialog untouchedUnattended worker start under oh-my-zsh — main (Claude has already exited to the shell prompt below the dialog):
The same start with this PR (reported blocked; the dialog waits for the user):
Readiness-wait screenshots (oh-my-zsh and plain zsh, both builds)
main, oh-my-zsh (wait said ready):
This PR, oh-my-zsh (wait said blocked):
main, plain zsh (wait timed out):
This PR, plain zsh (wait said blocked):
fish was not installed on the QA machine, so the fish title is covered by the transcript tests only. Windows, WSL and SSH were not run live; the screen check reads the app's own in-process terminal emulator, which every pane kind feeds.
Testing
claude-trust-dialog-transcript.test.tsreplays live Claude Code 2.1.280 captures through the real runtime and itstui-idlewait:agent-trust-workspaceclaudeas OSC 1) followed by the dialog, with the wait registered after the pane went quiet: blocked, never ready✳titletui-idle-weak-evidence-seam.test.ts(new) replaces the evaluator with one that adds a synthetic weak-ready signal firing over the dialog itself: a wait registered after the dialog, and one offered the signal through a title change before the dialog paints, both resolve blocked; a control case with nothing on screen resolves ready, proving the signal reaches the settle sites.runtime-terminal-idle-polls.test.ts: Grok, Copilot and Aider name-only titles settle only after the screen read comes back clear; a dialog on screen under a name-only title resolves blocked; an agent's own idle title settles without reading the screen.tui-idle-evidence.test.tscovers the rank order and the corroboration rule, includingclaude ~/p/repo.Existing specs changed: in
tui-idle-evidence.test.tsthe two existing Muse cases now assert verdicts (ready-strong,working) instead of the removedisTuiIdleSatisfiedboolean's true/false; same outcomes. ThecreatePollshelper inruntime-terminal-idle-polls.test.tsgained an optional agent argument. No other existing expectation changed.Ablation (part removed, focused suites run, part restored):
The title-resolver half of the first guard is caught only by the seam test: with real Claude evidence the title arrives before the pane is quiet, so it is never weak at that moment.
Gates:
pnpm tc:node, full-filepnpm exec oxlinton the changed files, andpnpm run check:code-quality:changed -- origin/mainpass. 30 related vitest files pass (1634 tests): the tui-idle, terminal-wait, idle-poll, transcript, delivery, automation run observer, orchestration worker-start and federation suites, and the runtime characterization suiteorca-runtime.test.ts.Platforms: macOS unit and transcript tests only. The screen read is the runtime's own in-process emulator, fed by the same output path for local, SSH, WSL and Windows panes, and nothing here depends on git, so folder workspaces are unaffected. A pane whose output never reaches the runtime has no screen model; there a weak ready still settles without a screen read, as before.
AI Disclosure
Review