Source: github.com/cloudflare/agents/releases/tag/agents%400.34.1
The patch adds support for Pi 1.6.1 under the ~1.6.1 range. Pi tools now park by returning a sleep kind with signals and an until value, replacing the older sleep object. A signal's state is now either a value kind or an expired kind.
The agents/models/pi-ai module now matches pi-ai 1.6.1. A chat-completions stream that ends with finish_reason set to error now fails, and the Pi harness retries it under its retry settings. The rawStopReason field records the provider's reason, and onResponse now sees every response, including failures.
OpenRouter stops with no output and a failing native reason are treated as retryable errors, with native_finish_reason exposed. The agents/models SSE decoder also reads large streamed events in linear time. The entry points to pi-durable 1.6.1's changelog for further detail.
Why it matters if you build agents
Any agent that parks tools needs the new return shape before upgrading, because an old-shape tool compiles but ends with an empty result. Agents calling models through Pi get clearer retry behavior for failed chat-completions streams and OpenRouter stops. The faster SSE decoder should help agents that consume large streamed events.
Get stories like this every weekday
One short email with the day's agent tooling news.