You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add per-request timeout configuration support (#38)
* fix: thread --timeout flag through session commands to bridge and MCP client
The --timeout flag was parsed from CLI options but never propagated to
the actual request. The timeout now flows through the full chain:
CLI → withMcpClient → withSessionClient → SessionClient → BridgeClient → Bridge → McpClient.
- BridgeClient.request() accepts optional timeout parameter (seconds)
- IpcMessage includes timeout field forwarded to bridge process
- Bridge applies per-request timeout override on McpClient before each call
- SessionClient stores and passes timeout to all BridgeClient requests
- withSessionClient/withMcpClient thread timeout from CLI options
https://claude.ai/code/session_01HmGaGAavxHEZcSRfNguGeo
* test: add E2E integration tests for --timeout flag
Tests that --timeout causes tool calls to fail when the server is slower
than the timeout, succeeds when generous enough, and produces valid JSON
errors in --json mode.
https://claude.ai/code/session_01HmGaGAavxHEZcSRfNguGeo
* fix: make timeout E2E test resilient to varying error messages
The MCP SDK may produce different error messages on timeout depending on
timing (timeout, abort, or session-not-found). Relax assertion to check
for failure and non-empty stderr rather than specific "timeout" text.
Also increase delays for CI reliability.
https://claude.ai/code/session_01HmGaGAavxHEZcSRfNguGeo
* docs: add --timeout fix to changelog
https://claude.ai/code/session_01HmGaGAavxHEZcSRfNguGeo
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments