Codex CLI: App-Server Streaming with TTY/PTY Support
Codex CLI 0.113.0 upgraded the app-server's command execution layer with full streaming support for stdin, stdout, and stderr, plus TTY/PTY emulation for interactive terminal programs. The exec command is now wired to the new in-process app-server path, enabling real-time output streaming in workflows built on top of the Codex app-server API. This unlocks a class of development workflows β interactive compilers, test runners, build tools β that previously could not run reliably through the app-server due to buffered output and missing terminal emulation.
Sources & Mentions
2 external resources covering this update
App-Server Streaming with TTY/PTY Support in Codex CLI
Codex CLI 0.113.0 significantly upgraded the app-server's command execution capabilities, introducing full streaming support for stdin, stdout, and stderr along with TTY/PTY emulation for interactive terminal programs. The exec command has also been wired to the new in-process app-server path, consolidating all execution through a single streaming-capable pipeline.
From Buffered to Streaming Output
Previously, command execution through the Codex app-server produced buffered output: the full stdout or stderr of a command would arrive as a single payload after the process completed. This meant long-running processes β build jobs, test suites, compiler runs β produced no visible output until they finished, making them unsuitable for real-time monitoring through the app-server API.
With 0.113.0, stdin, stdout, and stderr are now streamed incrementally as the process produces output. Clients consuming the app-server API receive data in real time, enabling responsive interfaces and live progress feedback for any command executed through Codex.
TTY/PTY Support for Interactive Programs
Beyond streaming, 0.113.0 adds TTY/PTY (pseudoterminal) support to app-server command execution. Many CLI tools β interactive compilers, test frameworks with color output, REPL environments β behave differently depending on whether they are attached to a real terminal. Without PTY support, these tools typically fall back to non-interactive modes, strip color codes, or disable progress indicators.
With PTY support in place, Codex can now execute interactive terminal programs through the app-server and faithfully emulate a terminal environment, preserving color output, cursor movement, and interactive input handling. This makes the app-server a suitable host for a much wider range of real-world development tasks.
exec Wired to the In-Process App Server
The 0.113.0 release also wires the exec command to the new in-process app-server path. Previously, exec followed a separate execution path from the app-server, which produced subtle behavioral differences depending on how a command was triggered. The consolidation ensures all command execution flows through the same streaming, PTY-capable pipeline β improving consistency and eliminating an entire category of path-dependent bugs.
Impact for Developers Building on the App Server
For developers integrating Codex into their own tooling via the app-server API, these improvements open up workflows that were previously impractical. Real-time build monitoring, streaming test output, interactive REPL sessions, and TTY-aware compiler feedback can all be routed through the Codex app-server. Teams building editor integrations, CI dashboards, or custom agent interfaces on top of Codex gain a substantially more capable execution substrate in 0.113.0.