Skip to content

Name the terminal holding a conversation, with a Close terminal button - #33721

Closed
brennanb2025 wants to merge 128 commits into
mainfrom
brennanb2025/name-holding-terminal
Closed

brennanb2025 wants to merge 128 commits into
mainfrom
brennanb2025/name-holding-terminal

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 72 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6085 $\color{#cf222e}{\Huge{\mathbf{−}}}$​222 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5863
Prod 218 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6429 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1302 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5127

The problem

Opening a conversation in Chat UI can be refused while its agent still runs in a terminal, without identifying that terminal. Session History can also leave a blank failed chat after refusing the open. Tracked in #32154 and STA-12161.

What changes for users

The existing notice, not-sent row, and terminal/Session History toast can name the original holding terminal, link to its exact pane, and offer Close terminal. Close uses normal confirmation, closes only that split pane, and stays busy until the captured process exits. Cancel preserves the terminal. Missing or replaced execution evidence keeps today's unnamed sentence and control.

After Close terminal, the user presses Send/Retry in the chat, or reopens the conversation from Session History. Nothing resends, opens, or starts automatically. The invoking chat stays available. Close replaces Retry while the named holder is valid; afterward normal composer/Retry controls return. Definitive Session History refusal leaves no blank failed tab.

The phone shows the terminal name as plain text. Temporary: phone Close terminal follows in its own PR, tracked in STA-12161.

Implementation and compatibility

The existing terminal-writer check supplies optional pane/workspace/original-incarnation evidence beside the unchanged failure fact. Current host evidence must match before the client names, links or closes it. Older records/hosts retain generic guidance. No second writer guard, automatic retry obligation, source/account proof, capability, signer addition or replay-persistence field is introduced. The existing captured close accepts optional pin consent for this one confirmed attempt, while an optional declaration in the actual owner’s existing resolve response says whether that close contract is supported. Older hosts retain verified names and links where available, plus ordinary manual recovery; the new Close action requires positive support. Shared capture and Send/Retry remain available without that declaration.

Close reuses exact terminal capture, normal confirmation and existing close APIs. Pin consent reaches both the stop policy and saved pane removal; unattended captured retirement stays conservative. Dispatch and completion stay on the captured host/lifetime, cleanup handles cancellation and intentional pane teardown, and Close preserves the invoking screen unless later user navigation wins. An explicit terminal link still reveals its pane.

Intended: the independent external-writer check, original terminal-session attribution and independently versioned phone/paired hosts. The notice names the terminal the host’s check is refusing on; within one terminal session that includes later commands, since the check refuses while anything still runs there. A restarted pane with a different terminal incarnation is never attributed by the old refusal. Normal running-process confirmation shows what is running before close. Existing notice/toast surfaces, normal terminal close, invoking-screen preservation and publication after acceptance are reused. Ordinary user-invoked History account selection is unchanged; this PR does not promise terminal-source fidelity after a separate History reopen.

Size and review

Against the original stack base 00a4c508489e, current production 6e61d4046109 adds 1,385 lines and removes 274 across 56 files (+1,348/−237 ignoring whitespace). This leaves 15 additions under the 1,400 ceiling. Tests/fixtures are +2,039/−70 (+2,038/−69 ignoring whitespace), and locales +10/−0. The preexisting uncommitted lockfile artifact is excluded and untouched.

Six source-review rounds finished with explicitly bounded repairs and continued mechanical acceptance. The consent repair carries existing confirmation through process stop and saved-pane retirement. The paired repair replaces an invalid host/client timestamp equality with the existing same-client mirror identity; host handle, original incarnation, presentation and pairing fences remain. Its recorded real mirror/host contract fails before repair and passes afterward, including replacement controls. No new field, RPC or file was needed. The continued reviewer accepted these repairs. There is no seventh source-review round.

Commit d5c4b15a9835 changed only tests/fixtures after production d90f2f2f5317; 42ffbc782fa6 contains the bounded host-identity repair described below. Its SQLite fixture repair drains producers/hosts, closes the database through its existing owner, then removes the root. All 42 named contracts passed on macOS. Windows passed all 28 prior cleanup failures once, in disjoint runs of 22 and 6; both exited 0 with no body or teardown failure. Setup-only failures and the selector correction are retained separately. Ordinary hooks and nonforced pushes passed. Earlier 181 Windows boundary passes are retained; this is not a fresh single 209-case run.

QA status

All 14 CodeRabbit threads received individual evidence-based replies and are resolved. The remaining phone literal-title bug is fixed in 6e61d4046109: Budget $& is inserted literally. Its regression failed before the one-line callback repair; all seven existing-table phone cases pass afterward, and the continued reviewer accepted the exact diff. This tests-row change keeps the ordinary phone screenshot and unchanged lifecycle QA from 42ffbc782fa6. No new QA or seventh source round ran.

The daemon inventory, provider exit-identity and unavailable-switch-tooltip observations are pre-existing at the base and recorded as noticed/out of scope. Supported-ID and caught-host-error traces refute the colon and promise premises. The two bounded Close traces found no stuck busy state or disabled follow-up action: current callers clear cancellation before confirmation, and an expired prompt is removed while the chat remains available. Expiry currently settles CANCELED before TIMEOUT; that diagnostic ordering is acknowledged, with no supported user-flow failure established or fix claimed.

Not ready. Reviewed head is 6e61d4046109102f4a76feb8dd03b998077bd04d; retained process/lifecycle QA head is 42ffbc782fa613af8dac8b6c92eb42475e04e1a9. Main synchronization remains held for #31595; full CI and final readiness are not established. No completed-review marker is posted.

The bounded host-identity repair at the retained QA head emits the pane and original incarnation of the actual inspected host PTY. It removes PR-only caller-address plumbing so clients project the host address once. A real-shape producer regression fails on the parent and passes with this repair, and the continued reviewer accepted the exact diff. This is mechanical acceptance after six source rounds, not a seventh round or a QA pass.

Flow Evidence and limits
Windows submitted Close, Claude and Codex Retained pinned Cancel/accepted confirmation, original process exit and durable removal, chat survival, cleared notice and two explicit real replies each. Codex different-holder Close removes B only, keeps A, then a second explicit in-place switch receives two replies.
Mac acquisition and upgrade Retained real baseline failed launches and graceful same-home upgrades. Codex pre-Send acquisition notice, link/Cancel/Close, normal Retry and two manual replies passed. Claude's natural retained-failure acquisition route also completed, but its original OS-root identity was not captured and some later callbacks omitted the repeated renderer guard; those limits remain.
Paired Codex on retained lifecycle QA head Real History Switch shows the named toast; its name link reveals the original split. Cancel preserves holder and sibling. One later accepted Close removes the exact original PTY/OS identity and durable leaf while retaining sibling/tab/group. Busy remains unverified. The subsequent explicit History reopen and two manual sends received two real replies; full lead/driver reports and the screenshot were read and inspected. Independent collection verified all 123 archive members and 20 PNGs, including the original OS/durable and driver-exit receipts. The reopen creates a new native tab in the same group; exact new provider UUID is unknown.
Paired Claude on retained lifecycle QA head Original upgraded physical profiles and saved native conversation retained. Ordinary Send gives the named refusal; name-link reveals its original split; Cancel preserves holder and sibling. One accepted Close removes the independently captured original PTY, OS identity and descendants, plus the durable holder leaf, while retaining sibling and the same native chat/group/slot. Two explicit manual Sends receive two real replies using the same provider conversation UUID. Named holder controls clear and the ordinary composer works. The generic historical failed-message row remains in the transcript, without a holder link or Close control. Busy visual and filtered renderer exit-event timing remain unknown.
F8 toast/name-link visual Covered by the real whole-window paired Codex screenshot below; no fixture or synthetic refusal.
Phone Shipped native component screenshot shows plain-text naming, transcript and composer with prepared data; no live-agent or phone Close claim. Phone controls remain the temporary STA-12161 follow-up.

The earlier uninstrumented paired Codex generic packet remains unclassified; a later instrumented attempt established and repaired the separate double-projection defect. The same-machine pairing uses supported verified loopback, not real SSH/tunnel evidence. No-auto evidence is observed UI plus explicit input accounting, not exhaustive hidden counters. Driver exit zero alone never credits a flow. The Cancel screenshot catches an agent-to-command wording change during dismissal; the fixed base has identical copy/exit-animation semantics, so it is noticed and out of scope. The next DOM has no dialog and independent terminal state remains intact; exact screenshot-frame DOM was not captured and no consent bypass is proved. Both affected paired-agent flows are functionally complete. Cleanup receipts verify graceful app stops, all 27 recorded final cleanup identities and 10 driver identities absent, and assigned ports clear; the QA ticket is released. The final Claude setup retained a zero-input stale ownership rejection and a corrected continuation that began before the fresh gate relay; the subsequent check showed 25.6 GB free, with no underfloor launch observed. The recorded M4Air config-hash change is an unattributed report note only.

Real paired Codex named toast and linked original split pane, with sibling present

Retained visual results: Windows named refusal, Windows chat after Close, different-holder in-place recovery, Codex acquisition notice, Codex normal Retry, Codex two manual replies, Claude acquisition notice, and Claude two manual replies.

Native phone chat with the holding terminal named as plain text

Deferred publication and placement validation

Publication and placement are renderer tests-row flows. The resume integration tests drive pending publication, source-group ordering, frozen predecessors and overlapping completion/reordering. The provisional-tab test leaves pending/refused launches unpublished. The paired placement tests compare the deferred frozen group/predecessor address with the normal tab-present path for supported, unsupported and unknown placement capability, including host-tab mapping. The History launch test retains deferred publication on refusal without automatic retry. These are composed boundary tests, without claiming a real paired History click through transport to final host layout. Existing real runs separately observed no blank tab. No new test or live placement run is required by the current disposition; no fresh test execution is claimed here.

Paired Codex two real replies after explicit History reopen and manual Sends.

Busy behavior has focused test coverage: the rendered Close contract keeps one disabled attempt after the holder disappears until its deferred Close completes. This does not replace the uncaptured real busy pixels or renderer exit event. Final main sync, full CI and readiness remain owed.

Paired Claude named refusal in the retained native chat

Name-link reveals the original split and its sibling · Cancel settled, holder retained · Chat and composer after Close; generic historical failure row retained

Two real paired Claude replies after explicit manual Sends, with historical failure text visible above

…uses to start while a terminal writes its conversation

Each chat link now carries its role (head or earlier) and key; Session History names
the chat continuing a conversation first, duplicate adoption checks only head links in
both the pre-commit check and the store transaction, and terminal resumes stay refused
exactly as before. The terminal-writer check now also runs inside acquireOwner before
the spawn, refusing with the typed pre-spawn reason conversationOpenInTerminal.
…l reports it

An in-memory registry of managed terminal starts per conversation, registered in the
same step as the resume admission (terminal.send with a resume command, createTerminal
with a command), bound to the PTY execution that runs it, and ended only when that
terminal's hooks report the conversation or the execution is gone. A chat's agent
start refuses while an entry may hold its conversation.
… an open chat continues

Resume recipes built from a pane's saved facts (cold restore, deferred and late reattach,
sleeping wake, host mobile materialization) carry resumeOrigin 'saved'. The execution host
decides before any command is issued: while an open chat continues the conversation, or a
chat may be writing it, the pane starts its plain shell with the started-fresh notice and
its saved claim is forgotten; with unreadable records only a saved restore is refused and
its record kept. An admitted resume registers its managed start in the same step, so the
chat's agent start refuses until the terminal reports it or exits. Clearing the last saved
record now reaches disk.
…s terminal in place

