Skip to content

Retire runtime browser tab replies with their renderer document - #35474

Closed
OrcaWin wants to merge 1 commit into
mainfrom
OrcaWin/browser-tab-renderer-reply-retirement
Closed

OrcaWin wants to merge 1 commit into
mainfrom
OrcaWin/browser-tab-renderer-reply-retirement

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​218 $\color{#cf222e}{\Huge{\mathbf{−}}}$​16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​202
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​145 $\color{#cf222e}{\Huge{\mathbf{−}}}$​105 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​40

LoC: +363/-121

Release pending runtime browser create, close and profile-change replies when their renderer document or window disappears. These paths previously retained one listener and10s timer per obsolete request, including after a synchronous send failure. Reuse the existing lifetime/fanout helpers in a shared browser-tab reply function, preserving payloads, live deadlines, errors and profile registration. Close/profile replies also verify the intended sender.

Validation:129 tests/10 suites pass; the exact old three production files fail the three new runtime retirement regressions while19 controls pass. Strict focused TypeScript and all five unchanged normal precommit tasks pass. Actual bundled production methods run54 controlled-boundary rows per variant atN1/10/100: obsolete timers/listenersN->0, healthy replies and surviving navigation preserved. Four baseline/seven authored git inputs plus five explicit profile-service boundaries are recorded and verified. Eight critical sources equal mainb28bd423. Peer review found two neighboring incomplete test fixtures; both now use a shared EventEmitter fixture. The final amendment after the129-test run changes only an erased test type assertion, independently verified; focused TC/hooks pass afterward.

Required aggregate queued after #35468; no aggregate pass or Claude takeover yet. No native app, full UI, CPU/RSS or latency claim. Retention is finite until the existing10s deadline. Committed internal error-page coverage depends on the separately queued shared-helper fix #35468. No wire/mobile/client-hosted/headless/folder-workspace semantics changed. Existing installed dependencies reused without install/repair or pristine-provenance claim.

Frozen head f55a795dabebbe634a45c03cffb5363aa62209c1, base e5b45ac90f9f95b63f23cc5217e3d32b362cf1ea. Evidence, peer review, exact patch/bundle and preserved attempts: /home/neil/.local/state/orca-electron-audit/browser-tab-renderer-reply-retirement/report.md.

@OrcaWin

OrcaWin commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. Closing. Pending tab create, close and profile-change replies already free their listener and timer at the 10s timeout, and this only happens when Orca's main window document goes away while a request is pending. A sooner error in that rare case doesn't justify +363/-121 across 8 files, a refactor of three working IPC paths, and tests that mostly count listeners. It also depends on the unmerged #35468.

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