Skip to content

v0.16.5

Choose a tag to compare

@ya-luotao ya-luotao released this 24 Apr 05:51
· 688 commits to main since this release

Added

  • display: option on ThinkingConfigAdaptive and ThinkingConfigEnabled, forwarded to the CLI as --thinking-display <summarized|omitted>. Opus 4.7 silently changed the thinking.display default from "summarized" to "omitted", so callers who used to see reasoning text via ThinkingBlock#thinking now get empty strings (signature only). Pass display: "summarized" explicitly on Opus 4.7 to restore visible thinking text. Invalid values raise ArgumentError at construction. See adaptive thinking docs.

Internal

  • Extracted private writeln/write helpers in Client and Query to consolidate the @transport.write(json + "\n") pattern across five call sites. Pure refactor; same bytes on the wire.

Usage

options = ClaudeAgentSDK::ClaudeAgentOptions.new(
  thinking: ClaudeAgentSDK::ThinkingConfigAdaptive.new(display: 'summarized')
)

Also works with enabled/budgeted thinking:

ClaudeAgentSDK::ThinkingConfigEnabled.new(budget_tokens: 16_000, display: 'summarized')

What's changed

  • #32 Add thinking.display option for Opus 4.7 summarized thinking — @chagel
  • #28 Extract writeln/write helpers for transport writes — @songjiz

Full Changelog: v0.16.4...v0.16.5


gem install claude-agent-sdk -v 0.16.5