Skip to content

fix(electron): retire standalone owners with their document - #35489

Closed
OrcaWin wants to merge 1 commit into
OrcaWin/error-document-lifetime-retirementfrom
OrcaWin/standalone-renderer-owner-retirement
Closed

OrcaWin wants to merge 1 commit into
OrcaWin/error-document-lifetime-retirementfrom
OrcaWin/standalone-renderer-owner-retirement

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​306 $\color{#cf222e}{\Huge{\mathbf{−}}}$​50 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​256
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​32 $\color{#cf222e}{\Huge{\mathbf{−}}}$​25 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7

LoC: +338/-75

Retire notebook kernels and desktop runtime subscriptions when a committed error document replaces their owner. Those owners previously listened only for normal navigation, crashes and destruction, so #35468 alone left their work alive. Reuse its existing shared lifetime helper, discard retired owner state before cleanup callbacks, lazily create successors, and prevent late kernel frames from reaching another document.

Stacked on #35468 at 6d2ab0680b3f09a7db840732de8fe9db4af4f553; this single commit leaves the helper unchanged. Preserve same-document, blocked, provisional, invalid-URL and subframe failures, live siblings, connection identity fences and pending-start cancellation.

Validation:59 focused tests in6 suites pass. Exact old owner files fail8 relevant regressions while11 controls pass, with #35468 active in both arms.108 actual-handler/class comparison rows atN1/10/100 show committed-error retirement shuts downN controlled kernels, abortsN controllers and cleans the retired connection once; preservation/reentrant/late-frame/successor controls pass. Normal hooks pass. Focused TypeScript has the same7 diagnostics as the exact base with zero additions; this is not a passing typecheck. Root independently verified95 sealed payloads,29 committed source snapshots,10 comparison inputs, exact patch and bounded prerequisite bundle.

Required aggregate queued after #35485; no aggregate pass or Claude takeover claimed. Electron IPC/WebContents, kernel/process operations, authorization and runtime cleanup are controlled boundaries. No native Electron, Python/Jupyter process, macOS/Windows, actual remote host, CPU, heap or latency measurement. Wire contracts and folder/git/mobile identity handling are unchanged. Existing dependencies reused without installation or repair.

Frozen head e9e7dc5e2be1a3064771d9f054c7a3d0141ce9bc. Evidence: /home/neil/.local/state/orca-electron-audit/standalone-renderer-owner-retirement/implementation-report.md. Seal SHA256:10b64b8bd3662b5f059eda46f9cac4318f86830d28c399ee699c4d169561bb47. Publication-order correction is retained outside the immutable seal.

@OrcaWin

OrcaWin commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. Closing. The new behavior only turns on with the unmerged #35468, and the scenario is Orca's own file:// renderer committing a network error page, which real users don't reach. Crash, reload and close are already covered. On main alone this is a behavior-neutral refactor with about 300 lines of tests, and it changes how desktop-runtime connection IDs are handled.

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