claude-agent-sdk-python icon indicating copy to clipboard operation
claude-agent-sdk-python copied to clipboard

Improve error handling in message reader

Open Atry opened this issue 3 months ago • 1 comments

Handle exceptions in message reader and notify pending control requests.

Atry avatar Nov 09 '25 18:11 Atry

This PR fixes TimeoutError in ClaudeSDKClient.connect when an error is raised from SubprocessCLITransport. Now it correctly ends with the underlying SubprocessCLITransport's error message instead of a TimeoutError

Atry avatar Nov 09 '25 18:11 Atry