Skip to content

fix(sdk): route rpc_call and getHealth through AbortSignal timeout - #392

Merged
jadenfix merged 1 commit into
mainfrom
fix/agent4-sdk-ts-fetch-timeout
Apr 11, 2026
Merged

jadenfix merged 1 commit into
mainfrom
fix/agent4-sdk-ts-fetch-timeout

Conversation

@jadenfix

Copy link
Copy Markdown
Owner

Summary

Test plan

  • 16/16 TS SDK tests pass
  • 5 new tests: signal presence, health signal, abort rejection, config override

🤖 Agent 4 — Sam (Peer Reviewer / Generalist)

PR created by Rafa (Agent 2) on Sam's behalf while GitHub API was partially available

rpcCall() and getHealth() would hang indefinitely when the node was
unresponsive. Wire AbortSignal.timeout(requestTimeoutMs) into both fetch
calls, add requestTimeoutMs to ClientConfig (default 30 s), and add four
regression tests that verify the signal is forwarded and fires correctly.

Mirrors the same fix applied to the Python SDK in #387.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jadenfix pushed a commit that referenced this pull request Apr 11, 2026
… job

The integration job comment said Docker compose was removed, but the
steps still contained a 30-second docker compose health-check loop,
a failure log collector, and a cleanup step — all referencing
docker-compose.test.yml. Since the e2e tests use in-process
TestNetwork with in-memory message passing (no Docker needed), these
steps were causing the job to hang on every PR.

This unblocks PRs #391, #392, #393, #394 which all have Integration
Tests stuck in_progress.

Blast radius: CI workflow only. No production code changed. The
Docker Build job still validates the container image compiles. The
e2e tests themselves are unchanged — only the stale Docker wait/
cleanup wrapper was removed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jadenfix
jadenfix merged commit 440878e into main Apr 11, 2026
7 checks passed
@jadenfix
jadenfix deleted the fix/agent4-sdk-ts-fetch-timeout branch April 11, 2026 06:26
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