Bug Fixes
- Unknown message type handling: Fixed an issue where unrecognized CLI message types (e.g.,
rate_limit_event) would crash the session by raisingMessageParseError. Unknown message types are now silently skipped, making the SDK forward-compatible with future CLI message types (#598)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.51
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.40/
pip install claude-agent-sdk==0.1.40