Session stats panel: "Usage" shows context-window fill, not account usage — misleading when the free limit is reached
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 76/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- react, typescript
- Bereich
- frontend, internationalization
Rechercherichtung
Beginne mit gui-plugins/src/context/tab.tsx und verfolge, wie die Beschriftungen der Sitzungsstatistiken dargestellt werden; im Issue sind die Werte und vorgeschlagenen Ersatztexte angegeben. Prüfe die russischen Übersetzungen in app/src/runtime/i18n/ru.ts auf die fehlenden Einträge für command.usage.view. Fertig ist die Arbeit, wenn die Statistiken die Kontextauslastung von der Kontonutzung unterscheiden und der Nutzungsbefehl russische Beschriftungen hat.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
The Context tab session stats panel uses labels that look like account limits, but they
measure the model's context window.
For opencode/deepseek-v4.1-flash-free it shows:
Лимит контекста (Context limit): 200 000
Всего токенов (Total tokens): 70 442
Использование (Usage): 35 %
while requests fail at the same time with "Free usage limit reached ... subscribe to
OpenCode Go", so it reads as if most of the allowance is still left.
Cause: gui-plugins/src/context/tab.tsx (SessionContextTab) computes
total = input + output + reasoning + cache.read + cache.write for the last assistant
message, then usage = round(total / model.limit.context * 100). The math is correct,
but "Total tokens" is the current context size, not the session total (97 messages,
70 442 tokens), and "Usage" is context-window fill, not quota.
Suggested renames: "Usage" -> "Context fill", "Total tokens" -> "Last turn tokens",
"Context limit" -> "Model context window".
Same area, minor: command.usage.view and command.usage.view.description are missing from
app/src/runtime/i18n/ru.ts, so the command stays English in the palette, while
dialog.usageExceeded.freeTier.* is translated ("Достигнут бесплатный лимит" — "Free limit
reached").
Note: the free allowance isn't available to the panel anyway — GET
/api/experimental/usage/limits returns only the Console workspace and budgets: [].
Plugins
OpenCode version
OpenCode version: 2.2.5 (Desktop)
Steps to reproduce
- OpenCode Desktop 2.2.5, UI language Russian
- Open a session using opencode/deepseek-v4.1-flash-free
- Open the Context tab -> session stats
- Exhaust the free allowance so requests fail with "Free usage limit reached"
- The stats panel still shows "Использование 35 %" ("Usage 35 %")
Screenshot
Operating System
Windows 10
Terminal
OpenCode Desktop (GUI, not a terminal)
- Vorherrschende Sprache
- TypeScript
- Sterne
- 225k
- Forks
- 30.4k
- Ø Merge
- 4 Std. 8 Min.
- Gemergte PRs (30 T.)
- 518
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus anomalyco/opencode
-
pending close triaging
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
anomalyco/opencode#62626 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
anomalyco/opencode#62601 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
reproduced
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
anomalyco/opencode#62516 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
anomalyco/opencode#62362 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
reproduced
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
anomalyco/opencode#62343 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in anomalyco/opencode
Ähnliche Issues
-
Recording drops clicks on links, filters and checkboxes that share a form with a search fieldEvtl. vergeben @columbia11 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Tencent/BrowserSkill#657 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Choosing a folder while continuing an Antigravity session submits a history fork the runtime rejectsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
-
ai-handle
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
nextlevelbuilder/dewee-web-v2#138 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
NEARBuilders/citynode.app#512 ·
Maintainer antworten meist innerhalb von 1 Tag