Skip to content

fix(window): retire abandoned agent tab publication replies - #35446

Closed
OrcaWin wants to merge 1 commit into
mainfrom
OrcaWin/agent-tab-publication-retirement
Closed

OrcaWin wants to merge 1 commit into
mainfrom
OrcaWin/agent-tab-publication-retirement

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​160 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​160
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​22

LoC: +185/-3

Retire agent-tab publication replies when their renderer document navigates, crashes, closes or disappears. Use the existing renderer lifetime and shared event fanout; release the reply listener and ten-second deadline on success, rejection, retirement, timeout and synchronous send failure. Preserve request/sender validation, payloads and healthy replies.

Validation: 32 focused tests, strict focused TypeScript and all five unchanged normal precommit tasks pass. Exact production relay comparisons at N1/10/100 remove obsolete listeners/timers; 23 native Electron cases at N1/N10 cover navigation, crash, destruction, send failure, healthy replies, surviving windows and successor documents. The real existing ten-second deadline is preserved. Root verified the 50-file seal, four runtime inputs, exact patch/bundle, clean head and nine relevant sources equal main 3f56b8f.

Spawning does not wait for publication; no launch-start latency claim. Evidence uses a hidden Linux Electron fixture, with no full Orca UI, macOS/Windows, physical-memory or CPU claim. Normal committed navigation is covered; internal error-page commits remain ungraded. Existing installed dependencies were reused; their Vitest lacks the current error-stack directory-guard patch, so full dependency freshness is not claimed. No install/repair. Required aggregate validation is queued after #35442; no aggregate pass or Claude takeover claimed.

Frozen head 5f847e8ae464b5e898043fd778d1e3e27d8d9798, base e5b45ac90f9f95b63f23cc5217e3d32b362cf1ea. Evidence: /home/neil/.local/state/orca-electron-audit/agent-tab-publication-retirement-implementation/reviewer-report.md.

@OrcaWin

OrcaWin commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. The existing 10s timeout already bounds both the listener and the timer, and the launch doesn't wait on publication. Rejecting early only matters if the renderer dies in the few milliseconds after the send, which users don't hit. The 160-line test file mostly checks listener and timer bookkeeping. 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