# Cloudflare's agents 0.34.1 adds Pi 1.6.1 support and changes how parking tools return

published: 2026-11-25T21:05:31.208Z
topic: frameworks
source: https://github.com/cloudflare/agents/releases/tag/agents%400.34.1
url: https://aiagentnews.io/stories/cloudflare-s-agents-0-34-1-adds-pi-1-6-1-support-and-changes-how-parking-tools

Cloudflare has released agents 0.34.1, which adds support for Pi 1.6.1 and aligns the models layer with pi-ai 1.6.1. Developers with parking tools must update their return shape when upgrading, or those tools will end with an empty result.

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.
