← EVENT LIBRARY / Developer Tools

Codex CLI 0.166 adds durable queue resume and network diagnosis

Codex CLI 0.166 adds codex queue --resume and doctor --network-only, preserves approval and permission state across resume and fork, and restores descendant threads. It also fixes startup, shutdown and reconnect paths and corrects reasoning-token accounting.

Imported from the existing research archive. Migration preserves the recorded judgment and is not a fresh verification.

What this means for you

For long-running coding workflows, durable queue resume and explicit network diagnosis make interrupted work easier to verify. Teams should still test approval preservation and descendant restoration before broad rollout.

Evidence & related material

Background · Historical record, not rechecked

OpenAI put the Agents API into public beta for all developers: a managed service powered by the Codex harness (open-source codebase) where OpenAI runs session orchestration, context compaction and recovery. One API call takes a task, a model, tools and an environment; compute can be OpenAI-managed sandboxes, the customer's own infrastructure via a proxy, or sandbox partners (Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, Vercel). Agents persist across turns with streaming progress, call MCP servers / custom functions / built-in web search, and 'auto compaction' carries notes across context windows; tool search discovers MCP tools without loading every schema; programmatic tool calling reads tool outputs mid-chain; subagents run in parallel with their own contexts. No additional fees during beta beyond token and tool usage.

Subsequent changes

Update · 2026-09-29

Agents API adds hosted browsing with origin approval and sign-in handoff

Update · 2026-10-30

Version 0.166.0 adds queue resume and repairs session-state boundaries.

Technical details & scores
Status public beta, all developers; page publishedTime 2026-09-10T15:00Z
Harness managed service powered by the Codex harness (open-source codebase); OpenAI runs orchestration, compaction, recovery
Compute Options OpenAI-managed sandbox / own infrastructure via proxy / sandbox partners: Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, Vercel
Features persistent sessions with streaming progress; MCP servers + custom functions + built-in web search; auto compaction (notes across context windows); tool search; programmatic tool calling; parallel subagents with own contexts
Pricing no additional fee during beta; pay for tokens and tools
Related GPT-Live 1 GA, prompt cache diagnostics GA, API key expiry, GPT Image 2.5 Sunburst/Flare shipped in the same changelog window (see ev-20260910-05)
Hosted Browser OpenAI-hosted browser with resumable sessions
Authentication application renders authentication fields; main agent only
Unsupported passkeys and QR-code sign-in
Approval application approves requested origins
Latest Cli 0.166.0
Release Time 2026-10-29T19:47:53Z
Release 2026 10 29 queue --resume, doctor --network-only, approval/permission preservation, descendant restoration and reconnect fixes
Technical impact 4
Engineering value 5
Adoption signal 3
Maturity 3
Verification cost 2
Risk 3