Skip to content

fix(typescript): cancel and bound background streams - #689

Open
mikemikimike wants to merge 1 commit into
2FastLabs:mainfrom
mikemikimike:fix/issue-662-stream-cancellation
Open

mikemikimike wants to merge 1 commit into
2FastLabs:mainfrom
mikemikimike:fix/issue-662-stream-cancellation

Conversation

@mikemikimike

Copy link
Copy Markdown

Fixes #662
Closes #662
Resolves #662

This change cancels background stream consumption when the returned output closes and applies bounds to stream chunks, stream bytes, and accumulated response text. It also adds regression coverage for cancellation, completion, limits, and provider errors.

Issue: #662

Validation:

  • TypeScript build
  • TypeScript tests
  • TypeScript type check
  • ESLint

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.

Agent Squad has a denial of service vulnerability in streaming response handling

1 participant