Skip to content

fix(electron): retire canceled remote browser scope replies - #35476

Closed
OrcaWin wants to merge 1 commit into
mainfrom
audit/remote-cli-scope-reply-retirement
Closed

OrcaWin wants to merge 1 commit into
mainfrom
audit/remote-cli-scope-reply-retirement

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

LoC: +343/-30

Release remote browser workspace-scope replies as soon as their command is canceled or the owning renderer/window retires. Previously each obsolete scope kept a desktop command record, global IPC listener and five-second timer until its deadline. Thread the existing optional command signal through production wiring/execution and reuse the renderer lifetime/fanout helpers; preserve sender/request checks, refusal behavior, wire payloads and old-host negotiation.

Validation:112 tests across8 suites pass; all8 selected regression cases fail the exact baseline. Actual installed production callback through registry/connection/executor/resolver passes37 rows per variant atN1/10/100: canceled desktop records/timers/listenersN->0; healthy replies, sibling owners, deadline and legacy-host controls survive. All130 production input hashes,56 sealed artifacts, exact patch/bundle and clean frozen head independently verified. All five normal hook tasks and focused relay typecheck pass; the wider changed import graph has7 byte-identical existing baseline diagnostics. Three production baseline sources equal mainb28bd423.

Required aggregate queued after #35474; no aggregate pass or Claude takeover claimed. Electron/transport are controlled EventEmitter/in-memory boundaries; no native UI, physical memory, CPU, latency or actual remote-host claim. Optional local signal plumbing leaves mixed-version wire contracts and opaque folder workspace IDs unchanged. Committed error-document support relies on separately queued #35468. Existing installed dependencies reused without install/repair.

Frozen head 7842c8021225feadb91cbddcdc40363363db656e, base 797bbaa64ced515980e10b635a21fc4509db7489. Full evidence and preserved attempts: /home/neil/.local/state/orca-electron-audit/remote-cli-scope-reply-retirement-implementation/report.md. Seal SHA256:37fba859e0fc26cbe6f1e8612c902980503e5cc3b508a92f8ad44158b4347e0b.

@OrcaWin

OrcaWin commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. Closing. A canceled or orphaned remote-CLI scope request already frees its listener and timer at the 5s SCOPE_REPLY_TIMEOUT_MS deadline, and the executor already refuses aborted commands after scope resolution. Rewriting a security-sensitive scope check and adding mock listener-count tests isn't worth releasing those resources a few seconds sooner.

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