mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
Multiple tasks (control request handlers, stream_input, client.query) can write to stdin concurrently. Without synchronization, their writes can interleave at the byte level, corrupting JSON messages. Add anyio.Lock to SubprocessCLITransport protecting: - write() - serialize data writes - end_input() - prevent closing stream during write - close() - wait for in-flight writes before closing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_changelog.py | ||
| test_client.py | ||
| test_errors.py | ||
| test_integration.py | ||
| test_message_parser.py | ||
| test_sdk_mcp_integration.py | ||
| test_streaming_client.py | ||
| test_subprocess_buffering.py | ||
| test_tool_callbacks.py | ||
| test_transport.py | ||
| test_types.py | ||