Agent 基础设施官方发布自动监测

agents@0.34.0

Cloudflare Agents SDK 0.34.0 adds support for Pi 1.6 with park/sleep tooling and subagent signaling, introduces explicit MCP client re-authorization handling, and prevents error leaks on failed requests.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

Cloudflare Agents SDK release 0.34.0 brings significant updates to its Pi harness, MCP client handling, and error response defaults: - Pi 1.6 Integration : Updates agents/harness/pi , agents/models/pi-ai , and Pi tools to Pi 1.6 (~1.6.0). Tools can now 'park' to wait for signals or deadlines while the agent sleeps, with signals delivered via harness.signal() . Subagent waiting is supported via notify parameters on submit() and continue() . Input can be preserved across aborts using { onAbort: 'keep' } . Sessions can be seeded from history using init in harness.root() , sessions.create() , and sessions.fork() . In addition, expired Anthropic threads are recovered automatically by re-sending conversation history. - Deployment Incompatibility : Upgrading to Pi 1.6 prevents rolling back past this version once conversations run, as Pi 1.5 cannot execute Pi 1.6 tool calls or model requests. - MCP Client Changes : Re-authorization prompts now throw MCPAuthorizationRequiredError containing an authUrl . Failed MCP servers remain failed rather than retrying on every wake; reconnects must be explicitly handled via this.reconnectMcpServer(id) . - Security/Error Privacy : Failed requests and WebSocket upgrade errors now return a generic 500 status or 1011 close frame instead of exposing raw error details. Developers can intercept and customize responses using onFetchError(request, error) . - General Improvements : Added FLUX.2 image models, set default claudeCode() model to claude-sonnet-5-5 , eliminated re-runs for cancelled schedules/tasks, and resolved multi-tab chat turn race…

Agent 解析

可执行摘要

Upgrade to agents@0.34.0 adds Pi 1.6 support (Pi 1.5 dropped; conversations cannot roll back). It introduces parking tools ( harness.signal() ), subagent notifications on submit() / continue() , MCP MCPAuthorizationRequiredError handling with reconnectMcpServer() , and generic 500/1011 responses for failed client requests via new onFetchError() lifecycle hook.

Agent 实用度
94/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Update Pi packages (@earendil-works/pi-durable, pi-ai, pi-schema, chord) to ~1.6.0; note that rollbacks to Pi 1.5 are not supported after conversations run on 1.6.
  • Deliver Pi tool wake signals using harness.signal() instead of (await harness.pi()).signal().
  • Catch MCPAuthorizationRequiredError and redirect users to error.authUrl; implement UI/logic to trigger reconnectMcpServer(id) when an MCP server fails.
  • Implement onFetchError(request, error) if downstream clients rely on detailed server error messages or custom error payloads.
分类

标签与路由

cloudflareagents-sdkedge-runtime
相关信号

继续阅读