One enablement source (Codex) drives same-id terminal resume, the per-agent
switch capability and History. agentSession.switchToTerminal admits only an
idle chat, registers the switch claim in the chat's ordered step, stops the
agent with proven exit while the tab stays, and returns the resume recipe.
The claim refuses a chat start until the switch terminal's own spawn binds it;
the bound proof ends only when the agent that terminal ran is proven exited
and the pane is shell alone.
…nal in place

Switch to CLI (tab menu, hover card, chat top-right icon, History) asks the
chat's host to stop the idle chat and opens the same-id resume in the chat's
slot, then closes the chat tab. Switch to native chat opens the chat in the
terminal's slot, or reveals the chat that already holds the conversation, and
closes the terminal pane. Hosts without the agent's switch capability keep the
new-tab entries, worded Resume in New Chat / Resume in New Terminal; the view
toggle reads Show as chat / Show as terminal.
Covers the host op stopping an idle chat while a racing send is refused, the
switch claim lifetime (unaccepted lapse, accepted spawn past the window, bind,
identity-only replay, second switch refused), the switch spawn claiming before
its first await, and the renderer refusing hosts that do not advertise the
switch. Updates label and owner-reveal expectations for the new wording.
…ches back to it

Switching a terminal's conversation into the chat that already holds it now
starts that chat's agent on its host (agentSession.switchToChat), so the
provider open catches up on the terminal's turns before the user sends. The
host uses the ordinary operation start and answers success only when that
same child is ready; an ended child's typed failure, such as the conversation
still open elsewhere, is the answer. The renderer sends it only to hosts that
advertise the switch, retires the terminal pane only after the start succeeded
and the chat's tab is really active, and keeps the terminal on any refusal.
…k it

