最新资讯
dev.to 你的 Agent Harness 应具备的 17 项能力 dev.to 离线 AI 记忆中 0.8 余弦阈值为何失效 dev.to Kimi K3.1 Pro 开放权重:自托管 2.8T 模型前的开发者清单 dev.to 如何通过工具调用引导模型以提升 Harness 质量 dev.to AI Agent 审计轨迹不等于对话记录 dev.to 精简 MCP server 工具数量:更少工具、更小影响面,双重收益 dev.to 为什么 git checkout 无法撤销 AI 编码 agent 的改动? wechat AI短剧门槛降降降!实测即梦短剧工作室:剧本分镜预演一条龙,伙伴计划长期护航 dev.to 让模型改写文档前,先量化事实保真度 dev.to 回放 153 个 Claude Code 与 Codex 会话,审计 Agent 的生产影响范围 dev.to 银行 77 意图分类最便宜 LLM:GPT-6.1 Terra 每次成功任务 $0.000727 theinformation.com Chesky的副业:Airbnb向CEO新设AI实验室出售IP
多元动态
登录 注册
智能体 developers.cloudflare.com · @Cloudflare Developers

Cloudflare Agents SDK 支持 Pi 1.4,增强任务恢复能力

原文 我的收藏

Cloudflare Agents SDK v0.30.0 在 Pi 1.4 上运行 PiHarness,新增任务休眠时 Durable Object 可休眠、持续崩溃任务被 parked 并可 session.retry() 重试、存储错误后重开 Pi、模型流中断按瞬时错误重试等恢复机制。Pi 1.4 迁移了对象 SQLite 中的会话存储 schema,升级后无法回滚到 Pi 1.3。

AI推荐理由 Cloudflare 官方 changelog 明确列出 Agents SDK v0.30.0 对 Pi 1.4 的适配细节:任务休眠时 Durable Object 可休眠、崩溃任务被 parked 而非无限重启、存储错误后可重开 Pi、模型流中断按瞬时错误重试。对使用 Cloudflare Agents 的开发者有直接升级价值;局限是仅面向该 SDK 用户,且 Pi 1.4 迁移 SQLite 会话存储后无法回滚到 1.3,属需注意的破坏性变更。

72

正文

Agents SDK v0.30.0 runs [`PiHarness`](https://developers.cloudflare.com/agents/harnesses/pi/) on [Pi 1.4 ↗︎](https://github.com/earendil-works/pi/blob/v1.4.0/packages/durable/CHANGELOG.md#140---2026-10-21), and makes it recover more reliably from evictions, crashes, and storage errors. * **Hibernation while Pi's tasks sleep.** `PiHarness` passes Pi's new `onWake` callback to your harness factory. While a task sleeps, such as during a model retry backoff, the Durable Object can hibernate until the task is due instead of staying in memory. * **Parked tasks.** Pi 1.4 parks a task that keeps crashing the object instead of restarting it forever. Parked operations show as `parked` in `pending()`, and `session.retry()` runs them again. * **Recovery from storage errors.** `PiHarness` reopens Pi after a storage error instead of failing every call until the object restarts. Its wake-up job retries failed steps with a backoff instead of being dropped. * **Retried model streams.** `agents/models/pi-ai` reports a cut-off or idle model stream as a transient error, so Pi retries the turn instead of failing it. #### Upgrade The [Agents SDK v0.30.0 changelog ↗︎](https://github.com/cloudflare/agents/blob/main/packages/agents/CHANGELOG.md#0300) has step-by-step upgrade instructions. Point your coding agent at them and upgrade today: ![](https://developers.cloudflare.com/icons/agents/claude/light.svg)![](https://developers.cloudflare.com/icons/agents/claude/dark.svg)![](https://developers.cloudflare.com/icons/agents/codex/light.svg)![](https://developers.cloudflare.com/icons/agents/codex/dark.svg)![](https://developers.cloudflare.com/icons/agents/cursor/light.svg)![](https://developers.cloudflare.com/icons/agents/cursor/dark.svg)![](https://developers.cloudflare.com/icons/agents/opencode/light.svg)![](https://developers.cloudflare.com/icons/agents/opencode/dark.svg)Copy promptPrompt copied! Pi 1.4 migrates the session storage in the object's SQLite database to a schema that Pi 1.3 cannot open, so a deployment cannot roll back past this upgrade. Refer to the [Pi Durable 1.4.0 changelog ↗︎](https://github.com/earendil-works/pi/blob/v1.4.0/packages/durable/CHANGELOG.md#140---2026-10-21) for Pi's own breaking changes.

来源报道 · 1 篇 · 以下链接均前往原始媒体

Cloudflare Developers Cloudflare Agents SDK 支持 Pi 1.4,增强任务恢复能力 10-22 · 原文发布
← 返回精选动态 原文

更多内容