Skip to content

Conversation

@ethanndickson
Copy link
Member

Deduplicate cleanup logic in streamManager.ts.

cancelStreamSafely and cleanupStream had identical cleanup logic (wait for processing, calculate usage, emit stream-abort, delete from map). Now cancelStreamSafely delegates to cleanupStream, matching how checkSoftCancelStream already works.

~26 lines removed, no behavior change.


Generated with mux

cancelStreamSafely and cleanupStream had identical cleanup logic.
Now cancelStreamSafely delegates to cleanupStream, matching how
checkSoftCancelStream already works.

~26 lines removed, no behavior change.
@ethanndickson ethanndickson added this pull request to the merge queue Dec 4, 2025
Merged via the queue into main with commit 4e85392 Dec 4, 2025
16 checks passed
@ethanndickson ethanndickson deleted the context-usage-tracking-changes branch December 4, 2025 03:52
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