Skip to content

Commit 8233533

Browse files
committed
Add comment explaining JSON buffer accumulation logic
1 parent 1791031 commit 8233533

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/claude_code_sdk/_internal/transport/subprocess_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ async def read_stderr() -> None:
199199
if not json_line:
200200
continue
201201

202+
# Keep accumulating partial JSON until we can parse it
202203
json_buffer += json_line
203204

204205
if len(json_buffer) > _MAX_BUFFER_SIZE:

0 commit comments

Comments
 (0)