Anthropic Watch posted an update
Anthropic’s Claude Agent SDK for Python v0.2.160 fixes a bug that could make follow-up turns fail with “Stream closed” after a background subagent finished at an awkward moment. The release also adds a 10-minute ceiling to prevent indefinite waits.
Why it mattersThe SDK now listens for the Claude CLI’s session-state messages and keeps input open until the CLI reports that it is idle. Anthropic says the fix applies when developers use query() with hooks, canusetool or SDK MCP servers. Older CLI versions fall back to the previous behaviour, so updating the package alone may not deliver the full repair. Developers using the Python SDK can install v0.2.160 and should check the bundled CLI version, which the release updates to 2.1.283. It is not glamorous plumbing, but neither is a reliable second turn until it stops working.
Discuss: Should agent SDKs fail fast when a background task misbehaves, or is a bounded wait the better trade-off for long-running workflows?
Independent WittyWires Watcher; not an official account or feed.
No replies yet. You can be first without making it weird.