A switch claim is now owned by the terminal spawn attempt that accepted it
(its host session id, else its pane). Only one attempt may hold a
conversation: a different attempt is refused while one is accepted or a
switched terminal may still hold it, and a retry of the same attempt joins
it. Settlement follows the spawn's real result, including a reattach; a
spawn that ended without a reply keeps its claim until the host's own
session list proves that session absent, so a lost reply can no longer let
a chat start beside the terminal.

Also from review: a paired Orca server that switches the agent in place now
offers the switch back from its terminals, and the paired create names its
new tab so the switch back is offered before the first prompt; the
presentation seed binds to the switched pane's leaf and PTY and ends when
that PTY is replaced or the pane goes, so a split's plain shell is never
switched or closed; and an unreadable Windows process identity reads as
unverifiable, with only a fresh process table's absence or a different
start time proving exit.
…roves the start over

The chat to terminal switch now carries one generation and the owner that
creates the terminal. The daemon session and the local process are bound to
that generation before any later step can fail, and only their own end, or a
proved agent exit with that exact shell alone, releases the conversation.
The accepted start is saved on the chat it left, so a restart still knows
it may exist; a lost owner never speaks for it.

The caller-side settlement and the renderer's guessed tab seed are gone.
A switched terminal's conversation is presented from the host's launch
identity, stamped with the exact PTY and incarnation, and the switch back
retires only the pane that still holds that execution.
… just its shell, are proved over

- Every release needs each recorded agent proved exited; the owner's root exit alone no longer clears it, and the daemon reports startup settled only once its write gate flushes.
- Descriptor writes are compare-and-set on generation, so a retired switch's late evidence never replaces or resurrects one.
- After full owner loss, a host reboot since acceptance ends a start with no recorded identity; evidence a save missed is retried.
- An owner that cannot answer fails the routed read and holds; only every reachable owner answering without it counts as loss.
- The local owner binds the process before any callback or cancellation cleanup can throw.
- Snapshots carry the launch stamp, the paired projection drops a stamp naming a replaced incarnation, and the switch back retires a pane only while its host still reports the incarnation it started with.
…reattached switch terminal

The saved switch keeps the host boot as its id where the OS has one plus the boot time derived
from uptime, so Windows can also prove a later boot (by more than 60 seconds). A reattached
switch terminal regains its exact-execution stamp from the saved switch, without persisting it.
…tirement, owner-recovered restamp

- Only a changed OS boot id proves a later boot; Windows (no id) never releases on a wall clock.
- A paired switch back closes its terminal through the host's terminal.close under the
  incarnation it started with; the host refuses a replacement under the same handle.
- After a restart, a reattached switch terminal asks the original owner for its binding, saves it,
  and restamps only while that exact execution is still the pane's.
- Saved evidence is a copy, so the frozen journal row never freezes the live claim's processes.
- A failed local commit callback stops that exact process; the switch ends only on its exit.
… on every platform

A saved switch records the host boot id (Linux boot_id, macOS boot session, or the Windows
BootId through one read-only reg.exe query) and the uptime at acceptance. After owner loss, a
different boot id or an uptime lower than recorded proves a reboot; wall-clock time never does,
and macOS uptime, which Node derives from the wall clock, is not used.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 26, 2026 01:25
@brennanb2025
brennanb2025 changed the base branch from brennanb2025/flip-codex-switch to main October 26, 2026 02:21
@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

No actionable comments were generated in the recent review.

Walkthrough

The changes add in-place switching between supported native-chat and CLI sessions, including capability checks, switch admission, resume handling, and tab placement. They add captured terminal identity to close requests and fence shutdown against stale PTY incarnations. Renderer and persistence paths handle captured terminal retirement and close confirmation. Held-terminal details now flow through refusal and status data into desktop and mobile notices. The changes also add pane-conversation tracking, retention, and tests for switching, close behavior, placement, and state updates.

Merge Risk: Moderate · up to e42fe

Resolve the terminal-close races and incorrect timeout response before merging. Smaller notice and lifecycle issues also remain; the reported QA and merge conflicts are still outstanding.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly summarizes the primary user-facing change: identifying the terminal holding a conversation and providing a Close terminal action.
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.
Description check Passed The description follows the repository template closely: it includes ELI5-style problem and change sections, What Changed, Why, Testing, Risk, Visual Proof with before/after media, and a Review sectio…
Full details: Description check

Explanation

