Repository navigation
Conversation
Collaborator
Author
|
Thanks. This only makes a close request that is already doomed by a main-frame reload fail right away instead of after the 20s timeout. The callers rethrow either way, so users get the same outcome. The it.each(1/10/100) test is the parametrized-count anti-pattern. That isn't enough gain for the added code, so 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: +66/-1
Reject obsolete terminal-close acknowledgements when the main renderer commits a normal document replacement. Reuse the existing shared lifecycle cleanup to release deadlines and reply callbacks, preserving request/sender validation, durable acknowledgements, the 20-second live deadline and other windows. This closes the gap between existing crash/close cleanup and a renderer reload.
Validation: seven focused tests pass; three new N1/10/100 cases fail on the old code. Actual bundled production relay/fanout with controlled Electron/timer boundaries changes N retained timers and pending requests to zero after normal committed navigation. Noncommitting, same-document and subframe events preserve requests; a sibling window still acknowledges. Strict focused TypeScript, all five unchanged normal precommit tasks, exact source/bundle and peer review pass. Six relevant production files equal current main 3f56b8f.
This is deterministic ownership evidence, with no native app, full Orca UI, wall-clock latency, CPU or heap/RSS claim. Electron's native source/docs confirm the event contract. Internal error-page commits remain a separate ungraded gap. No install/repair or test timeout/selection change. Required aggregate validation is queued after #35432; no pass or Claude takeover claimed.
Frozen head
47430a9455c2fc522707a5aa042541ee7e4ee93c, base50182418667d99313fab4ff18efde230b08b79f3. Evidence:/home/neil/.local/state/orca-electron-audit/terminal-tab-close-document-retirement/report.md.