feat(cli): set terminal title (like Claude Code)
Resolved 💬 0 comments Opened Apr 11, 2026 by Jannchie Closed Apr 11, 2026
What variant of Codex are you using?
CLI
What feature would you like to see?
Currently, when running Codex in VS Code terminal, the tab title shows node instead of codex, since the CLI does not explicitly set a terminal title.
Some similar tools (e.g., Claude Code) set the terminal title via ANSI escape sequences, which improves usability when multiple terminals are open.
It would be helpful if Codex could set the terminal title to something like codex when running in an interactive TTY.
<img width="138" height="48" alt="Image" src="https://github.com/user-attachments/assets/4941ebb0-12bf-45cf-b35c-73e24de20d0e" />
Additional information
A minimal implementation could be:
if (process.stdout.isTTY) {
process.stdout.write('\x1b]0;codex\x07');
}
This should be safe and only affect interactive sessions.
Happy to open a PR for this if the approach sounds good.