await claude_client.query(prompt=my_prompt)
async for message in client.receive_response():
....
One the first query (which does require a lot of thinking), the iterator will hang when claude code has to compact context.
Strangely enough, I do see claude continue on fine in the claude logs though after the context compaction.
await claude_client.query(prompt=my_prompt)
async for message in client.receive_response():
....
One the first query (which does require a lot of thinking), the iterator will hang when claude code has to compact context.
Strangely enough, I do see claude continue on fine in the claude logs though after the context compaction.