Paid Task runs rejected with insufficient_credits although the usage page shows 20,000,000 available quota

オープン
#36 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@akumatus がすでに取り組んでいます。

2026年11月24日 から。

  • #37 @akumatus による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
elixir, go, ios
領域
backend, payments

調査の方向性

Two paths must be reconciled: whatever balance the 用量 page reads, and the entitlement check that refuses the worker's first model request with insufficient_credits. The payload names no files, so start by grepping the Elixir backend for insufficient_credits and for the new-user credit grant, then reproduce the given sequence (0 quota → top up to a positive balance → start a paid Task) while logging both reads. Done is when the two agree, or the client stops showing an unusable balance as available.

索引モデルが issue の本文から書いたものです。

説明

Product / component: Comma — Task workers and usage quota (Task runs blocked with insufficient_credits)

Client surface: Comma iOS app, 用量 (usage) page

Version: unknown (not captured)

What happened
  1. The workspace usage page showed 可用额度 0 with the warning 额度已用完。补充额度后才能启动付费任务。, and 当前套餐 said 暂无有效订阅. Task runs were refused with insufficient_credits, as expected at that point.
  2. Later the same page showed 可用额度 20,000,000 (额度明细: 新用户额度 20,000,000), while 当前套餐 still said 暂无有效订阅.
  3. Reopening an ended Loop Task so its worker would start again still failed within roughly a minute with the same insufficient_credits refusal — twice, on separate attempts.
Expected

When the client shows a positive available quota, paid Task runs start. If that balance cannot be used for some reason, the app should say so instead of displaying it as available.

Frequency

4 of 4 attempts between about 07:30 and 07:45 Taipei time on 2026-11-24.

Steps to reproduce (synthetic data)
  1. In a workspace with 0 quota, start a paid Task and observe insufficient_credits.
  2. Add quota until the 用量 page shows a positive available balance.
  3. Start any paid Task again and watch the worker's first model request: it is refused with insufficient_credits even though the client shows the balance.
Notes

Chat and non-Task tools kept working during the same period; only worker model requests were refused. This looks like a quota/billing sync gap between the client-visible balance and the entitlement used to authorize worker requests.

Report body retained for 90 days from submission.

主要言語
Elixir
スター
740
フォーク
61
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AFK-surf/Comma のほかの issue

AFK-surf/Comma の issue をすべて見る

似ている issue

Elixir の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。