Repository navigation
v0.16.5
Added
display:option onThinkingConfigAdaptiveandThinkingConfigEnabled, forwarded to the CLI as--thinking-display <summarized|omitted>. Opus 4.7 silently changed thethinking.displaydefault from"summarized"to"omitted", so callers who used to see reasoning text viaThinkingBlock#thinkingnow get empty strings (signature only). Passdisplay: "summarized"explicitly on Opus 4.7 to restore visible thinking text. Invalid values raiseArgumentErrorat construction. See adaptive thinking docs.
Internal
- Extracted private
writeln/writehelpers inClientandQueryto 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