[BUG] Missing visual ctx percentage after #1261
Description
In new UI, I cant seem to find the ctx: 10% or similar indicator show up anymore, without alt screen.
I havent have time to check on linux yet, this is on my windows box:
20260913 update:
This seems fine on linux box:
Environment
- OS: (e.g., macOS 14.0, Ubuntu 22.04, Windows 11) win10
- Node version: (run
node --version) 24 - Nanocoder version: (run
nanocoder --version) latest main upto #1261 - Provider: (e.g., Ollama, OpenRouter, OpenAI-compatible API) openaicompat
- Model: (e.g., llama3.2, claude-3.5-sonnet) deepseek v4, on 1.29 it can report max token, on main it didnt and I have to manually set context max to begin with and see in /usage, but not under the text box prompt
Steps to Reproduce
Just open nanocoder on a windows machine, mintty 2.0.2
Expected Behavior
Show contaxt percentage
Actual Behavior
do not show
Logs/Screenshots
See above
Additional Context
- [x] I have searched existing issues to ensure this is not a duplicate
- [x] I can reproduce this issue consistently
- [x] This issue occurs with the latest version of nanocoder
May take a look sometime next week, not sure now.
After manually adding the context number and restart it will show, but weirdly since deepseek switch from v4 to v4.1, it didnt pull correctly from the remote anymore:
"contextWindow": 1000000
I took a look at this, and the additional context about DeepSeek V4/V4.1 and the missing remote contextWindow makes me think the TUI may be receiving an unset context window rather than this being purely a display regression.
I’d like to trace how the context window is resolved for OpenAI-compatible providers and how that value reaches the new TUI, then see if I can reproduce the issue and add a regression test.
Since you mentioned you may take a look next week, would you be okay with me investigating and potentially opening a PR for this?
Go ahead @dhruvil-codes , I have some other issues I am currently focusing on anyway.
Thanks.
BTW @dhruvil-codes i updated a new finding, this does not show up on my linux box, it is fine, only on windows at the moment it seems.
Picking this up - a fix will follow shortly.