nanocoder icon indicating copy to clipboard operation
nanocoder copied to clipboard

[BUG] Missing visual ctx percentage after #1261

Open coralsundy opened this issue 2 months ago • 6 comments

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:

Image

20260913 update:

This seems fine on linux box:

Image

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

coralsundy avatar Sep 12 '26 14:09 coralsundy

May take a look sometime next week, not sure now.

coralsundy avatar Sep 12 '26 14:09 coralsundy

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

coralsundy avatar Sep 13 '26 03:09 coralsundy

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?

dhruvil-codes avatar Sep 13 '26 09:09 dhruvil-codes

Go ahead @dhruvil-codes , I have some other issues I am currently focusing on anyway.

Thanks.

coralsundy avatar Sep 13 '26 14:09 coralsundy

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.

coralsundy avatar Sep 13 '26 14:09 coralsundy

Picking this up - a fix will follow shortly.

awhite0030 avatar Sep 15 '26 01:09 awhite0030