auth status JSON reports a quota service failure as a rejected credential
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 47/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- bun, typescript
調査の方向性
Start at the auth status command in src/main.ts and trace how quota lookup errors and region detection affect JSON output, exit codes, and stderr. Reproduce the supplied cases with the Bun preload fetch stub, comparing HTTP 503 with HTTP 401 and the invalid key code 2049. Done when a quota outage is distinguishable from rejected credentials for a known region and the unknown region behavior is clarified.
索引モデルが issue の本文から書いたものです。
説明
Reproduction
Tested against main at ae29aae57b05c2140c7ea6aba0a852763ffe7859.
From the repository root after installing its Bun dependencies, run the CLI
with an empty configuration directory, a synthetic key, and a fetch stub.
The stub makes no network requests.
config_dir=$(mktemp -d)
cat > "$config_dir/mock-usage.ts" <<'TS'
globalThis.fetch = async () => new Response(null, { status: 503 });
TS
MMX_CONFIG_DIR="$config_dir" CI=1 bun --preload "$config_dir/mock-usage.ts" \
src/main.ts auth status --output json --non-interactive \
--api-key test-api-key --region global
Actual behavior
The CLI exits with code 0 and reports authenticated: false with
Not authenticated. and a login hint. An explicit HTTP 401 and an HTTP 200
with the invalid-key code 2049 produce the same result. A successful usage
response produces the usual credential source, masked key, and usage record.
Omitting --region global sends the same simulated 503 through automatic
region detection. That path exits with code 1, leaves stdout empty, and
reports an inconclusive region on stderr.
Expected behavior
A quota service outage should be distinguishable from an explicit credential
rejection in machine-readable output. Should the CLI report an unavailable
quota lookup in the status JSON when the region is known? Should automatic
region detection keep its current stderr and exit-code behavior when the
region is unknown?
- 主要言語
- TypeScript
- スター
- 2.2k
- フォーク
- 200
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MiniMax-AI/cli のほかの issue
-
[Bug] 未登录时 mmx help 被认证检查拦截,无法查看公开文档链接再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
MiniMax-AI/cli#259 · コメント 1 件 ·
-
[Bug] --no-color 未去除请求状态栏的 ANSI 颜色再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
MiniMax-AI/cli#258 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 34/100
MiniMax-AI/cli#312 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
MiniMax-AI/cli#287 ·
-
[Bug] 输入框默认提示文字(placeholder)未被清除,与实际输入内容重叠显示対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 63/100
MiniMax-AI/cli#278 ·
似ている issue
-
area:api bug good first issue priority:high
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Doezer/Questarr#1486 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:import difficulty:good-first good first issue help wanted priority:P1 roadmap size:S type:test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Sergey-Bar/Penny#245 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mihazs/lazysh#3377 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Approve the Cloudflare agent plugin for harness sessions対応中かも @joshtsch が今日担当しました。 オープンenhancement ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信