ReleaseAnthropicAnthropicpublished Jul 24, 2026seen 1d

anthropics/claude-agent-sdk-python v0.2.127

anthropics/claude-agent-sdk-python

Open original ↗

Captured source

source ↗
published Jul 24, 2026seen 1dcaptured 1dhttp 200method plain

v0.2.127

Repository: anthropics/claude-agent-sdk-python

Tag: v0.2.127

Published: 2026-07-24T17:27:47Z

Prerelease: no

Release notes:

Bug Fixes

  • Fixed premature stdin closure when background tasks are in flight: query() no longer closes stdin on the first result frame when background tasks (e.g. run_in_background: true subagents) are still running. Previously, closing stdin too early caused SDK-MCP tool calls from background tasks to fail with "Stream closed" and silently bypassed PreToolUse hooks. Stdin now stays open until all in-flight tasks complete and the final result frame arrives (#1103)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.219

---

PyPI: https://pypi.org/project/claude-agent-sdk/0.2.127/

pip install claude-agent-sdk==0.2.127