mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-07-07 14:45:00 +00:00
Add comment explaining JSON buffer accumulation logic
This commit is contained in:
parent
1791031d20
commit
8233533148
1 changed files with 1 additions and 0 deletions
|
@ -199,6 +199,7 @@ class SubprocessCLITransport(Transport):
|
||||||
if not json_line:
|
if not json_line:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Keep accumulating partial JSON until we can parse it
|
||||||
json_buffer += json_line
|
json_buffer += json_line
|
||||||
|
|
||||||
if len(json_buffer) > _MAX_BUFFER_SIZE:
|
if len(json_buffer) > _MAX_BUFFER_SIZE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue