[Bug]: Antigravity hub accounts show raw auth filenames instead of email initials badges in Usage → Limits
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- backend
调研方向
从 apps/server/src/usage/cliproxyApi.ts 第 387-399 行附近开始,其中 antigravity hub reader 的 onSome 分支丢弃了 listedIdentity(account),因此丢失了 email。阅读 packages/shared/src/usageLimits.ts 中的 collectLimitAccounts 如何在 email 缺失时回退到 hubAccountName(account),并检查 PR #38097 中的 accountKeyResolver bridge 是否已经落地,因为修复依赖它。然后在 onSome 分支中返回 ...listedIdentity(account),并更新 apps/server/src/usage/cliproxyApi.test.ts:548 处的预期;完成意味着该测试通过,并且 Antigravity hub 账户在仍然针对本地登录去重的同时渲染首字母 badge。
由索引模型根据 Issue 内容生成。
描述
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server, packages/contracts or packages/shared
Steps to reproduce
- Configure a CLIProxyAPI-compatible usage hub (Settings → Providers → Usage providers → Add hub) that holds two or more Antigravity accounts alongside Claude or Codex accounts, where
GET /v0/management/auth-filesreturns"email"and"project_id"for every account (e.g.id: "[email protected]",email: "[email protected]",project_id: "..."). - Ensure Google's
https://www.googleapis.com/oauth2/v2/userinfocall succeeds throughPOST /v0/management/api-call(the normal authenticated case). - Open Usage → Limits.
Expected behavior
Antigravity hub accounts should render the same compact circular email-initials avatar badge (and show the toggleable account email in the hover popover) as Claude, Codex, and Grok hub accounts.
Actual behavior
Every Antigravity hub account bar renders the raw auth-file id (with .json stripped, e.g. [email protected]) as plain text with no circular initials avatar, and the hover popover has no avatar or account email row — even though GET /v0/management/auth-files provides email for those accounts.
Root cause
In apps/server/src/usage/cliproxyApi.ts (lines 387–399 on main @ f9b19a7f85), the antigravity hub reader drops ...listedIdentity(account) whenever userinfo succeeds (onSome):
// Local Antigravity reports no e-mail, so the Google account fingerprint is what pools the two.
const fingerprint = yield* call("https://www.googleapis.com/oauth2/v2/userinfo").pipe(
Effect.flatMap(decodeJson),
Effect.flatMap(antigravityAccountFingerprint),
Effect.option,
);
const usageLimits = makeUsageLimits({ checkedAt, windows });
return Option.match(fingerprint, {
onNone: () => ({ ...listedIdentity(account), usageLimits }),
onSome: (credentialFingerprint) => ({
usageLimits: { ...usageLimits, credentialFingerprint },
}),
});
Because email is omitted on onSome:
collectLimitAccounts(packages/shared/src/usageLimits.ts:430-431) falls back todisplayName: account.email ? null : hubAccountName(account)(account.id.replace(/\.json$/i, "")) withemail: undefined.- The
UsageLimitsbar label renderer prefersdisplayNameoveremail, so it prints the raw filename string instead of the circular initials badge.
Note on #38097: Open PR #38097 bridges driver:credential:<fingerprint> to driver:<email> in accountKeyResolver (packages/shared/src/usageLimits.ts) so local Antigravity instances with auth.email pool with hub accounts, but explicitly leaves cliproxyApi.ts unchanged (onSome still drops email). As a result, hub-only Antigravity accounts will still display raw auth filenames instead of email initials badges even after #38097 merges.
Suggested fix
Once accountKeyResolver bridges driver:credential:<fingerprint> ↔ driver:<email> when a report carries both (as in #38097), HUB_PROVIDERS.get("antigravity") in apps/server/src/usage/cliproxyApi.ts can return ...listedIdentity(account) in the onSome branch as well (and update apps/server/src/usage/cliproxyApi.test.ts:548). Hub Antigravity accounts will then keep email for initials badges and hover popovers while still deduplicating cleanly against local Antigravity logins that only report credentialFingerprint.
Impact
Minor bug or occasional failure
Version or commit
T3 Code 0.1.11 (main @ f9b19a7f85)
Environment
Windows / macOS desktop (T3 Code 0.1.11), CLIProxyAPI-compatible usage limit hub (t3code-proxy)
Workaround
None clean. Renaming auth files on the hub only shortens the raw plain-text filename shown in the bar; it does not restore the circular initials badge or popover email.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 2 小时 18 分钟
- 30 天内合并 PR
- 448
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
[Bug]: Gitea/Forgejo mergeable:false maps to unknown, so PR watch never reports merge conflicts可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
[Bug]: Link dialog copy uses "here"/"there" instead of host names, so the access direction is ambiguous可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
相似的 Issue
-
[Docs] CONTRIBUTING points the Backend Remake milestone at a branch that does not exist可能已有人在做 @franpts2 今天认领。 未关闭docs
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
ever-co/ever-teams#5741 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
melgarafael/DeskcommCRM#5142 ·
维护者通常 1 天内回复
-
bug size:medium
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复