Skip to content

Windows: "XX% left" context indicator no longer appears in Codex CLI/TUI, even though token_count/model_context_window are still present #17618

Closed

Description

@YondSun

What version of Codex CLI is running?

0.120.0

What subscription do you have?

Windows: "XX% left" context indicator no longer appears in Codex CLI/TUI, even though token_count/model_context_window are still present

Which model were you using?

No response

What platform is your computer?

windows11

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

all

What issue are you seeing?

Summary

On Windows, the XX% left context indicator is no longer shown in the Codex CLI TUI.

This used to work for me before. The issue first appeared after I updated from 0.119.0 to 0.120.0 on April 13, 2026, but it still persists after downgrading back to 0.119.0.

What makes this look like a TUI/rendering issue rather than missing backend data is that the session JSONL still contains token_count and model_context_window, but the TUI does not render the XX% left
display.

Environment

  • OS: Windows 10 Pro
  • Architecture: x86_64
  • Codex CLI version tested:
    • 0.120.0
    • downgraded back to 0.119.0
  • Also tested with:
    • npm-installed CLI
    • official standalone Windows exe
  • Shells tested:
    • Windows Terminal
    • PowerShell 7
    • cmd
    • VS Code integrated terminal

Expected behavior

Codex CLI should show the context indicator in the TUI, e.g. XX% left.

Actual behavior

The TUI starts normally, but the XX% left indicator is missing.

Example of what I currently see:

>_ OpenAI Codex (v0.119.0)                                                                                                                                                                                            
                                                                                                                                                                                                                      
 model:     gpt-5.4 high   /model to change                                                                                                                                                                           
 directory: D:\Download                                                                                                                                                                                               
                                                                                                                                                                                                                      
 Tip: New Build faster with Codex.                                                                                                                                                                                    
                                                                                                                                                                                                                      
No XX% left is shown.                                                                                                                                                                                                 
                                                                                                                                                                                                                      
### Reproduction                                                                                                                                                                                                      
                                                                                                                                                                                                                      
1. Start Codex CLI on Windows                                                                                                                                                                                         
2. Enter a prompt and continue the session                                                                                                                                                                            
3. Observe the TUI/status area                                                                                                                                                                                        
                                                                                                                                                                                                                      
### What I already tried                                                                                                                                                                                              
                                                                                                                                                                                                                      
- Updated from 0.119.0 to 0.120.0                                                                                                                                                                                     
- Downgraded back to 0.119.0
- Fully uninstalled and reinstalled Codex                                                                                                                                                                             
- Renamed/deleted the local Codex config/state directory and let it recreate                                                                                                                                          
- Tested with a fresh CODEX_HOME                                                                                                                                                                                      
- Tested in multiple terminals                                                                                                                                                                                        
- Tested the official standalone Windows exe instead of the npm wrapper                                                                                                                                               
                                                                                                                                                                                                                      
None of the above restored the XX% left indicator.                                                                                                                                                                    
                                                                                                                                                                                                                      
### Additional evidence                                                                                                                                                                                               
                                                                                                                                                                                                                      
The session log still appears to receive token/context data.                                                                                                                                                          
                                                                                                                                                                                                                      
In the session JSONL I can still see events like:                                                                                                                                                                     
                                                                                                                                                                                                                      
- token_count                                                                                                                                                                                                         
- model_context_window                                                                                                                                                                                                
                                                                                                                                                                                                                      
So it looks like the underlying usage/context information still exists, but the Windows TUI is not rendering that indicator.                                                                                          
                                                                                                                                                                                                                      
### Comparison                                                                                                                                                                                                        
                                                                                                                                                                                                                      
On my Mac, an older Codex CLI setup still shows the XX% left indicator normally.                                                                                                                                      
                                                                                                                                                                                                                      
### Notes                                                                                                                                                                                                             
                                                                                                                                                                                                                      
This does not look like a simple local config issue anymore, because:                                                                                                                                                 
                                                                                                                                                                                                                      
- it reproduces with both npm install and official exe                                                                                                                                                                
- it reproduces with a fresh CODEX_HOME                                                                                                                                                                               
- it reproduces across multiple Windows terminals                                                                                                                                                                     
- the session log still contains token/context metadata                                                                                                                                                               
                                                                                                                                                                                                                      
### If helpful                                                                                                                                                                                                        
                                                                                                                                                                                                                      
I can also provide:                                                                                                                                                                                                   
                                                                                                                                                                                                                      
- a screenshot                                                                                                                                                                                                        
- a sample session JSONL snippet showing token_count / model_context_window                                                                                                                                           
- exact terminal/Windows build details

### What steps can reproduce the bug?

powershell
codex

### What is the expected behavior?

_No response_

### Additional information

_No response_

Activity

  1. added
    bug
    on Apr 13, 2026
  2. added
    CLI
    windows-os
    TUI
    context
    on Apr 13, 2026
  3. etraut-openai commented on Apr 13, 2026

    @etraut-openai
    Contributor

    I presume you're talking about the display in the bottom status line. This indicator is still available, but it's no longer displayed by default. This was based on feedback we received from users. If you want to see this value, you can configure your status bar using the /statusbar slash command.

  4. TimFletcher commented on Apr 13, 2026

    @TimFletcher

    Seems to be /statusline on v0.120.0.

  5. etraut-openai commented on Apr 13, 2026

    @etraut-openai
    Contributor

    My bad. You're correct, it's /statusline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLITUIbugcontextwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions