Skip to content

fix(accounts): keep Gemini usage bars visible during refetch - #8740

Open
r266-tech wants to merge 1 commit into
Wei-Shaw:mainfrom
r266-tech:codex/gemini-usage-refetch
Open

r266-tech wants to merge 1 commit into
Wei-Shaw:mainfrom
r266-tech:codex/gemini-usage-refetch

Conversation

@r266-tech

Copy link
Copy Markdown
Contributor

Fixes #8720

Gemini 用量刷新时,组件保留了旧 usageInfo,但模板会立即把已有用量条替换成更短的骨架屏,造成表格行跳动。骨架屏现在只在 loading && !usageInfo 时显示;已有用量条在刷新期间继续展示,取得新数据后更新,与现有 Claude 分支的条件一致。

验证:pnpm 9.15.9 冻结锁文件安装;现有 AccountUsageCell.spec.ts 64 项通过;CI 的 make test-frontend 通过全仓 ESLint、TypeScript 和 30 文件/586 项 critical Vitest;git diff --check 通过。仅一行模板条件改动。

项目当前的 Go 安全基线升级由 #8670 单独处理。实现与验证由 AI agent 完成,未调用真实 Gemini。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] AccountUsageCell: Gemini usage bars turn into a skeleton on every refetch

1 participant