googledeveloper: unclaimed Ultra credit (null remaining amount) fails with "unrecognized response" instead of "Not applied"
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Read the googledeveloper provider source together with docs/googledeveloper.md, then follow the benefit-19 parsing path where the "Not applied" branch checks only offer[6] before money(billing[1]) reaches the array(null)/invalid() helpers. The failing state is [["USD",100], null, "", 5, 2], so the fix treats a null or missing billing[1] as unapplied alongside a null offer[6], and updates the misleading docs sentence about credits having no money fields. Done means a refresh on an unclaimed Ultra account shows Status: Not applied instead of "fetch failed". Note the linked pull request already covers this, so check it before starting.
索引モデルが issue の本文から書いたものです。
説明
Summary
The Google Developer Program provider shows "fetch failed" (parse failure, "Google Developer Program returned an unrecognized response") for a Google AI Ultra account whose monthly Gen AI & Cloud credit is granted but not yet claimed, because no Google Cloud billing account exists yet. The documented behavior for an unapplied credit is Status: Not applied, which is not an error.
Steps to reproduce
- Sign in to a Google AI Ultra account that has the $100 monthly Gen AI & Cloud credit but no Google Cloud billing account (https://me.developers.google.com/benefits shows "To activate and claim your credit, first set up a Google Cloud billing account" and "Billing account: No billing accounts available").
- Enable the Google Developer Program provider with automatic browser cookie import (or a manual cookie header).
- Refresh the provider.
Expected behavior
The menu card shows Status: Not applied with the pointer to me.developers.google.com/benefits, as documented in docs/googledeveloper.md.
Actual behavior
The refresh fails with a parse failure ("unrecognized response") and the menu shows "fetch failed".
Cause, from the response shape (values reduced to types, nothing account-specific): the benefit-19 offer array has a non-null offer[6], so the existing "Not applied" branch (which only checks offer[6] null or undefined) is skipped. That billing array is [["USD",100], null, "", 5, 2]: the granted amount is present, the remaining amount (billing[1]) is null, and the billing account (billing[2]) is an empty string. money(billing[1]) then calls array(null), which calls invalid() and throws. The cookies and the RPC are fine: the page GET and the Ro0AYc POST both succeeded before the throw.
The docs sentence "A credit that is not applied ... has no money fields" and the matching code comment are wrong for this state: the granted amount is present.
A fix is in the linked pull request: treat a null or missing billing[1] as unapplied, like a null offer[6].
Environment
- CodexBar 0.85.0, built from main at c94b855 on a fork
- macOS
- Google AI Ultra account with the monthly credit unclaimed (no Cloud billing account)
- Provider
googledeveloper, browser cookie session
Prior art
Searched steipete/CodexBar issues and PRs (open and closed) for: googledeveloper, Google Developer Program, Not applied, unrecognized response, billing account credit, Gen AI Cloud credit, Google AI Ultra, Cloud credits. Nearest threads, none covering this:
- #5033 (closed) Show Google Developer Program monthly Cloud credits from Google AI Pro and Ultra
- #5035 (merged) feat(providers): add Google Developer Program credits
- #5106 (closed, not merged) fix(googledeveloper): fall through signed-in profiles without Cloud credits (a different case: profiles with no credit at all)
- No open issue or PR for the googledeveloper provider.
Observation only: a bad shape on the first account stops the account walk through return invalid(), so authuser=1 and later are never tried.
- 主要言語
- Swift
- スター
- 23.3k
- フォーク
- 2.2k
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 231
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
steipete/CodexBar のほかの issue
-
clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:other issue-rating: 🦪 silver shellfish P2
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
steipete/CodexBar#5147 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:other issue-rating: 🦪 silver shellfish P2
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
steipete/CodexBar#5144 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Claude CLI source drops "Current week (all models)" when /usage redraws over earlier screen contentオープンclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
steipete/CodexBar#5143 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:needs-info clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:ux-friction issue-rating: 🦐 gold shrimp P2
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
steipete/CodexBar#5132 · コメント 5 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
issue-rating: 🌊 off-meta tidepool
難易度 1/5 1時間未満 初心者へのやさしさ 1/100
steipete/CodexBar#5131 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
steipete/CodexBar の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nwverse/persona#12800 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
ajithrnayak/xpunge#7 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DuarteSantos8/openGym#1469 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信