[FEATURE]: Use K/M compact notation instead of locale myriad units (e.g. "67万") for token counts in Desktop/Web UI
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- frontend, internationalization
Research direction
Read the compact formatting in packages/gui-plugins/src/context/indicator.tsx (lines 67–71) and packages/app/src/providers/models/details.tsx (lines 157–161), then compare it with packages/tui/src/feature-plugins/system/stats-data.ts. Update the UI formatting so token counts and context limits use K/M notation across locales. Done means Chinese, Japanese, and Korean locales show K/M values consistently in both UI locations.
Written by the indexing model from the issue text.
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
In the Desktop / Web UI, when the language is set to Chinese (zh-CN, and similarly zh-TW / ja / ko), compact token counts in the header context indicator are formatted with locale myriad units—e.g. 359,427 tokens shows as 36万 instead of 360k / 359K.
The header context indicator:
Total Tokens:
In LLM and developer contexts, CJK users universally expect K / M notation for token counts and context windows (128K, 200K, 330K, 1M), matching model specs and other AI coding tools. Seeing 67万 forces a mental ×10 conversion every time and loses precision at 10k boundaries (e.g. 128,000 becomes 12万).
This happens because Intl.NumberFormat passes the UI locale with notation: "compact":
packages/gui-plugins/src/context/indicator.tsx(lines 67–71)packages/app/src/providers/models/details.tsx(lines 157–161)
Using "en-US" (as already done in packages/tui/src/feature-plugins/system/stats-data.ts) for compact token / context-limit formatting would keep K / M consistent across all locales.
- Dominant language
- TypeScript
- Stars
- 230k
- Forks
- 31.3k
- Avg merge
- 5h 44m
- Merged PRs (30d)
- 529
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anomalyco/opencode
-
cli: opencode models <provider> filter from v1 is rejected in v2 ("Unexpected positional argument")Possibly taken @nilparra-dev claimed this today. Openarea/cli platform/macos type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anomalyco/opencode#68364 · 2 comments ·
Maintainers usually reply within 1 day
-
area/tui platform/linux type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
anomalyco/opencode#68301 · 1 comment ·
Maintainers usually reply within 1 day
-
goal: session started with /goal gets a truncated objective as its title, not a generated titleOpenarea/plugins platform/windows type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anomalyco/opencode#68298 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug]: Web UI: Pressing Ctrl+<key> with Caps Lock active triggers Ctrl+Shift+<key> shortcutsPossibly taken @saurabhbhoir456 claimed this today. Openarea/web platform/windows type/bug version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
anomalyco/opencode#68237 · 6 comments ·
Maintainers usually reply within 1 day
-
area/desktop inference/go platform/macos type/bug version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anomalyco/opencode#68121 · 1 comment ·
Maintainers usually reply within 1 day
All issues in anomalyco/opencode
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ranxianglei/billion-context#8319 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
JimLiu/open-artifact#126 ·
-
bug repro-ready
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
mksglu/context-mode#1454 ·
-
pending triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
laststance/design-world#98 ·
Maintainers usually reply within 1 day