Skip to content

Fix/agent abortable bounded requests - #257

Merged
truthixify merged 1 commit into
wraith-protocol:developfrom
pharwasz:fix/agent-abortable-bounded-requests
Oct 17, 2026
Merged

truthixify merged 1 commit into
wraith-protocol:developfrom
pharwasz:fix/agent-abortable-bounded-requests

Conversation

@pharwasz

Copy link
Copy Markdown
Contributor

Title

Make SDK agent requests abortable and bounded

Description

Adds caller cancellation and a configurable request timeout to the SDK agent client. Response bodies are limited to 1 MiB, malformed JSON produces a safe error, and HTTP errors no longer expose provider payloads.

Adds tests for cancellation, timeout, invalid JSON, oversized responses, and sanitized HTTP errors.

Verification

  • 140 tests passed
  • Prettier check passed
  • TypeScript check passed
  • SDK build passed

closes #237

@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@pharwasz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@pharwasz
pharwasz force-pushed the fix/agent-abortable-bounded-requests branch from 4322a6e to 993c2d7 Compare October 17, 2026 07:21

@truthixify truthixify left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Abort, timeout, response bounds, and runtime validation pass all 29 agent client tests after the required root build. Approved.

@truthixify
truthixify merged commit 58db80f into wraith-protocol:develop Oct 17, 2026
22 checks passed
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.

[Wave 10] Make sdk-agent requests abortable and bounded

2 participants