Repository navigation
v0.16.7
Added
ClaudeAgentOptions#resume_session_at— forwarded as--resume-session-at <message-uuid>to the CLI. When resuming a session, the conversation is truncated to include only messages up to and including the assistant message with the given UUID, enabling history rewriting / branched continuations from a specific turn. RaisesArgumentErrorfromCommandBuilderif set withoutresume(matches the CLI's own validation but surfaces it synchronously in the caller's stack).examples/e2b_transport_example.rb— working ~320-line custom transport that runs the Claude Code CLI inside an E2B Firecracker microVM via thee2bgem. ReusesCommandBuilderfor argv parity withSubprocessCLITransportand demonstrates the 6-methodTransportinterface against a remote backend. README's Custom Transport section now includes an interface table, data-flow diagram, code sketch, and production-hardening checklist that link to the example.
Usage
# Resume a session and rewrite history from a specific assistant turn
ClaudeAgentSDK.query(
prompt: 'Try a different approach',
options: ClaudeAgentSDK::ClaudeAgentOptions.new(
resume: '550e8400-e29b-41d4-a716-446655440000',
resume_session_at: 'assistant-message-uuid-from-history'
)
) do |message|
# only messages up to and including the given UUID are loaded as context
endWhat's changed
- #33 Add resume_session_at option to forward --resume-session-at — @ya-luotao
Full Changelog: v0.16.6...v0.16.7
gem install claude-agent-sdk -v 0.16.7