Repository navigation
fix(capture): stop queued idle events after abort - #530
Conversation
Review: PR #530 — fix(capture): stop queued idle events after abortCombined seat (architecture conformance + code review, one reviewer, disclosed). Measured at head The guard — placement verified in source, not inferred from the diff
The regression test — mutation proves the race is realRemoving only the guard line makes the new test fail ( Metric semantics — the guard also cleans the arrived-lost countBefore this change, a post-abort queued event wrote Claims audit
Cross-PR note (not a defect in this PR)
Full suites1844 pass / 22 skip / 0 fail at this head, identical totals at the #529 head (each PR adds exactly one test on the same base). VerdictAPPROVE. No keep-to-refusal or loss-class change is even possible here, per the metric-semantics section, and the e2e comparison confirms it. Guard is minimal and correctly placed, the test kills the mutation it names, the doc drift is a one-clause follow-up shared with #529, and no user-visible behavior changes on the non-aborted path: the guard is one boolean read per event that is false until cleanup runs. |
|
🎉 This PR is included in version 0.35.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #522.
The idle subscription checks cancellation immediately after the iterator yields. A queued event yielded after abort exits the loop before capture can record an arrival or begin dispatch.
The regression test queues an event and calls cleanup in the same turn. Against the old loop it observed a new
auto_capture_seenreceipt. With the guard, the test observes neither an arrival receipt nor a capture context call.Windows verification: 16 focused capture tests passed. Typecheck, Biome lint and format for changed files, and comment lint passed.
Implemented with GPT-6.2 Sol in T3 Code.