Skip to content

feat: Bump claude-agent-sdk to 0.3.156 for Opus 4.8 thinking#2441

Merged
charlesvien merged 2 commits into
mainfrom
05-29-upgrade_claude_adapter
May 30, 2026
Merged

feat: Bump claude-agent-sdk to 0.3.156 for Opus 4.8 thinking#2441
charlesvien merged 2 commits into
mainfrom
05-29-upgrade_claude_adapter

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented May 29, 2026

Problem

Opus 4.8 was rejecting requests with HTTP 400 because the pre-0.3.156 SDK emitted the legacy thinking: { type: "enabled", budget_tokens: N } shape, which the new model only accepts as thinking: { type: "adaptive" } + output_config: { effort }.

Changes

  1. Bump @anthropic-ai/claude-agent-sdk 0.3.154 → 0.3.156 (upstream v2.1.156 thinking-blocks fix)
  2. Bump @anthropic-ai/sdk 0.100.0 → 0.100.1
  3. Sync fork to claude-agent-acp v0.39.0 (commit 51a370e)
  4. Document the Opus 4.8 fix in UPSTREAM.md
  5. Regenerate pnpm-lock.yaml

How did you test this?

Manually

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@charlesvien charlesvien changed the title Upgrade claude adapter feat: Upgrade claude adapter May 29, 2026
@charlesvien charlesvien added the Create Release This will trigger a new release label May 29, 2026
@charlesvien charlesvien marked this pull request as ready for review May 29, 2026 21:55
@charlesvien charlesvien changed the title feat: Upgrade claude adapter feat: Bump claude-agent-sdk to 0.3.156 for Opus 4.8 thinking May 29, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 29, 2026

T-Rex T-Rex Logs

What T-Rex did

  • Verified the dependency bump for @anthropic-ai/claude-agent-sdk and @anthropic-ai/sdk is reflected in the root manifest and lockfile.
  • Inspected the lockfile package and snapshot entries for the Claude agent SDK, Anthropic SDK, peer dependency triple, and native optional binary packages.
  • Confirmed the native optional packages cover darwin, linux, linux musl, and win32 targets for both x64 and arm64.
  • Checked the Claude adapter effort call sites referenced by the upstream sync note: options.effort and query.applyFlagSettings({ effortLevel }).
  • Confirmed the workspace release-age exclusions include the bumped Anthropic packages and their native optional packages.
  • Install-time verification could not be completed in the sandbox because the package manager was unavailable.
  • Diffed HEAD~2..HEAD and confirmed PR touches only packages/agent/package.json, packages/agent/src/adapters/claude/UPSTREAM.md, and root pnpm-lock.yaml (plus incidental minipass transitive bumps).
  • Inspected root pnpm-lock.yaml for @anthropic-ai/claude-agent-sdk@0.3.156 and @anthropic-ai/sdk@0.100.1 — package, snapshot, peer triple, and importer entries are internally consistent.
  • Verified all eight native optional binaries are pinned to 0.3.156 in both packages and snapshots, with no missing platform.
  • Checked peer ranges declared by 0.3.156 against packages/agent/package.json and confirmed they are satisfied.
  • Confirmed pnpm-workspace.yaml minimumReleaseAgeExclude includes the SDK, every native subpackage, and @anthropic-ai/sdk, so the 7-day cooldown does not block 0.3.156.
  • Grepbed the two referenced call sites and confirmed the public-surface APIs remained unchanged in 0.3.156.
  • Web-searched the upstream claude-agent-sdk-typescript CHANGELOG / docs and confirmed applyFlagSettings is a documented public API and the Opus-4.8 thinking-blocks fix matches UPSTREAM.md.
  • Noted the stale packages/agent/pnpm-lock.yaml reference is a pre-monorepo artifact and informational only, not a PR finding.
  • Attempted pnpm install --offline --ignore-scripts from packages/agent, but blocked because pnpm is not installed in the sandbox and there is no network; install-time verification recorded as inconclusive.
  • All evidence written to trex-artifacts/dep-bump-analysis.log.
Artifacts

Dependency bump verification log

  • Shows that the dependency bump is reflected in the root manifest and lockfile and that related entries are consistent.

Static verification log: lockfile consistency, native-binary coverage, peer ranges, cooldown excludes, call-site audit, and install-time blocker.

  • Provides static checks such as lockfile consistency, native-binary coverage across platforms, peer ranges, cooldown exclusions, call-site audits, and the install-time blocker status.

T-Rex Ran code and verified through T-Rex

Reviews (1): Last reviewed commit: "explain Opus 4.8 thinking-blocks fix in ..." | Re-trigger Greptile

@charlesvien charlesvien added the Stamphog This will request an autostamp by stamphog on small changes label May 29, 2026
Copy link
Copy Markdown

@stamphog stamphog Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates denied this PR because it modifies dependencies and the lock file (deps_toolchain deny-list match). Dependency bumps require human review to verify compatibility and security.

@stamphog stamphog Bot removed the Stamphog This will request an autostamp by stamphog on small changes label May 29, 2026
@DanielVisca DanielVisca self-requested a review May 30, 2026 00:56
@charlesvien charlesvien merged commit 4b527ba into main May 30, 2026
28 checks passed
@charlesvien charlesvien deleted the 05-29-upgrade_claude_adapter branch May 30, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Create Release This will trigger a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants