cli: opencode stats reports no tool calls when all calls are still running
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- bun, typescript
- 領域
- cli
調査の方向性
まず opencode stats のデフォルトカードの処理を追い、詳細ビューおよび JSON ビューと呼び出しの数え方を比較します。ペイロードにはソースファイルやテストの指定はありません。未完了のツール呼び出しを1件だけ使って再現し、カードに呼び出しが1件と表示される一方で、成功率は利用不可のままであることを確認します。その後、呼び出し前は引き続き呼び出しなしと表示され、完了後は成功率が100.0%と表示されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Description
When the only tool call in the selected range is still running, the default opencode stats card says no tool calls. The detailed and JSON views correctly count that call. A success rate is not available yet, but that is different from zero calls.
Steps to reproduce
- Use a fresh project that has a single pending tool call, for example a question waiting for a reply, and no completed or failed calls in the range.
- Before the call finishes, compare
opencode stats --project . --days 1, the same command with--tools, and with--json. - The card says
no tool calls; the detail view says0 finished calls · 1 unfinished; JSON reportscalls: 1andunfinished: 1.
Verified with the production Core projector and stats collector in an in-memory database. A loopback fixture replayed their outputs to the unmodified CLI, which printed the same discrepancy in 3/3 runs. Controls: before the call the card correctly reported no calls; after successful completion it reported 100.0% tool success. No live provider or user database was involved.
OpenCode version
V2 dev at 22377659a8ed223f3eebc86660dd1a5bc2b33ca5 (2.3.0).
Operating System
Windows 11 x64, Bun 1.4.4.
Terminal
CLI subprocess with captured stdout; no TUI or third-party plugins.
- 主要言語
- TypeScript
- スター
- 227k
- フォーク
- 30.7k
- 平均マージ
- 4時間 35分
- マージ済み PR(30日)
- 498
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
area/desktop platform/windows type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
anomalyco/opencode#64566 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Opening mini-tabsオープンarea/desktop platform/windows status/repro-plausible type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
anomalyco/opencode#64522 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
opencode-native panics on session ID after a multibyte character対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea/tui platform/macos status/repro-plausible type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
anomalyco/opencode#64389 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
cli: plugin list shows - for ID of TUI-only plugins configured in cli.json対応中かも @yash-alla が 1 日前に担当しました。 オープンarea/cli platform/windows type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#64175 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/desktop platform/windows type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#64077 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
ai-driven-qa bug claude Cosmetic
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Domain / chatbot New
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Inist-CNRS/lodex#3861 ·
メンテナーはふだん 1 日以内に返信
-
area:agent-sdk area:docs documentation enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
anthropics/claude-code#110914 ·
-
approved check:passed streams:remove
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信