Skip to content

v0.16.1

Choose a tag to compare

@ya-luotao ya-luotao released this 22 Apr 04:37
· 698 commits to main since this release

Fixed

  • Client#receive_response no longer raises LocalJumpError: break from proc-closure when called inside Async { }. The 0.15.1 thread-hop severed break's unwind target; the loop now exits via the natural end marker after ResultMessage.

Why this matters

If you used the canonical one-shot pattern:

Async do
  client.connect
  client.query('hello')
  client.receive_response { |msg| puts msg }
ensure
  client.disconnect
end

…it crashed on the first ResultMessage after 0.15.1. That's now fixed. The pre-0.15.1 (no-Async) call path was unaffected and continues to work.

What's changed

  • #25 Fix LocalJumpError in Client#receive_response under Fiber scheduler — @chagel

Full Changelog: v0.16.0...v0.16.1


gem install claude-agent-sdk -v 0.16.1