@cloudflare/shell@0.3.7

cloudflare/agents@cloudflare/shell@0.3.7May 14, 2026by github-actions[bot]

AI Summary

This patch release fixes binary data handling in codemode, ensuring `Uint8Array` values properly survive the sandbox boundary. The fix resolves issues with `state.writeFileBytes()` and `readFileBytes()` when used in codemode.

Key Highlights

  • Preserves `Uint8Array` arguments across codemode tool calls
  • Fixes `state.writeFileBytes()` from codemode with byte arrays
  • Keeps `readFileBytes()` results as `Uint8Array` values
  • Ensures binary values survive the sandbox boundary

New Features

  • Fixed binary data handling in codemode for `Uint8Array` values

Full Release Notes

### Patch Changes

-   [#1521](https://github.com/cloudflare/agents/pull/1521) [`2911bae`](https://github.com/cloudflare/agents/commit/2911bae6c7a0e331de9cb8471ab877aee2a385d2) Thanks [@mattzcarey](https://github.com/mattzcarey)! - Preserve binary values across codemode tool calls so `Uint8Array` arguments and results survive the sandbox boundary. This fixes `state.writeFileBytes()` from codemode with byte arrays and keeps `readFileBytes()` results as `Uint8Array` values.