The description follows the repository template closely: it includes ELI5-style problem and change sections, What Changed, Why, Testing, Risk, Visual Proof with before/after media, and a Review section with QA status. It is long and dense, and parts of it (the size and review section, QA status, and the statement that the PR is not ready) read as internal process notes rather than template content. The Linked Issue section is not clearly filled in: it cites #32154 and STA-12161 in the problem section, but the template's 'Fixes #' line is left blank. The Testing checklist boxes are unchecked, and the AI Disclosure section is empty. The author states that full CI, main sync, and final readiness are not established, and that no completed review has been posted. The description is substantive and mostly complete, so it does not fail, but it needs the linked-issue line, checkbox state, and a clearer statement of what remains before merge.

Finishing Touches

Resolve merge conflicts

  • Resolve merge conflict in branch brennanb2025/name-holding-terminal
  • 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

Recent 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: beec74f7-63b0-4122-a40f-449653e80515
Commits

Reviewing files that changed from the base of the PR and between 89f6740 and e42fe77.

Files selected for processing: 6

  • mobile/src/session/MobileNativeChatNoticeRow.held-terminal.test.tsx
  • src/renderer/src/components/native-chat/close-holding-terminal.test.ts
  • src/renderer/src/components/native-chat/native-chat-held-terminal.test.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-session-failure-copy.ts
Files skipped from review as they are similar to previous changes: 3

  • src/shared/agent-session-failure-copy.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 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: 6


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: d2fc5925-078a-4ee7-84d7-1903ff5fc9c2
Commits

Reviewing files that changed from the base of the PR and between 1ff73e8 and 5fae6c8.

