Skip to content

Retire terminal session reveal replies when their renderer disappears - #35461

Closed
OrcaWin wants to merge 1 commit into
mainfrom
OrcaWin/terminal-session-reveal-retirement
Closed

OrcaWin wants to merge 1 commit into
mainfrom
OrcaWin/terminal-session-reveal-retirement

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​98 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​89
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​28 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​22

LoC: +125/-14

Retire pending terminal-session reveal replies on committed navigation, renderer crash, destruction or window close. Reuse the existing renderer lifetime and event fanout; preserve payloads, sender/request and expected-process identity checks, the live ten-second deadline, and existing runtime_unavailable errors. Concurrent requests share one native reply listener.

Validation: 35 focused tests and all five unchanged normal precommit tasks pass. Exact old source fails five retirement checks while two controls pass. Actual bundled production notifier/sender/navigation comparisons at N1/10/100 release every pending deadline and reply callback; healthy identity, foreign sender, sibling, send failure and original deadline controls pass. Five relevant base sources equal main9dd4dc5d. No native app, CPU/RSS/latency or full-app claim. TypeScript and aggregate validation are queued after #35453; no aggregate pass or Claude takeover claimed.

Reliability invariant terminal-session.renderer-reveal-ownership: exact current-owner acknowledgement, immediate obsolete-request cleanup and preserved durable provider state. Focus requests are globally coalesced; N is a resource-ownership workload, not N simultaneous focus operations. Gate oracle: focused retirement/receipt/sibling/deadline tests. Accepted coverage gap: rendered/native and live local/daemon/SSH/WSL/mobile transition acceptance. No provider, path, workspace-kind or remote schema change. Internal error-page commits remain outside this PR's helper coverage.

Frozen head 464d30c9d9527f527b986d2fca2c47c9cdb363e5, base 50182418667d99313fab4ff18efde230b08b79f3. Report and preserved diagnostics: /home/neil/.local/state/orca-electron-audit/terminal-session-reveal-retirement/report.md. Existing installed dependencies reused without installation or repair.

@OrcaWin

OrcaWin commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. Reveals sent after the renderer goes away already fail fast. This PR only speeds up the failure of a reveal that is in flight during a reload or crash, which fails either way. It also adds plumbing, churn in the shared fixture, and an N=1/10/100 loop test. Closing because the gain is too small for the code it adds.

Closing per maintainer triage (low-risk / zero user trade-off / material-gain bar).

@OrcaWin OrcaWin closed this Oct 29, 2026
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