Feature request: configure rendered tab width in Codex CLI TUI
Resolved 💬 2 comments Opened Jul 29, 2026 by cowwoc Closed Jul 29, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
## Feature request
Allow users to configure the number of spaces used when rendering tab characters in the Codex CLI/TUI.
Rendered tabs currently appear to use a width of 8 spaces. In WSL, running:
tabs -2
before launching Codex does not appear to affect the rendering, so the CLI may be using its own tab-width handling rather than the terminal's tab stops.
A configuration option in config.toml—for example tui.tab_width = 2—would allow users to control the display width of tabs in rendered code, pasted text, and tool output.
The setting should affect rendering only; it should not modify the underlying content.
EOF
2 Comments
Duplicate of https://github.com/openai/codex/issues/36017
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action