Skip to content

v1.4.2

Choose a tag to compare

@ya-luotao ya-luotao released this 27 Oct 08:14
· 5 commits to main since this release

Fixed

  • bin/rails claude_agent_sdk:install_cli (and CLIInstaller.install whenever Encoding.default_internal is set) no longer fails with Encoding::UndefinedConversionError (issue #177). The download was opened with File::BINARY, which is 0 outside Windows, so the file was in text mode; Rails sets default_internal to UTF-8, and each write then transcoded the binary chunks and raised on the first byte that is not valid UTF-8. The file is now opened with binmode: true.

What's changed

  • #179 CLIInstaller: write the downloaded CLI in binary mode on every platform — @ya-luotao

Full Changelog: v1.4.1...v1.4.2


gem install claude-agent-sdk -v 1.4.2