desktop: Go usage meter missing when the opencode group has only free models
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 76/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- frontend
Piste de recherche
Commence par le code du sélecteur de modèles qui regroupe les fournisseurs du workspace et affiche l’en-tête du groupe ; l’issue identifie la vérification du préfixe du nom du workspace et la condition de l’en-tête workspace: "lead". Suis la façon dont opencode-go est classé lorsque opencode n’a aucun modèle payant, puis vérifie les tests du sélecteur ou ajoute une couverture pour ce cas. Le travail est terminé lorsque l’en-tête du compte Go et l’indicateur d’utilisation apparaissent avec uniquement des modèles gratuits opencode ; le comportement de nouvelle tentative signalé fera l’objet d’un follow-up distinct.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
On desktop 2.4.4, the OpenCode Go usage meter added to the model picker is not rendered for a Go-only workspace. The meter is attached to the opencode (Console) workspace group header, but that group is dropped when it contains only free models, which are moved to the separate Free section. The opencode-go group then appears as a plain OpenCode Go label with no account or usage meter.
Environment
- opencode version: 2.4.4 (desktop; the npm CLI on PATH is 1.19.6)
- Client: desktop app, Windows
- Model and provider:
opencode-go/deepseek-v4.1-flash - OS: Windows 11, 10.0.26300 x64
- Terminal: Not applicable (desktop app)
- Shell:
cmd.exe - Install/channel: desktop stable, latest (
v2.4.4, 2026-12-03) - Active plugins: none found; MCP servers
browseandopencode_console
Reproduction
- Sign in to an OpenCode Console workspace with an active Go subscription.
- Use a workspace whose managed config disables the paid
opencodemodels. In this case all 100opencodemodels are disabled; only free models such asdeepseek-v4.1-flash-freeandhy4-flash-freeremain. - Open the desktop model picker (click the current model name in the composer).
- Observe the OpenCode section.
Expected Behavior
The picker shows the OpenCode account header with the Go badge and the 5-hour/weekly/monthly usage meter, as described in the 2.4.4 release notes ("a Go usage meter" in the model picker), even when the paid opencode group is empty.
Actual Behavior
No OpenCode account/usage header is rendered. The picker shows a plain OpenCode Go group label followed by the Go models. The free opencode models appear under Recent/Free. GET /api/experimental/usage/limits returns valid go data for the workspace (rolling/weekly/monthly), so the data is available; only the header is missing from the UI.
Adding this to the user config makes the meter appear (replace <workspace> with the workspace name):
"providers": {
"opencode-go": {
"name": "<workspace> / OpenCode Go"
}
}
The cause is that the picker builds the workspace provider set from providers whose name starts with <workspace> / . Here opencode is named <workspace> / OpenCode, while opencode-go is named just OpenCode Go, so it is not included. The Go meter is only rendered in the header of the group with workspace: "lead"; with the opencode group empty and opencode-go not recognized, no header is rendered.
Additional Context
/api/configmanaged document:opencodehas 100 disabled models;opencode-gohas 0 disabled./api/provider:opencodename<workspace> / OpenCode;opencode-gonameOpenCode Go.- The model picker groups workspace providers only when their name starts with the workspace prefix;
opencode-godoes not, so it gets a normal group header. - Secondary issue: after a transient
GET /api/experimental/usage/limits503 caused by DNS failure (getaddrinfo ENOTFOUND opencode.ai), the meter stayed hidden after the endpoint recovered; it only returned after an app restart. A retry on failure would help. - Related: #66849 (added the Go meter), #66829 (open draft for a dedicated Go settings page).
- Frequent: reproducible consistently for this workspace; the name override is the current workaround.
- Langage dominant
- TypeScript
- Étoiles
- 230k
- Forks
- 31.3k
- Merge moyen
- 6 h
- PR mergées (30 j)
- 528
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de anomalyco/opencode
-
[Bug]: Web UI: Pressing Ctrl+<key> with Caps Lock active triggers Ctrl+Shift+<key> shortcutsOuvertearea/web platform/windows type/bug version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
anomalyco/opencode#68237 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Sidebar widthOuvertearea/desktop triaging type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
anomalyco/opencode#68206 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area/desktop inference/go platform/macos type/bug version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
anomalyco/opencode#68121 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area/core platform/windows type/feature version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
anomalyco/opencode#68036 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area/web platform/android platform/windows type/feature version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
anomalyco/opencode#67835 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de anomalyco/opencode
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
tashfeenahmed/freellmapi#2305 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
prime-radiant-inc/evener#8335 ·
Les mainteneurs répondent en général sous 1 jour
-
Calendar: a range's preview stays on the last day pointed at after the pointer leaves the daysOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
vercel-labs/ui#1921 ·
Les mainteneurs répondent en général sous 1 jour
-
docs: a new board's default grant names development, Vercel's API seeds preview and productionOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
[Bug] Upgrade dompurify to 3.5.xOuverte
Difficulté 1/5 1-3 heures Accessibilité débutants 65/100
microsoft/monaco-editor#5626 ·
Les mainteneurs répondent en général sous 1 jour