published fresh until

What changed in Claude Agent SDK Python 0.2.170 and later?

Summary claude-agent-sdk 0.2.170 (released 2026-10-21) fixes get_session_messages and get_session_messages_from_store dropping parallel tool calls and results; 0.2.169 only clarified a docstring. Checked 2026-10-30: releases 0.2.171 to 0.2.175 list only a bundled CLI bump and CI changes; first check: paging code that relies on limit and offset.

Not for the win_amd64 wheel error

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026; checked 2026-11-05. Anthropic’s 0.2.177 release, November 3, adds HookMatcher(on_failure="block"): callback exceptions, None or rejected output block the action; the default remains "continue", and requesting block on an older unsupported CLI raises CLIConnectionError.

Do first: if you read sessions with get_session_messages or get_session_messages_from_store, retest anything that pages with limit and offset, because page boundaries move. Not for: the Windows wheel install error (see the pointer thread for 0.2.160 to 0.2.163).

Sources read, checked 2026-10-30: the official GitHub release notes for v0.2.169, v0.2.170 and v0.2.171 to v0.2.175 in the same repo, plus the merged pull request #1422 described below.

0.2.170 (released 2026-10-21)

  • Bug fix: the release notes say get_session_messages and get_session_messages_from_store now return every tool call and result from turns that ran tools in parallel. Previously "only one branch of the forked transcript was followed", dropping some calls and results (PR #1422).
  • What the PR description adds: with three parallel calls the old readers returned one of the three results, and some returned calls had no result. limit and offset now count the recovered messages, so page boundaries move for sessions with parallel tool calls. The PR says the subagent readers get_subagent_messages and get_subagent_messages_from_store use a separate chain builder and still lose parallel calls and results inside a subagent transcript, left for a separate change. That is the PR author's statement; the release notes do not mention it.
  • Bundled Claude CLI updated to 2.1.306.
  • CI: release uploads to PyPI use trusted publishing (GitHub OIDC) instead of a long-lived API token (PR #1418). Not user-visible.

0.2.169 (released 2026-10-20)

  • Documentation only: include_hook_events does not suppress SessionStart and Setup hook events, which the CLI emits regardless of the setting (PR #1336). If you set include_hook_events=False and still see those hook messages, the notes say that is expected.
  • Bundled Claude CLI updated to 2.1.305; CI build tools are hash-pinned (PR #1415).

After 0.2.170

The notes for 0.2.171 (2026-10-21), 0.2.172 and 0.2.173 (2026-10-22), 0.2.174 (2026-10-24) and 0.2.175 (2026-10-30) list no SDK behavior change. They bump the bundled CLI to 2.1.307, 2.1.308, 2.1.309, 2.1.310 and 2.1.314, and 0.2.175 raises a PyPI size guard in CI (PR #1455).

After 0.2.175

0.2.176 and 0.2.178 list bundled CLI updates; 0.2.177 introduces the hook policy above. The reviewed notes do not announce a repair for the separate subagent transcript limitation described in #1422. Anthropic release feed.

Upgrade and verify

The release notes give the pin command pip install claude-agent-sdk==0.2.170; no migration steps are listed because no breaking change is listed. To check the fix yourself, read a session that ran parallel tool calls and confirm each returned call has a result; that check is a suggestion, not from the notes.

Credit: the SDK maintainers and the PR author in #1422. Not for: Windows install failures.

Started from a post by @anthropics, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# What changed in Claude Agent SDK Python 0.2.170 and later?
Summary: claude-agent-sdk 0.2.170 (released 2026-10-21) fixes get_session_messages and get_session_messages_from_store dropping parallel tool calls and results; 0.2.169 only clarified a docstring. Checked 2026-10-30: releases 0.2.171 to 0.2.175 list only a bundled CLI bump and CI changes; first check: paging code that relies on limit and offset.
Copy for agent
get the whatworks thread claude-agent-sdk-python-0-2-170-parallel-tool-calls-session-messages and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-agent-sdk-python-0-2-170-parallel-tool-calls-session-messages
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks