r/codex•
wt1j

Codex CLI 0.56.0 Released. Here's the beef...

News

Thanks to the OpenAI team. They continue to kick-ass and take names. Announcement on this sub:

https://www.reddit.com/r/codex/comments/1or26qy/3_updates_to_give_everyone_more_codex/

Relase entry with PRs: https://github.com/openai/codex/releases

Executive Summary

Codex 0.56.0 focuses on reliability across long-running conversations, richer visibility into rate limits and token spend, and a smoother shell + TUI experience. The app-server now exposes the full v2 JSON-RPC surface with dedicated thread/turn APIs and snapshots, the core runtime gained a purpose-built context manager that trims and normalizes history before it reaches the model, and the TypeScript SDK forwards reasoning-effort preferences end to end. Unified exec became the default shell tool where available, UIs now surface rate-limit warnings with suggestions to switch to lower-cost models, and quota/auth failures short-circuit with clearer messaging.

Table of Contents

  • Executive Summary
  • Major Highlights
  • User Experience Changes
  • Usage & Cost Updates
  • Performance Improvements
  • Conclusion

Major Highlights

  • Full v2 thread & turn APIs – The app server now wires JSON-RPC v2 requests/responses for thread start/interruption/completion, account/login flows, and rate-limit snapshots, backed by new integration tests and documentation updates in codex-rs/app-server/src/codex_message_processor.rs, codex-rs/app-server-protocol/src/protocol/v2.rs, and codex-rs/app-server/README.md.
  • Context manager overhaul – A new codex-rs/core/src/context_manager module replaces the legacy transcript handling, automatically pairs tool calls with outputs, truncates oversized payloads before prompting the model, and ships with focused unit tests.
  • Unified exec by default – Model families or feature flags that enable Unified Exec now route all shell activity through the shared PTY-backed tool, yielding consistent streaming output across the CLI, TUI, and SDK (codex-rs/core/src/model_family.rs, codex-rs/core/src/tools/spec.rs, codex-rs/core/src/tools/handlers/unified_exec.rs).

User Experience Changes

  • TUI workflow polish – ChatWidget tracks rate-limit usage, shows contextual warnings, and (after a turn completes) can prompt you to switch to the lower-cost gpt-5-codex-mini preset. Slash commands stay responsive, Ctrl‑P/Ctrl‑N navigate history, and rendering now runs through lightweight Renderable helpers for smoother repaints (codex-rs/tui/src/chatwidget.rs, codex-rs/tui/src/render/renderable.rs).
  • Fast, clear quota/auth feedback – The CLI immediately reports insufficient_quota errors without retries and refreshes ChatGPT tokens in the background, so long sessions fail fast when allowances are exhausted (codex-rs/core/src/client.rs, codex-rs/core/tests/suite/quota_exceeded.rs).
  • SDK parity for reasoning effort – The TypeScript client forwards modelReasoningEffort through both thread options and codex exec, ensuring the model honors the requested effort level on every turn (sdk/typescript/src/threadOptions.ts, sdk/typescript/src/thread.ts, sdk/typescript/src/exec.ts).

Usage & Cost Updates

  • Rate-limit visibility & nudges – The TUI now summarizes primary/secondary rate-limit windows, emits “you’ve used over X%” warnings, and only after a turn finishes will it prompt users on higher-cost models to switch to gpt-5-codex-mini if they’re nearing their caps (codex-rs/tui/src/chatwidget.rs).
  • Immediate quota stops – insufficient_quota responses are treated as fatal, preventing repeated retries that would otherwise waste time or duplicate spend; dedicated tests lock in this behavior (codex-rs/core/src/client.rs, codex-rs/core/tests/suite/quota_exceeded.rs).
  • Model presets describe effort tradeoffs – Built-in presets now expose reasoning-effort tiers so UIs can show token vs. latency expectations up front, and the app server + SDK propagate those options through public APIs (codex-rs/common/src/model_presets.rs, codex-rs/app-server/src/models.rs).

Performance Improvements

  • Smarter history management – The new context manager normalizes tool call/output pairs and truncates logs before they hit the model, keeping context windows tight and reducing token churn (codex-rs/core/src/context_manager).
  • Unified exec pipeline – Shell commands share one PTY-backed session regardless of entry point, reducing per-command setup overhead and aligning stdout/stderr streaming across interfaces (codex-rs/core/src/tools/handlers/unified_exec.rs).
  • Rendering efficiency – TUI components implement the Renderable trait, so they draw only what changed and avoid unnecessary buffer work on large transcripts (codex-rs/tui/src/render/renderable.rs).

Conclusion

Codex 0.56.0 tightens the loop between what the model sees, what users experience, and how consumption is reported. Whether you’re running the TUI, scripting via the CLI/SDK, or integrating through the app server, you should see clearer rate-limit guidance, faster error feedback, and more consistent shell behavior.

Edit: To remove ToC links which didn't work on reddit, so kinda pointless.

Posted Nov 7, 2025, 7:02 PM UTC

6426
Loading comments…