Repository navigation
Conversation
This was referenced Oct 28, 2026
Collaborator
Author
|
Thanks. The Electron behavior is real, but the main window loads a bundled file:// app and doesn't commit error pages in production, and guest callers already have other cleanup. Changing abort semantics for about 25 callers of a shared lifetime helper, with a process/routing-ID heuristic that only partly covers the case, is too much risk for no user-reachable gain. Closing. Closing per maintainer triage (low-risk / zero user trade-off / material-gain bar). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LoC: +140/-6
Retire renderer-owned work when Chromium replaces its document with an internal error page. These commits can skip did-navigate, leaving native log watchers active and sending notifications for the previous document. Extend the existing shared lifetime helper with a primary-frame identity check on main-frame load failure, preserving blocked, cancelled, same-document, invalid-URL and subframe navigation.
Validation: 56 tests in five suites, strict focused TypeScript and all five unchanged normal precommit tasks pass. The exact old helper fails four relevant checks while 25 controls pass. Twenty-eight actual hidden Electron comparison cases at N=1/10 reduce retained native watcher objects and obsolete notifications from N to zero on error-document replacement; surviving-document controls preserve watches. All windows/watchers drain to zero and owned process/profile cleanup is confirmed. Ten actual production inputs plus one exact-path authorization seam per variant independently match the frozen revisions; pre-hook staged tree equals committed tree. Four relevant baseline sources remain unchanged through main2e961de9.
The full aggregate is queued after #35463; no aggregate pass or Claude takeover yet. No full app UI, packaged/macOS/Windows, CPU/RSS, OS descriptor count or latency claim. Missing/inaccessible frame metadata preserves existing event-based retirement. The separate terminal-close reply implementation owns its own event list and is outside this fix. Remote/mobile protocols and folder-workspace behavior are unchanged.
Frozen head
6d2ab0680b3f09a7db840732de8fe9db4af4f553, basee5b45ac90f9f95b63f23cc5217e3d32b362cf1ea. Report, exact source verification, native results and preserved verifier corrections:/home/neil/.local/state/orca-electron-audit/error-document-lifetime-retirement/report.md.