Files ignored due to path filters: 1
  • src/shared/rpc-contract/rpc-params-catalog.generated.ts is excluded by !**/*.generated.*
Files selected for processing: 285
  • config/main-layout-writer-baseline.txt
  • config/scripts/check-layout-writer-ratchets.mjs
  • config/scripts/check-layout-writer-ratchets.test.mjs
  • mobile/src/session/MobileNativeChatNoticeRow.held-terminal.test.tsx
  • mobile/src/session/MobileNativeChatNoticeRow.tsx
  • mobile/src/session/MobileSessionActiveContent.tsx
  • mobile/src/session/use-mobile-session-tab-application-launch.test.ts
  • src/main/agent-hooks/managed-hook-stdin-lifecycle.test.ts
  • src/main/agent-hooks/server-launch-resume-identity.test.ts
  • src/main/ai-vault/structured-chat-cli-fork.ts
  • src/main/ai-vault/structured-session-ownership.test.ts
  • src/main/ai-vault/structured-session-ownership.ts
  • src/main/daemon/daemon-pty-session-control.ts
  • src/main/daemon/daemon-shutdown-final-checkpoint-caller-deadline.test.ts
  • src/main/ipc/pty/host-env/saved-resume-admission.ts
  • src/main/ipc/pty/ipc/renderer-kill.ts
  • src/main/ipc/pty/provider/shutdown-detect.ts
  • src/main/ipc/pty/runtime/controller-deps.ts
  • src/main/ipc/pty/runtime/kill-same-id-respawn.test.ts
  • src/main/ipc/pty/runtime/kill.ts
  • src/main/ipc/pty/runtime/spawn-commit-response.ts
  • src/main/ipc/pty/runtime/spawn-state.ts
  • src/main/ipc/pty/session.ts
  • src/main/ipc/pty/spawn-commit-assembly.ts
  • src/main/ipc/pty/spawn-commit-publication.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-conversation-lifetime.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-create-adoption.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-failed-create-refusal.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-failure-text.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-host-mutations.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-host-types.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-host.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-idle-sweep.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-refusal-details.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-start-failure-row.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-switch-admission.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-switch-to-chat.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-terminal-writer-acquire.test.ts
  • src/main/native-chat/agent-session-wire/structured-provider-session-ownership.ts
  • src/main/persistence/loading-store/profile-state-delayed-authority-fixture.ts
  • src/main/persistence/loading-store/pty-spawn-commit-dependencies-fixture.ts
  • src/main/persistence/terminal-topology/layout-command-persistence.ts
  • src/main/persistence/terminal-topology/original-terminal-close-store.test.ts
  • src/main/providers/local-pty-provider-shutdown.test.ts
  • src/main/providers/local-pty-provider.ts
  • src/main/providers/local-pty-termination.ts
  • src/main/runtime/__fixtures__/orca-runtime-terminal-close-continuity-fixtures.ts
  • src/main/runtime/__fixtures__/terminal-close-runtime.test-fixture.ts
  • src/main/runtime/mobile-session-layout-projection.ts
  • src/main/runtime/mobile-session-switch-placement.test.ts
  • src/main/runtime/mobile-session-tab-close-outcome.ts
  • src/main/runtime/orca-runtime-original-terminal-close-store.test.ts
  • src/main/runtime/orca-runtime-original-terminal-close.test.ts
  • src/main/runtime/orca-runtime-terminal-close-continuity.test.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/orchestration/chat-assignee.test.ts
  • src/main/runtime/orchestration/chat-assignee.ts
  • src/main/runtime/rpc/methods/session-tabs.ts
  • src/main/runtime/rpc/methods/structured-agent-session-gate-classification.test-fixture.ts
  • src/main/runtime/rpc/methods/structured-agent-session-switch-to-chat.ts
  • src/main/runtime/rpc/methods/structured-agent-session-switch-to-terminal.ts
  • src/main/runtime/rpc/methods/structured-agent-session.test.ts
  • src/main/runtime/rpc/methods/structured-agent-session.ts
  • src/main/runtime/rpc/methods/terminal/terminal-lifecycle-methods.ts
  • src/main/runtime/rpc/runtime-close-attribution.test.ts
  • src/main/runtime/runtime-layout-apply.test.ts
  • src/main/runtime/runtime-layout-apply.ts
  • src/main/runtime/runtime-notifier-contract.ts
  • src/main/runtime/runtime-pty-controller-contract.ts
  • src/main/runtime/runtime-terminal-contracts.ts
  • src/main/runtime/session-graph/session-window-graph.ts
  • src/main/runtime/session-lifecycle/close/close-mobile-row-in-main-layout.ts
  • src/main/runtime/session-lifecycle/close/close-mobile-session-tab.ts
  • src/main/runtime/session-lifecycle/projection/build-headless-mobile-session-browser-tabs.ts
  • src/main/runtime/session-lifecycle/projection/prune-mobile-session-tab-group-layout.ts
  • src/main/runtime/session-tabs/explicit-terminal-close-pty-stops.ts
  • src/main/runtime/session-tabs/explicit-terminal-close-stops.ts
  • src/main/runtime/session-tabs/explicit-terminal-tab-close.ts
  • src/main/runtime/session-tabs/paired-host-terminal-close.ts
  • src/main/runtime/session-tabs/structured-session-cli-writer-host.ts
  • src/main/runtime/session-tabs/structured-session-terminal-launch-retirement.ts
  • src/main/runtime/session-tabs/terminal-surface-close-commit.ts
  • src/main/runtime/structured-agent-cli-writers.test.ts
  • src/main/runtime/structured-agent-cli-writers.ts
  • src/main/runtime/structured-agent-session-runtime.ts
  • src/main/runtime/structured-agent-session-windowless-layout-host.test.ts
  • src/main/runtime/structured-chat-coordinator-mail-rig.test-fixture.ts
  • src/main/runtime/structured-chat-dispatch-worker-lifecycle.test.ts
  • src/main/runtime/terminal-intentional-stops.ts
  • src/main/runtime/terminal-surface-close.ts
  • src/main/runtime/terminal/identity/terminal-handle-bindings.ts
  • src/main/runtime/terminal/launch/failed-start-pane.ts
  • src/main/runtime/terminal/launch/mobile-terminal-create.ts
  • src/main/runtime/terminal/launch/mobile-terminal-owned-create.ts
  • src/main/runtime/terminal/launch/mobile-terminal-renderer-create.ts
  • src/main/runtime/terminal/lifecycle/floating-session-liveness.ts
  • src/main/runtime/terminal/output/provider-buffer-capture.ts
  • src/main/runtime/terminal/query/pty-terminal-summary.ts
  • src/main/runtime/terminal/recovery/resolve-terminal-pane.ts
  • src/main/runtime/workspace-session-terminal-tab-retirement-identity.ts
  • src/main/runtime/workspaces/workspace-process-listing.ts
  • src/main/window/terminal-tab-close-request-relay.ts
  • src/preload/api/pty-api.ts
  • src/preload/api/pty-bridge-session-control.ts
  • src/renderer/src/components/TerminalLegacyTerminalPanes.tsx
  • src/renderer/src/components/native-chat/NativeChatNoticeRow.tsx
  • src/renderer/src/components/native-chat/NativeChatPaneHeader.test.tsx
  • src/renderer/src/components/native-chat/NativeChatPaneHeader.tsx
  • src/renderer/src/components/native-chat/NativeChatResumeInCliButton.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.history-read-state.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/NativeChatTopRightControls.tsx
  • src/renderer/src/components/native-chat/close-holding-terminal.test.ts
  • src/renderer/src/components/native-chat/close-holding-terminal.ts
  • src/renderer/src/components/native-chat/native-chat-header-ownership.test.tsx
  • src/renderer/src/components/native-chat/native-chat-held-terminal-resend.test.ts
  • src/renderer/src/components/native-chat/native-chat-held-terminal-resend.ts
  • src/renderer/src/components/native-chat/native-chat-held-terminal.test.tsx
  • src/renderer/src/components/native-chat/native-chat-held-terminal.tsx
  • src/renderer/src/components/native-chat/native-chat-orca-stop-context.ts
  • src/renderer/src/components/native-chat/native-chat-structured-session-notices.ts
  • src/renderer/src/components/native-chat/structured-agent-session-controller-input.ts
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.tsx
  • src/renderer/src/components/native-chat/use-structured-agent-session.ts
  • src/renderer/src/components/right-sidebar/AiVaultPanel.legacy-filter.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionActionMenuItems.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionDetails.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionDetailsSwitchButtons.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionRow.structured-title.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionRow.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionSurfaceSwitchMenuItems.tsx
  • src/renderer/src/components/right-sidebar/AiVaultVirtualRow.test.tsx
  • src/renderer/src/components/right-sidebar/SessionRowTrailingActions.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-history-native-return.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-session-cli-fork-copy.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-session-in-place-switch.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-launch-actions.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-launch.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-launch.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-workspace.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-workspace.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat.ts
  • src/renderer/src/components/right-sidebar/use-ai-vault-panel-session-resume.ts
  • src/renderer/src/components/tab-bar/CliChatResumeMenuItems.tsx
  • src/renderer/src/components/tab-bar/NativeChatCliForkMenuItems.tsx
  • src/renderer/src/components/tab-bar/SortableTab.rename-shortcut.test.tsx
  • src/renderer/src/components/tab-bar/SortableTab.tsx
  • src/renderer/src/components/tab-bar/SortableTabContextMenu.test.tsx
  • src/renderer/src/components/tab-bar/SortableTabContextMenu.tsx
  • src/renderer/src/components/tab-bar/TabHoverCard.tsx
  • src/renderer/src/components/tab-bar/TabSessionSurfaceSwitchMenuItems.test.tsx
  • src/renderer/src/components/tab-bar/TabSessionSwitchHoverAction.tsx
  • src/renderer/src/components/tab-bar/cli-chat-resume-exit-return.test-fixture.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-feedback.test.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-feedback.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-mocks.test-fixture.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-parked-retirement.test-fixture.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-run.test.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-run.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-source.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-terminal-capture.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-transport.test-fixture.ts
  • src/renderer/src/components/tab-bar/native-chat-cli-switch-run.test.ts
  • src/renderer/src/components/tab-bar/native-chat-cli-switch-run.ts
  • src/renderer/src/components/tab-bar/tab-session-history-switch.test.ts
  • src/renderer/src/components/tab-bar/tab-session-history-switch.ts
  • src/renderer/src/components/tab-bar/tab-title-tooltip.test.tsx
  • src/renderer/src/components/terminal-pane/TerminalContextMenu.tsx
  • src/renderer/src/components/terminal-pane/TerminalOverlaySlot.tsx
  • src/renderer/src/components/terminal-pane/TerminalPaneResumeInChatButton.test.tsx
  • src/renderer/src/components/terminal-pane/TerminalPaneResumeInChatButton.tsx
  • src/renderer/src/components/terminal-pane/layout-owner-pane-close-command.ts
  • src/renderer/src/components/terminal-pane/pending-pane-close-confirmation.test.ts
  • src/renderer/src/components/terminal-pane/pending-runtime-pane-close.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection-types.ts
  • src/renderer/src/components/terminal-pane/pty-dispatcher.ts
  • src/renderer/src/components/terminal-pane/pty-exit-delivery.ts
  • src/renderer/src/components/terminal-pane/pty-transport-types.ts
  • src/renderer/src/components/terminal-pane/request-active-terminal-pane-close.ts
  • src/renderer/src/components/terminal-pane/retire-unbound-runtime-terminal-pane.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-lifecycle-close.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-mount-cleanup.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-mount-context.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-mount-preparation.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-mount-registration.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-pane-closed.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-types.ts
  • src/renderer/src/components/terminal-pane/terminal-parked-watcher-registry.ts
  • src/renderer/src/components/terminal-pane/terminal-presentation-retirement.test-fixture.ts
  • src/renderer/src/components/terminal-pane/terminal-presentation-retirement.test.ts
  • src/renderer/src/components/terminal-pane/terminal-presentation-retirement.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-close-actions.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-local-close.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-mount-lifecycle.ts
  • src/renderer/src/components/terminal/terminal-tab-actions.ts
  • src/renderer/src/components/ui/hover-card.tsx
  • src/renderer/src/components/use-terminal-close-actions.ts
  • src/renderer/src/constants/terminal.ts
  • src/renderer/src/hooks/ipc-events/agent-status-partial-updates.ts
  • src/renderer/src/hooks/ipc-events/mobile-terminal-close-ipc-bridge.ts
  • src/renderer/src/hooks/ipc-events/terminal-request-ipc-bridge-placement.test.ts
  • src/renderer/src/hooks/ipc-events/terminal-request-ipc-bridge.ts
  • src/renderer/src/hooks/useIpcEvents-agent-conversation-cap.test.ts
  • src/renderer/src/hooks/useIpcEvents-agent-status-batch-projection.test.ts
  • src/renderer/src/hooks/useIpcEvents-agent-status-owner-ordering.test.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/activate-ai-vault-structured-session.ts
  • src/renderer/src/lib/agent-session/structured-agent-session-provisional-tab.test.ts
  • src/renderer/src/lib/agent-session/structured-agent-session-provisional-tab.ts
  • src/renderer/src/lib/ai-vault-tab-title-requests.ts
  • src/renderer/src/lib/in-place-switch-support.test.tsx
  • src/renderer/src/lib/in-place-switch-support.ts
  • src/renderer/src/lib/launch-ai-vault-session-placement.test.ts
  • src/renderer/src/lib/launch-ai-vault-session.test.ts
  • src/renderer/src/lib/launch-ai-vault-session.ts
  • src/renderer/src/lib/pane-manager/pane-inline-images.ts
  • src/renderer/src/lib/pane-manager/pane-lifecycle.ts
  • src/renderer/src/lib/pane-manager/pane-manager-tree-mutations.ts
  • src/renderer/src/lib/pane-manager/pane-manager-types.ts
  • src/renderer/src/lib/pane-manager/pane-manager.ts
  • src/renderer/src/lib/pane-manager/pane-split-close.ts
  • src/renderer/src/lib/pane-manager/pane-webgl-renderer.ts
  • src/renderer/src/lib/pending-conversation-surface-switches.ts
  • src/renderer/src/lib/structured-agent-session-launch-surface.ts
  • src/renderer/src/runtime/mounted-terminal-tab-registry.ts
  • src/renderer/src/runtime/structured-agent-session-client.ts
  • src/renderer/src/runtime/web-runtime-session-tab-lifecycle.ts
  • src/renderer/src/runtime/web-runtime-session-terminal-pane-delegation.test.ts
  • src/renderer/src/runtime/web-runtime-session-test-harness.ts
  • src/renderer/src/runtime/web-runtime-session-types.ts
  • src/renderer/src/runtime/web-runtime-terminal-actions.ts
  • src/renderer/src/runtime/web-runtime-terminal-create-operation.ts
  • src/renderer/src/runtime/web-runtime-terminal-placement-settlement.ts
  • src/renderer/src/runtime/web-runtime-terminal-switch-placement.test.ts
  • src/renderer/src/runtime/web-session-tabs-sync/agent-status-primitives.ts
  • src/renderer/src/runtime/web-session-tabs-sync/state.ts
  • src/renderer/src/store/agent-conversation-retention.ts
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/agent-pane-conversation.ts
  • src/renderer/src/store/slices/agent-status-authority-actions.ts
  • src/renderer/src/store/slices/agent-status-drop-actions.ts
  • src/renderer/src/store/slices/agent-status-drop-reducer.ts
  • src/renderer/src/store/slices/agent-status-live-actions.ts
  • src/renderer/src/store/slices/agent-status-live-reducer.ts
  • src/renderer/src/store/slices/agent-status-provider-session-actions.ts
  • src/renderer/src/store/slices/agent-status-provider-session.test.ts
  • src/renderer/src/store/slices/agent-status-runtime.ts
  • src/renderer/src/store/slices/agent-status-slice-contract.ts
  • src/renderer/src/store/slices/agent-status.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/store/slices/worktrees/teardown/worktree-purge-surface-patch.ts
  • src/renderer/src/store/terminals/terminal-actions.ts
  • src/renderer/src/store/terminals/terminal-state.ts
  • src/renderer/src/store/terminals/terminal-tab-close-providers.ts
  • src/shared/agent-session-failure-copy.ts
  • src/shared/agent-session-holding-terminal.ts
  • src/shared/agent-session-journal-cursor.ts
  • src/shared/agent-session-journal-schemas.ts
  • src/shared/agent-session-journal-types.ts
  • src/shared/agent-session-refusal-details.ts
  • src/shared/native-chat-types.ts
  • src/shared/protocol-version.ts
  • src/shared/rpc-contract/session-tabs-schemas-params.ts
  • src/shared/rpc-contract/terminal-unary-params.ts
  • src/shared/runtime-terminal-contracts.ts
  • src/shared/session-tab-placement-work.test-fixture.ts
  • src/shared/session-tab-placement.ts
  • src/shared/structured-agent-cli-conversation-adoption.ts
  • src/shared/structured-agent-session-status-block.ts
  • src/shared/terminal-layout-leaf-retirement.ts
  • src/shared/terminal-tab-close.ts
  • tests/e2e/cli-chat-resume-terminal-capture.unit.test.ts
  • tests/e2e/cross-version-wire/cross-version-agent-session-wire.unit.test.ts
  • tests/e2e/cross-version-wire/structured-agent-session-host-fixture.ts
  • tests/e2e/cross-version-wire/structured-agent-session-surface-calls.ts
  • tests/e2e/cross-version-wire/structured-agent-session-surface-execution.ts
  • tests/e2e/cross-version-wire/structured-agent-session-surface-manifest.ts
  • tests/e2e/terminal-presentation-retirement.unit.test.ts

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

@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: 10

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Major · Add nativeChatController to the test fixture. · MobileSessionActiveContent.tsx:95-102

mobile/src/session/MobileSessionActiveContent.tsx:95-102
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Add nativeChatController to the test fixture.

MobileSessionActiveContent reads nativeChatController.nativeChatAgent during render. The test casts a partial fixture to MobileSessionController, so the missing member can cause a render-time TypeError. Production code treats nativeChatController as required. Update the fixture instead of adding optional chaining.

Suggested fixture update
   const scope = {
     showLoadingState: shown === 'loading',
     activePendingTerminalTab: shown === 'pending' ? { title: 'Loading terminal' } : null,
     isPendingTerminalRecoveryParked: false,
     showEmptyState: false,
     terminals: [],
     notifyTerminalFrame,
     dictation: { isRecording: false },
+    nativeChatController: { nativeChatAgent: null },
     nativeChatSendError: { message: null, clear: () => {} }
   }

Source: Pipeline failures


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: d7ec9951-8c92-405f-8d8d-103ea0fd5267
Commits

Reviewing files that changed from the base of the PR and between 5fae6c8 and 3cb7e5d.

Files selected for processing: 40
  • mobile/src/session/MobileNativeChatNoticeRow.held-terminal.test.tsx
  • mobile/src/session/MobileNativeChatNoticeRow.tsx
  • mobile/src/session/MobileSessionActiveContent.tsx
  • mobile/src/session/mobile-held-terminal-context.ts
  • mobile/src/session/mobile-session-route-types.ts
  • mobile/src/session/mobile-terminal-records.test.ts
  • mobile/src/session/mobile-terminal-records.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-refusal-details.test.ts
  • src/main/runtime/session-tabs/structured-session-cli-writer-host.ts
  • src/main/runtime/structured-agent-cli-writers.test.ts
  • src/main/runtime/structured-agent-cli-writers.ts
  • src/renderer/src/components/native-chat/NativeChatNoticeRow.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/close-holding-terminal.test.ts
  • src/renderer/src/components/native-chat/close-holding-terminal.ts
  • src/renderer/src/components/native-chat/native-chat-held-terminal.test.tsx
  • src/renderer/src/components/native-chat/native-chat-held-terminal.tsx
  • src/renderer/src/components/native-chat/native-chat-orca-stop-context.ts
  • src/renderer/src/components/native-chat/native-chat-structured-session-notices.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-launch.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-launch.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-feedback.test.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-feedback.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-terminal-capture.ts
  • src/renderer/src/components/terminal-pane/pending-pane-close-confirmation.test.ts
  • src/renderer/src/components/terminal-pane/pending-split-close-test-fixture.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-close-actions.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-local-close.ts
  • src/renderer/src/components/terminal/running-terminal-close-guard.test.ts
  • src/renderer/src/components/terminal/running-terminal-close-guard.ts
  • src/renderer/src/components/terminal/terminal-tab-actions.ts
  • src/renderer/src/constants/terminal.ts
  • src/renderer/src/lib/frame-drawn-chat-tab-placement.test.ts
  • src/renderer/src/lib/frame-drawn-chat-tab-placement.ts
  • src/renderer/src/lib/structured-agent-session-launch-failure.ts
  • src/renderer/src/store/pinned-tab-close-guard.ts
  • src/renderer/src/store/running-terminal-close-confirm.ts
  • src/shared/agent-session-holding-terminal.ts
  • src/shared/agent-session-journal-schemas.test.ts
  • src/shared/agent-session-journal-schemas.ts
Files with no reviewable changes: 2
  • src/renderer/src/components/native-chat/native-chat-orca-stop-context.ts
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx

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

@brennanb2025

brennanb2025 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Opening a conversation in chat could fail without naming the terminal still holding it, and Session History could leave a blank failed tab. This PR names and links the original holding pane and offers Close terminal through normal confirmation. Only that pane closes; the invoking chat remains. After Close, the user presses Send/Retry or reopens through Session History. Nothing continues automatically. Phone naming remains plain text; phone controls are temporary follow-up STA-12161.

NOT READY at 6e61d4046109102f4a76feb8dd03b998077bd04d. Retained process/lifecycle QA head is 42ffbc782fa613af8dac8b6c92eb42475e04e1a9; the later commit only corrects phone title interpolation. Six source rounds reached the terminal disposition. Explicitly authorized bounded repairs passed continued mechanical acceptance, including pin consent through process stop and durable retirement, paired original-execution matching, and host-owned refusal coordinates. The last repair has a causal real-shape red/green producer contract; existing capture and Close owners remain unchanged. The readiness work is recorded. No seventh source round.

Measured against fixed stack base 00a4c508489e: production +1,385/−274 across 56 files (+1,348/−237 ignoring whitespace), leaving 15 additions below 1,400. Tests/fixtures +2,039/−70; locales +10/−0. The preexisting uncommitted lock artifact is excluded and untouched. The 42 named Mac contracts and 28 prior Windows SQLite failures passed; the latter were disjoint 22+6 runs, not one new 209-case run. Earlier unchanged boundary evidence carries. No current full CI/typecheck pass is claimed.

Verified app evidence and limits:

  • Windows, Claude and Codex: retained pinned Cancel/accepted Close, original OS exit and durable removal, cleared notice, preserved chat, and two explicit real replies each. Codex also closes different holder B only, preserves A, then completes a second explicit in-place switch with two replies.
  • Mac acquisition and upgrade: genuine baseline failed-launch state and graceful same-home upgrades. Codex pre-Send notice/link/Cancel/Close returns to ordinary Retry and two manual replies. Claude's natural acquisition route also completed; original OS-root identity was missing and some later callbacks omitted the repeated renderer guard, so those procedural limits remain explicit.
  • Paired Codex on retained lifecycle QA head: real named toast and name-link reveal; Cancel preserves original holder and sibling. One later accepted Close removes the original PTY/OS identity and durable leaf, retaining sibling/tab/group. Explicit History reopen and two manual Sends receive two real Codex replies, with normal empty composer and no stale notice. Reopen creates a new native tab in the same group; exact new provider UUID is unknown. Independent collection verified all 123 archive members and 20 PNGs, including original OS/durable and driver-exit receipts. Busy-state visual remains unknown.
  • Paired Claude on retained lifecycle QA head: original upgraded profiles and native conversation retained. Ordinary Send produces the named refusal; link, Cancel and one accepted Close exercised. Independent original PTY/OS/descendant death and durable holder removal preserve sibling and the same chat/group/slot. Two explicit manual Sends receive two real replies using the same provider conversation UUID. Named holder controls clear and the composer works. Generic historical failure text remains in the transcript without its holder link or Close control. Busy/disabled visual and filtered renderer exit-event timing remain unknown.
  • Deferred publication and local/paired group/predecessor placement are tests-row flows; existing renderer/integration boundaries are linked in the PR body. No new live placement run is owed. F8 is covered by the real paired toast/link screenshot below.
  • Native phone screenshot uses shipped components and prepared data; it proves plain naming/transcript/composer pixels, with no live-agent or phone Close claim.

Same-machine pairing is supported verified loopback, not real SSH/tunnel QA. No-auto evidence is observed UI and explicit manual input accounting, not exhaustive hidden counters. Driver exit zero alone credits nothing. The Cancel screenshot catches command wording during dismissal; fixed-base source has the same copy and animation behavior, noticed and out of scope. Next DOM and independent terminal state show dismissal/preservation; exact screenshot-frame DOM was not recorded, and no consent bypass is proved. Final Claude setup retains a zero-input stale ownership rejection and a corrected continuation launched before the fresh gate relay; the later check measured 25.6 GB free, with no underfloor observed. All 27 final cleanup identities and 10 driver identities are absent, apps stopped gracefully, ports clear, and the QA ticket and exact lead terminal are closed. The M4Air config-hash change remains an unattributed report note.

All 14 CodeRabbit threads received individual evidence-based replies and are resolved. The remaining phone literal-title bug is fixed in 6e61d4046109: Budget $& is inserted literally. Its regression failed before the one-line callback repair; all seven existing-table phone cases pass afterward, and the continued reviewer accepted the exact diff. This tests-row change keeps the ordinary phone screenshot and unchanged lifecycle QA from 42ffbc782fa6. No new QA or seventh source round ran.

The daemon inventory, provider exit-identity and unavailable-switch-tooltip observations are pre-existing at the base and recorded as noticed/out of scope. Supported-ID and caught-host-error traces refute the colon and promise premises. The two bounded Close traces found no stuck busy state or disabled follow-up action: current callers clear cancellation before confirmation, and an expired prompt is removed while the chat remains available. Expiry currently settles CANCELED before TIMEOUT; that diagnostic ordering is acknowledged, with no supported user-flow failure established or fix claimed.

Still owed: the held one main sync after #31595, full CI and final readiness. Both affected paired-agent flows are functionally complete with the evidence limits above. The PR is out of draft; CLEAN/full CI remain unestablished. No completed-review marker is posted. The existing rendered Close test keeps a single disabled attempt until deferred completion, including after holder removal; it does not establish uncaptured busy pixels.

For Brennan’s review

Real paired Codex named toast and linked original split pane, with sibling present

Two real paired Codex replies after explicit reopen and manual Sends

Retained results: Windows named row, pin confirmation, chat after Close, Windows Codex replies, Windows Claude replies, different-holder in-place recovery, Codex acquisition notice, normal Retry, Claude acquisition notice, and Claude acquisition replies.

Phone plain terminal name and composer

Three code spots for judgment: host-owned refusal identity, paired capture match, and captured Close owner.

Paired Claude named refusal in the retained native chat

Name-link reveals the original split and its sibling · Cancel settled, holder retained · Chat and composer after Close; generic historical failure row retained

Two real paired Claude replies after explicit manual Sends, with historical failure text visible above

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Closing: #36732 landed the replacement on main (Orca closes the terminal before continuing its conversation in chat).

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.

1 participant