Codex should provide meaningful OSC 0/2 for Terminal Title

Resolved 💬 5 comments Opened Apr 20, 2026 by anthonykim1 Closed Apr 26, 2026

What version of Codex CLI is running?

0.118.0

What subscription do you have?

pro

Which model were you using?

5.3-codex

What platform is your computer?

mac os

What terminal emulator and version are you using (if applicable)?

vscode

What issue are you seeing?

Coming from https://github.com/microsoft/vscode/issues/290830 and https://github.com/microsoft/vscode/pull/304528

Note that all other CLI such as gemini, claude, copilot provides meaningful terminal title via OSC 0/2, but codex does not, leading to fallback on just workspace name from pwsh.

With new vscode setting terminal.integrated.tabs.allowAgentCliTitle we allow CLIs to set their own terminal tab title name, and it would serve codex good if you guys can contribute title, this way to prevent confusion to users and have better UI/UX for them when in embedder like vscode, cmux, or even on windows powershell.

What steps can reproduce the bug?

  1. Open vscode.
  2. set terminal.integrated.tabs.allowAgentCliTitle to enalbed
  3. Launch codex via typing codex in integrated terminal
  4. Watch title is meaningless compared to those set b y other CLIs.

What is the expected behavior?

Contribute osc 0/2 to set meaningful terminal title for embedder to set accordingly.

Additional information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