Subagent token usage is priced at the chat model's rate
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 58/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start by reading chat_manager.ts around recordUsage, session.ts lines 144–165, and the cost calculations in app.ts line 453 and chat_store.ts line 179. Trace how subagent models and usage reach those entry points, then extend task.test.ts to verify usage is associated with the model that produced it. Done when costs are calculated using each model's rates rather than the chat model's rates.
索引モデルが issue の本文から書いたものです。
説明
Found in the 2026-10-07 code review (traced through the code; not run).
Problem
finder always runs on SMALL_MODELS[provider], and task/oracle may run on other models. Their usage is added to the chat's single UsageTotals (chat_manager.ts recordUsage, session.ts:144-165). Then estimateCost(chat.model, usage) (app.ts:453, chat_store.ts:179) prices everything at the chat model's rates.
Impact
On an Opus 5.5 chat, Haiku finder tokens are billed at Opus prices (4× too high). On GPT-6 Astra a Luna finder is about 100× too high, including the long-context rate. The status bar and history list overstate spending.
Fix
Keep usage per model (for example UsageTotals.byModel: Record<string, UsageTotals>) and sum estimateCost over the models, or convert subagent usage to dollars when it is recorded. Pass the subagent's conversation.model to recordUsage. Extend task.test.ts to check the model the usage belongs to.
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PierrunoYT/patch のほかの issue
-
tests
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
PierrunoYT/patch#393 · コメント 1 件 ·
-
ci: macOS hardened-runtime smoke step fails because the re-signed app's helpers cannot connect (#28)オープンbug platform: macos tests
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
PierrunoYT/patch#392 · コメント 1 件 ·
-
blocked platform: windows
難易度 4/5 1〜2日 初心者へのやさしさ 52/100
PierrunoYT/patch#329 · コメント 3 件 ·
-
performance priority: low severity: low
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
PierrunoYT/patch#324 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 36/100
PierrunoYT/patch#272 · コメント 1 件 ·
PierrunoYT/patch の issue をすべて見る
似ている issue
-
fix(worker): keep normal prepare waiting states failure-free対応中かも @LichKing-2234 が今日担当しました。 オープンagent:codex priority:P1
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AgoraIO-Extensions/agent-infra#3745 ·
メンテナーはふだん 1 日以内に返信
-
The five-line work window can drop its oldest line: the per-line byte share ignores the JSON framing対応中かも @Eapp1e が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
makecindy/cindy#7973 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
lingdojo/kana-dojo#33337 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
code-yeongyu/senpi#4917 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信