Codex CLI 0.106.0: Realtime API, Memory Improvements

Codex CLI 0.106.0 brings thread-scoped realtime APIs, memory optimizations, and WebSocket reliability fixes. Direct install scripts now available for macOS and Linux.

Codex CLI 0.106.0: Realtime API, Memory Improvements

TL;DR

  • Thread-scoped realtime API with unsubscribe flow for live thread management
  • Memory improvements: diff-based forgetting and usage-aware selection
  • Direct install script for macOS/Linux; js_repl promoted to experimental with Node 22.22.0 minimum
  • WebSocket reliability fixes and input size caps to prevent hangs

New

  • App-server v2 thread realtime API — Experimental thread-scoped realtime endpoints with notifications and a thread/unsubscribe flow to unload live threads without archiving.
  • Direct install script — macOS and Linux users can now install via a single script published as a GitHub release asset, bundling codex and rg.
  • js_repl experimental promotion — Moved to /experimental with startup compatibility checks and lowered Node minimum to 22.22.0.
  • Memory improvements — Diff-based forgetting and usage-aware memory selection to reduce context bloat.
  • request_user_input in Default mode — User input requests now work in Default collaboration mode, not just Plan mode.
  • 5.3-codex model visibility — API users can now see and select the 5.3-codex model in the CLI model list.

Fixed

  • WebSocket reliability — Retry timeout-related HTTP 400 handshake failures and prefer WebSocket v2 when supported by the model.
  • zsh sandbox bypass — Fixed shell execution path that could drop sandbox wrappers and bypass filesystem restrictions.
  • Input size cap — Added ~1M-character limit in TUI and app-server to prevent hangs/crashes on oversized pastes with explicit error responses.
  • TUI file-link rendering — Hide absolute paths while preserving visible line/column references in local file links.
  • Ctrl-C handling — Fixed Ctrl-C handling for sub-agents in the TUI.

Breaking Changes

  • Steer feature flag removed — The steer feature flag is now always-on in the TUI composer; no action needed if you were already using it.

Update via: npm install -g @openai/codex@0.106.0 or use the new direct install script from the GitHub release page.

Source: Codex