v0.6.19 @cloudflare/codemode@0.5.2

medium risk

facebook/astryxSep 10, 2026 → Sep 11, 20261 day between releases

What's New

CodeMode now truncates results structurally to ensure valid JSON and limits sandbox logs via projection.

Breaking Changes

  • truncateResult behavior changed from slicing JSON to shrinking values in place.
  • toModelOutput projection now excludes calls from the model's visible context.

New Features

  • Structural truncation shrinks oversized values (strings, arrays, objects) in place.
  • toModelOutput projection bounds sandbox logs to prevent oversized context.
  • MCP servers apply response budgets to limit text output.

Improvements

  • Output is now always valid JSON of the original shape.
  • Sandbox logs are bounded to prevent token bloat.
  • MCP servers now enforce response budgets for text output.

Bug Fixes

  • Fixed invalid JSON output caused by previous character-based slicing.
  • Fixed crashes caused by BigInt or cyclic values by rendering them gracefully.

Upgrade Notes

Update to v0.5.2 to fix invalid JSON output from truncateResult. Note that toModelOutput now automatically projects calls out of the model context and bounds sandbox logs. MCP servers will now enforce response budgets.

The Two Releases

v0.6.19

v0.6.19

Sep 10, 2026· 1 month ago

Mobilerun release improving agent finalization, manual OAuth selection, and adding Langfuse support for immutable ended spans.

Full release notes
@cloudflare/codemode@0.5.2

@cloudflare/codemode@0.5.2

Sep 11, 2026· 1 month ago

Improves structured result truncation to ensure valid JSON output and limits sandbox logs exposed to the model.

Full release notes