claude-agent-sdk-python
claude-agent-sdk-python copied to clipboard
Improve error handling in message reader
Handle exceptions in message reader and notify pending control requests.
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