Codex agent loop moves into a Cloudflare Durable Object: conversations, files and finished steps survive a restart
Cloudflare published an experimental Agents SDK example that adapts Codex's Rust turn-processing code to WebAssembly and runs the agent loop inside a Durable Object. Previously an interrupted agent could not easily carry its conversation and tool results forward; the example uses Tasks to journal model calls and tool execution, Sessions to store conversation history and compact context, Streams to store ordered events for replay after reconnecting, and Workspace for persistent file tools, so completed steps reuse recorded results after a restart and interrupted steps can run again.