Summary
Add a user-configurable tab width for content rendered by the Codex CLI/TUI.
Current behavior
Tabs in rendered code, pasted text, and tool output appear to be displayed with a width of 8 spaces. The terminal tab-stop configuration does not seem to affect this rendering.
For example, in WSL, configuring the terminal with two-column tab stops before launching Codex does not change the apparent rendered tab width.
Requested behavior
Add a config.toml setting to control the display width of tab characters, for example:
The setting could default to 8 for compatibility, while allowing values such as 2 or 4.
This should affect rendering only. It should not modify the underlying text, convert tabs to spaces, or change files being displayed.
Environment
Summary
Add a user-configurable tab width for content rendered by the Codex CLI/TUI.
Current behavior
Tabs in rendered code, pasted text, and tool output appear to be displayed with a width of 8 spaces. The terminal tab-stop configuration does not seem to affect this rendering.
For example, in WSL, configuring the terminal with two-column tab stops before launching Codex does not change the apparent rendered tab width.
Requested behavior
Add a
config.tomlsetting to control the display width of tab characters, for example:The setting could default to 8 for compatibility, while allowing values such as 2 or 4.
This should affect rendering only. It should not modify the underlying text, convert tabs to spaces, or change files being displayed.
Environment