mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 07:47:29 +00:00
[GH-ISSUE #4659] [Bug] capture-browser-scenario leaves its temporary Chrome profile (cookies, history) and Playwright artifacts directory behind when the process is terminated #2429
Open
opened 2026-10-17 21:04:32 +00:00 by bsakaguchi
·
3 comments
No Branch/Tag specified
main
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/procedure-reference-stacked
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#2429
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ethen-carter on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/4659
Before submitting
Area
Process capture or runtime observation
Observed behavior
In launch mode,
capture-browser-scenariocreates two directories in the OS temp directory: a Chrome profilerea-browser-scenario-*and a Playwrightplaywright-artifacts-*. Both are removed only by in-process cleanup. When the REA process is terminated before it completes, both remain, and nothing removes them later.The leftover profile is a full Chrome profile, about 10 MB even for a one-line local page. It includes
Default/History,Default/Network/Cookies,Default/Cache, andDefault/Local Storageof the visited origin.On the reporter's machine,
%TEMP%held 14rea-browser-scenario-*profiles (about 14 MB each) and 40 emptyplaywright-artifacts-*directories. They came from earlier REA runs that a wrapper or its parent app ended early: timeouts, cancellations, and a force-closed parent app. I did not match each folder to a specific run. I also did not establish why there were more artifacts directories than profiles.Reproduction
Windows 11, rea-agents 6.5.0 from npm, Chrome 155.0.8059.41. Reproduced 3/3. A small Node harness performed these steps:
TEMPandTMPto an empty directory for the REA process, so that only its own temp directories are observed.http://127.0.0.1:<port>/.node <rea-agents>/scripts/rea.mjs capture-browser-scenario scenario.json --format jsonwith the scenario below.<TEMP>\rea-browser-scenario-*\lockfileexists, which took about 1.3 s, then wait 3 s more.taskkill /PID <rea-pid> /T /F. REA exits with code 1.<TEMP>and the processes whose command line references it.Control, reproduced 2/2: the same scenario with
duration_ms: 1000completes with exit code 0 and leaves no directories.Expected behavior
I am not asking REA to run cleanup after it has been killed. I am asking that a later REA run can reclaim what a killed run left behind, and that wrappers have a way to cancel REA that runs the existing cleanup. Any of the following would address it:
playwright-artifacts-*name alone, because other Playwright users on the same machine create directories with that prefix.playwright-artifacts-*underos.tmpdir()for every launch and has no option to place it elsewhere. A supervised driver process whoseTEMP/TMP/TMPDIRpoints into the run root would make both directories reclaimable together.docs/browser-scenario-contract.md. It currently says the launch-mode profile is "closed and deleted during cleanup", but abrupt termination skips that cleanup and the profile keeps cookies and history.A process-local
exithandler or a watchdog child would not covertaskkill /T /F, because the tree kill ends those too.Impact and scope
child.kill("SIGTERM")andchild.kill("SIGINT")from Node ended the child without running its signal handlers or itsexitevent (1/1 each). So the SIGINT/SIGTERM path inwithCommandCancellationcannot be reached by a wrapper, and every wrapper timeout or cancellation on Windows leaks these directories.secretvalues, the resulting session cookies could stay in the leftover profile.Not tested: Linux and macOS (no Chrome was available in the WSL environment here), Ctrl+C in an interactive console, headed mode, the MCP
capture_browser_scenariotool with the server process terminated, and other Playwright-based REA commands.REA version
rea-agents 6.5.0 (npm), with its installed playwright-core 1.58.2. Source references below are from the 6.5.0 source archive.
Runtime and platform
Windows 11 Pro 10.0.26200, x64; Node 24.16.0; Chrome 155.0.8059.41
Target and artifact context
One-line local HTML page served on
127.0.0.1; not a binary targetInterface
CLI
Earliest failure stage
Cleanup, cancellation, or lifecycle
Relevant output or evidence
Harness output for one terminated run (user path redacted; the other two runs were identical except for the random suffixes):
Control run:
Leftover profile, top level of
Default/(selection):Signal probe on Windows (Node 24.16.0, parent calls
child.kill(sig)on a child that registersprocess.on(sig)andprocess.on("exit")):Typed outcome or recovery expected
The terminated run cannot report anything. A later run that reclaims stale directories could report what it removed or kept in its cleanup details, so that leftovers are visible rather than silent.
Analysis or suspected cause
Source-derived (REA 6.5.0):
src/browser/PlaywrightScenarioBrowser.ts:642creates the profile withmkdtemp(join(tmpdir(), "rea-browser-scenario-")).PlaywrightScenarioBrowser.ts:646-672launches it withlaunchPersistentContext, withhandleSIGHUP/SIGINT/SIGTERM: false(661-663).rm(profilePath, …)in the cleanup owner (PlaywrightScenarioBrowser.ts:685-689) or on launch failure (673-683).src/cliBrowserScenarioCommands.ts:34-36and62-64run the capture insidewithCommandCancellation, thenprovider.close()infinally.src/cli/commandCancellation.ts:15-24maps SIGINT/SIGTERM to an abort.src/, the stringrea-browser-scenario-appears only at line 642. I found no startup sweep or later reclamation.src/main.ts:32-36: the MCP server also shuts down on stdinend/close. One-shot CLI commands have no equivalent.Source-derived (playwright-core 1.58.2, as installed with rea-agents 6.5.0):
lib/server/browserType.js:157-158createsplaywright-artifacts-*underos.tmpdir()for every launch and registers it as a temp directory. Because REA passes its ownuserDataDir, the profile is not registered (159-166).lib/server/utils/processLauncher.js:118-126removes the registered temp directories after the browser closes.processLauncher.js:162installs a processexithandler (55-58) that runskillProcessAndCleanup(registered at170, defined at211-221). SIGINT/SIGTERM/SIGHUP handlers are installed only when requested (163-168), and REA does not request them.None of these paths can run after
TerminateProcesson Windows orSIGKILLon POSIX.Additional context
--user-data-dirof the browser processes descended from REA. Afterwards it removes only those profiles, provided they are new since the run started, no live process command line references them, and their Chromelockfilecan be opened. It then removes theplaywright-artifacts-*directory closest in creation time (within 5 s, matched one-to-one). If it cannot list processes, it falls back to "new and unused" and warns. This works, but ownership is still inferred from outside. Only REA can prove which directories it owns.kill -9; confirm that Ctrl+C in an interactive console removes both directories throughwithCommandCancellation.@aron-intframe commented on GitHub (Oct 17, 2026):
Linux results for the scope you marked untested, plus a source-backed cause for the artifacts-vs-profiles count mismatch.
Environment: Ubuntu 24.04.4, Linux 6.8.0, Node v24.21.0,
rea-agents@6.5.0from npm with its bundledplaywright-core1.58.2, Playwright's Chromium build 1243 (Google Chrome for Testing 153.0.8010.12), headless. Harness mirrors yours:TMPDIR/TEMP/TMPpoint at an empty directory, one-line page on127.0.0.1,wait_for_timeout: 60000, wait until area-browser-scenario-*directory has content (~0.7 s), +3 s, thenprocess.kill(reaPid, SIG)on the REA process only (no tree kill), list after 5 s.1. On Linux the leak is SIGKILL-only; SIGTERM and SIGINT do reach
withCommandCancellationcode=0code=143code=130signal=SIGKILLrea-browser-scenario-*(164 entries, 2.8 MB) + emptyplaywright-artifacts-*143 and 130 are
withCommandCancellation's own exit codes, so on POSIX a wrapper already has the graceful channel Windows lacks: proposal 3 is a Windows-specific gap, not a general one. Proposal 1 is not Windows-specific.kill -9, an OOM kill, ortimeout -s KILLleak on Linux exactly astaskkill /T /Fdoes, and nothing later reclaims them. A full successful run in the same TEMP leaves the previous leftovers untouched:Consistent with the shipped bundle:
rea-browser-scenario-occurs only at the threemkdtempsites indist/, with no sweep. One Linux difference worth recording: after the parent is SIGKILLed, Chromium exits on its own (processes_referencing_temp=0), so no orphan keeps the profile alive here. In 1 of 5 SIGKILL runs a third, dot-prefixed.org.chromium.Chromium.*stub also stayed behind.2. The ownership proof cannot be
lockfileon POSIXThere is no
lockfilein the Linux profile. Chrome writes three symlinks instead, observed during a live run:Chromium removes all three on its own exit, so a leaked profile carries no lock at all;
ls <profile>/SingletonLockafter the kill returns "No such file or directory". "Lock not held" therefore does mean "reclaimable" on Linux, but only with an age guard, because a live run has noSingletonLockfor its first ~0.7 s and a concurrent sweeper could delete a sibling's live profile. The owner token in your proposal 1 closes that race;SingletonLock's<hostname>-<pid>is a usable secondary check. The leftover does carry browsing state here too:Default/History160 KB andDefault/Cookies20 KB, noteDefault/Cookieson Linux rather thanDefault/Network/Cookies, ~2.8 MB total for the one-line page.3. Why there are more
playwright-artifacts-*than profilesA clean failure path leaks one with no profile at all. No kill involved, just a scenario whose
executable_pathdoes not exist:3/3, each 4 KB and empty. Cause in playwright-core 1.58.2:
_prepareToLaunchcreates the artifacts directory and pushes it ontotempDirectoriesatlib/server/browserType.js:157-158, then throwsFailed to launch chromium because executable doesn't exist at ...atlib/server/browserType.js:177-178.tempDirectoriesis only ever handed tolaunchProcess(lib/server/utils/processLauncher.js:104), which owns both removal paths:cleanup()at 118-126 andkillProcessAndCleanup()at 210-221. When the throw happens beforelaunchProcessis reached, nothing in the process ever learns that the directory exists. REA's own launch-failure branch does delete its profile (rm(profilePath, ...), src 673-683), so every failed launch contributes one empty artifacts directory and zero profiles. 40 artifacts against 14 profiles fits that shape better than 40 terminated runs.Two consequences. The documentation fix (4) should cover a non-terminated case as well, since exit code 1 on a bad
executable_pathalso leaves a directory behind. And your wrapper's "closest in creation time, matched one-to-one" pairing can mis-pair, because a failed run contributes an artifacts directory that has no profile to pair with. Of the four options, proposal 2 (a driver whoseTMPDIRpoints inside the run root) is the only one that also contains this failure-path leak, as it does not depend on any REA or Playwright cleanup running.Not tested here: macOS, headed mode, Ctrl+C in an interactive console, the MCP tool path, and real Google Chrome rather than Playwright's Chromium build.
We hit the other side of this shape, where a wrapper's timeout kill ends the agent but not what it spawned; the field note is item 8 in our repo (ours): https://github.com/aron-intframe/agent-guards
@morluto commented on GitHub (Oct 17, 2026):
Documentation clarification published in
d09be9cfa2on main. This is not a recovery implementation or a claim that the issue is fixed.Current source still launches the profile with process-local cleanup and has no later reclamation. The installed locked Playwright1.58.2 source creates its artifacts directory before checking the selected executable. A fresh Node24.18/Darwin arm64 public CLI missing-executable case confirmed exit1, no remaining REA profile, and one empty playwright-artifacts directory in the experiment's private temporary root. The experiment then removed only its own root. No browser process/navigation occurred; forced termination and Windows signals were not rerun.
The contract now states the abrupt-termination profile/data retention risk, the missing-executable artifacts leak, absence of later cleanup, and the distinction between POSIX graceful signals and Windows process termination. It explicitly rejects prefix/time matching as ownership proof. docs:check with five README checks and normal hooks passed.
Durable run-root ownership, containing opaque SDK artifacts, safe reclamation while owners/locks may still be live, cleanup retry, Windows qualification, and a wrapper cancellation channel remain open design/integration work. Process-local handlers or an age-based sweep would not establish those invariants. The issue remains open.
@pablodiazjorge commented on GitHub (Oct 17, 2026):
Windows measurements for the scope you left unverified, on main
149a0fc06(Windows 11 Pro 26300 x64, Node 22.22.3, Chrome 155.0.8059.80). Harness as in the report:TEMP/TMPon an empty folder, a one-line page on127.0.0.1,wait_for_timeout: 60000, and REA started withCREATE_NEW_PROCESS_GROUPso a wrapper can address it.TerminateProcess(whatchild.kill()does on Windows)rea-browser-scenario-*(232 entries, 10.1 MB) andplaywright-artifacts-*CTRL_BREAK_EVENTto the process group0xC000013ACtrl+Break is the one console signal a Windows parent can send to a child in its own process group, and Node delivers it as
SIGBREAK; with no listener, the default action ends the process without cleanup. As a local experiment I madewithCommandCancellationalso listen forSIGBREAK(abort, exit code 149). With that change,CTRL_BREAK_EVENTran the existing abort-and-cleanup path in 2 of 2 runs: exit 149, both directories removed, and a typedcancellederror withcleanup: "complete"and the partial observation.That only gives Windows wrappers a channel into the cleanup REA already has; it does not touch abrupt termination or later reclamation, which your comment keeps as run-root ownership work. Would a PR for just that piece be useful (the listener in
src/cli/commandCancellation.ts, its host type, a test with an injected host, and a line indocs/browser-scenario-contract.md), or would you rather keep it inside the wrapper-channel design?