mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-07-07 14:45:00 +00:00
![]() When permission_mode='bypassPermissions' is used but the CLI cannot honor it (due to root user, disabled settings, or CLI version issues), the SDK would fail silently - the async iterator would complete without yielding any messages, appearing as "no response" to users. This commit adds comprehensive error detection: - Tracks whether any output was received from the CLI - Detects specific error messages in stderr - Provides clear, actionable error messages for each failure mode - Adds --debug flag when using bypassPermissions for better diagnostics - Updates entrypoint to 'sdk-cli' for better CLI integration The fix transforms silent failures into helpful errors that explain what went wrong and how to fix it. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
---|---|---|
.. | ||
conftest.py | ||
test_client.py | ||
test_errors.py | ||
test_integration.py | ||
test_subprocess_buffering.py | ||
test_transport.py | ||
test_types.py |