Skip to content

build(deps): bump claude-agent-sdk from 0.2.121 to 0.2.126 in /claude-agent-sdk - #166

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/claude-agent-sdk/claude-agent-sdk-0.2.126
Jul 24, 2026
Merged

build(deps): bump claude-agent-sdk from 0.2.121 to 0.2.126 in /claude-agent-sdk#166
github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/claude-agent-sdk/claude-agent-sdk-0.2.126

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 24, 2026

Copy link
Copy Markdown
Contributor

Bumps claude-agent-sdk from 0.2.121 to 0.2.126.

Release notes

Sourced from claude-agent-sdk's releases.

v0.2.126

New Features

  • terminal_reason on ResultMessage: ResultMessage.terminal_reason now surfaces why the query loop ended ("completed", "max_turns", "aborted_streaming", "aborted_tools", etc.). A value of "aborted_streaming" or "aborted_tools" means the turn was cancelled via ClaudeSDKClient.interrupt(). Mirrors the TypeScript SDK's SDKResultMessage.terminal_reason (#1142)
  • Typed model_usage on ResultMessage: ResultMessage.model_usage is now typed as dict[str, ModelUsage] instead of dict[str, Any], with a new ModelUsage TypedDict that mirrors the TypeScript SDK's shape. Includes optional canonicalModel and provider fields for stable model identification across provider-specific aliases (#1143)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.218

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

pip install claude-agent-sdk==0.2.126

v0.2.125

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.217

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

pip install claude-agent-sdk==0.2.125

v0.2.124

Bug Fixes

  • Refused batch script CLI spawning on Windows: Blocked spawning .bat/.cmd CLI scripts (including npm's claude.cmd shim) on Windows to prevent command injection via cmd.exe metacharacter re-parsing (BatBadBut / CVE-2024-27980 class). Windows users relying on the npm shim should switch to the native installer, an explicit claude.exe path, or a platform wheel that bundles the CLI (#1127)
  • Windows cmd.exe metacharacter rejection: resume and session_id values containing cmd.exe metacharacters (& | < > ^ % ! ") or newlines now raise ValueError on Windows, preventing injection even if a cmd.exe hop is reintroduced. POSIX behavior is unchanged (#1127)
  • Dash-prefixed extra_args value binding: extra_args now uses --flag=value form when the value starts with -, preventing a dash-leading value from being misinterpreted as a separate CLI flag (#1127)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.216

... (truncated)

Changelog

Sourced from claude-agent-sdk's changelog.

0.2.126

New Features

  • terminal_reason on ResultMessage: ResultMessage.terminal_reason now surfaces why the query loop ended ("completed", "max_turns", "aborted_streaming", "aborted_tools", etc.). A value of "aborted_streaming" or "aborted_tools" means the turn was cancelled via ClaudeSDKClient.interrupt(). Mirrors the TypeScript SDK's SDKResultMessage.terminal_reason (#1142)
  • Typed model_usage on ResultMessage: ResultMessage.model_usage is now typed as dict[str, ModelUsage] instead of dict[str, Any], with a new ModelUsage TypedDict that mirrors the TypeScript SDK's shape. Includes optional canonicalModel and provider fields for stable model identification across provider-specific aliases (#1143)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.218

0.2.125

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.217

0.2.124

Bug Fixes

  • Refused batch script CLI spawning on Windows: Blocked spawning .bat/.cmd CLI scripts (including npm's claude.cmd shim) on Windows to prevent command injection via cmd.exe metacharacter re-parsing (BatBadBut / CVE-2024-27980 class). Windows users relying on the npm shim should switch to the native installer, an explicit claude.exe path, or a platform wheel that bundles the CLI (#1127)
  • Windows cmd.exe metacharacter rejection: resume and session_id values containing cmd.exe metacharacters (& | < > ^ % ! ") or newlines now raise ValueError on Windows, preventing injection even if a cmd.exe hop is reintroduced. POSIX behavior is unchanged (#1127)
  • Dash-prefixed extra_args value binding: extra_args now uses --flag=value form when the value starts with -, preventing a dash-leading value from being misinterpreted as a separate CLI flag (#1127)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.216

0.2.123

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.215

0.2.122

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.214
Commits
  • 74fe445 docs: update changelog for v0.2.126
  • 013cb15 chore: release v0.2.126
  • ee68d65 chore: bump bundled CLI version to 2.1.218
  • 9c27ca8 feat: type ResultMessage.model_usage as dict[str, ModelUsage] (#1143)
  • 07b46c6 feat: surface terminal_reason on ResultMessage (#1142)
  • ab3b09c docs: update changelog for v0.2.125
  • e74b021 chore: release v0.2.125
  • 1314e18 chore: bump bundled CLI version to 2.1.217
  • 4dedce6 docs: update changelog for v0.2.124
  • fddf27f chore: release v0.2.124
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file pip labels Jul 24, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner July 24, 2026 08:07
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file pip labels Jul 24, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) July 24, 2026 08:07
@dependabot
dependabot Bot force-pushed the dependabot/pip/claude-agent-sdk/claude-agent-sdk-0.2.126 branch from a1aa7d9 to ebc92d1 Compare July 24, 2026 08:10
Bumps [claude-agent-sdk](https://github.com/anthropics/claude-agent-sdk-python) from 0.2.121 to 0.2.126.
- [Release notes](https://github.com/anthropics/claude-agent-sdk-python/releases)
- [Changelog](https://github.com/anthropics/claude-agent-sdk-python/blob/main/CHANGELOG.md)
- [Commits](anthropics/claude-agent-sdk-python@v0.2.121...v0.2.126)

---
updated-dependencies:
- dependency-name: claude-agent-sdk
  dependency-version: 0.2.126
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/claude-agent-sdk/claude-agent-sdk-0.2.126 branch from ebc92d1 to 89e88b3 Compare July 24, 2026 08:12
@github-actions
github-actions Bot merged commit f34e19e into main Jul 24, 2026
8 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/claude-agent-sdk/claude-agent-sdk-0.2.126 branch July 24, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file pip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants