desktop: Go usage meter missing when the opencode group has only free models
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
workspace プロバイダーをグループ化し、グループ見出しを表示するモデルピッカーのコードから始めてください。issue では、workspace 名のプレフィックス判定と、見出しの workspace: "lead" 条件が示されています。opencode に有料モデルがない場合に opencode-go がどのように分類されるかを追い、そのケースについてピッカーのテストを確認するか、テストを追加してください。無料の opencode モデルだけがある状態で Go アカウントの見出しと使用量メーターが表示されれば完了です。報告された再試行の動作は別の follow-up です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 230k
- フォーク
- 31.3k
- 平均マージ
- 6時間
- マージ済み PR(30日)
- 528
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
area/web platform/windows type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
anomalyco/opencode#68237 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Sidebar widthオープンarea/desktop triaging type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
anomalyco/opencode#68206 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/desktop inference/go platform/macos type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#68121 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/core platform/windows type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
anomalyco/opencode#68036 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/web platform/android platform/windows type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
anomalyco/opencode#67835 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Chocobozzz/PeerTube#7901 ·
メンテナーはふだん 3 日以内に返信
-
area:tools bug has repro
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
anthropics/claude-code#113984 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ehmpathy/declapract-typescript-ehmpathy#960 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
laststance/design-world#34 ·
メンテナーはふだん 1 日以内に返信