codex - ✅(Solved) Fix Terminal/tab suffix shows codex" (stray quote in process/app name) [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18160Fetched 2026-04-17 08:31:57
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×3cross-referenced ×1unlabeled ×1

PR fix notes

PR #18261: fix(tui): use BEL for terminal title updates

Description (problem / solution / changelog)

Summary

Fixes #18160.

iTerm2 can append the current foreground process to tab titles, and Codex's terminal-title updates were causing that decoration to appear as (codex") with a stray trailing quote. Codex was writing OSC 0 title sequences terminated with ST (ESC \). Some terminal title integrations appear to accept that title update but still expose the ST terminator in their own process/title decoration.

Changes

  • Update codex-rs/tui/src/terminal_title.rs to terminate OSC 0 title updates with BEL instead of ST.
  • Update the focused terminal-title encoding test to assert the BEL-terminated sequence.

Compatibility

This should be low risk: the title payload and update timing are unchanged, and BEL is the form already emitted by crossterm::terminal::SetTitle in the crossterm version used by this repository. BEL is also the widely supported xterm-family title terminator used by common terminals and multiplexers. The main theoretical risk would be a very old or unusual terminal that accepted only ST and not BEL for OSC title termination, but that is unlikely compared with the observed iTerm2 issue.

Verification

  • cargo test -p codex-tui terminal_title
  • cargo test -p codex-tui

Changed files

  • codex-rs/tui/src/terminal_title.rs (modified, +6/-5)
RAW_BUFFERClick to expand / collapse

Re-opening ticket as original fix did not solve.

@etraut-openai @ianmcvann Yeah I'm still seeing the exact same issue as I reported it. I'm also on the latest version. It doesn't appear like the fix actually worked - should we re-open this ticket instead of creating a new one?

https://github.com/user-attachments/assets/5f66d3a8-4dfe-4ca2-975a-5817608e8cc4

Originally posted by @redbmk in #18160

extent analysis

TL;DR

The issue can likely be fixed by modifying the Codex CLI to correctly set its process title without the trailing quote.

Guidance

  • Verify that the issue is indeed caused by Codex CLI setting an incorrect process title by checking the argv[0] or process title in the Codex CLI code.
  • Investigate the Codex CLI code to see where the process title is being set and modify it to remove the trailing quote.
  • Test the modified Codex CLI to ensure the issue is resolved and the tab title is correctly displayed as (codex).
  • If modifying the Codex CLI code is not feasible, consider reporting the issue to the Codex CLI maintainers or seeking a workaround.

Example

No code snippet is provided as the issue does not contain sufficient information about the Codex CLI code.

Notes

The issue seems to be specific to the Codex CLI and iTerm2, and may not occur with other terminal emulators or platforms.

Recommendation

Apply workaround: Modify the Codex CLI code to correctly set its process title, or report the issue to the maintainers if modification is not feasible. This is because the issue is likely caused by a bug in the Codex CLI code, and modifying the code or reporting the issue is the most direct way to resolve it.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING