English

Product LaunchesCodex CLI

Codex CLI rust-v0.158.0 Release — Enhanced TUI controls and expanded MCP integration

Codex CLI rust-v0.158.0 introduces several functional improvements to the terminal user interface (TUI) and expanded connectivity options for Model Context Protocol (MCP) servers.

New Features and Improvements

  • Enhanced TUI Experience: Users can now configure copy-on-select and right-click paste within the fullscreen TUI. Additionally, copied transcript selections now preserve Markdown formatting.
  • Expanded MCP Support: The CLI can now connect to MCP servers requiring pre-registered OAuth client secrets via codex mcp add --oauth-client-secret.
  • Security and Connection Enhancements: WebSocket connections to exec-server are now secured with bearer tokens. Furthermore, terminal input approval is enabled by default for commands running with elevated permissions.
  • Image Generation Updates: Image generation and editing now allow for explicit requests for transparent backgrounds, and edits can accept conversation images backed by files.

Bug Fixes

  • Sandbox and Permissions: Resolved various Windows sandbox failures related to path handling and credential rejection, and fixed Linux sandbox startup issues involving nested writable roots.
  • macOS Optimizations: Patch operations now correctly recognize system path aliases, reducing unnecessary approval prompts.
  • UI and Rendering: Fixed issues with Mermaid flowchart rendering for quoted labels and ampersands, and addressed TUI responsiveness during clipboard operations.
  • Reliability: Improved command completion event reporting and fixed various issues related to Guardian authorization reviews and message ordering.

Sources

  1. rust-v0.158.0 (2026-09-28)