Skip to content

适配单色小组件与 Codex 周窗口 - #1

Draft
charleshan7 wants to merge 1 commit into
mainfrom
agent/widget-monochrome-codex-weekly-window
Draft

适配单色小组件与 Codex 周窗口#1
charleshan7 wants to merge 1 commit into
mainfrom
agent/widget-monochrome-codex-weekly-window

Conversation

@charleshan7

Copy link
Copy Markdown
Owner

变更

  • 为 macOS 单色桌面小组件适配套餐标签、刷新图标与深浅进度条。
  • 将 Codex 左侧产品圆点保留在全部渲染模式。
  • limit_window_seconds 识别仅返回 7 天 primary_window 的 Codex 账户:映射到一周用量,并将 5 小时窗口归零。
  • 本地快照降级时不再使用临时 5 小时用量。

原因

macOS 单色渲染会使不透明胶囊和图标丢失内容;部分 Codex 实时响应只返回单个 7 天窗口,不能按字段名误显示为 5 小时。

验证

  • xcodebuild -scheme AIUsageWidget -configuration Release -derivedDataPath build/DerivedData build
  • python3 -m py_compile agent/usage-agent.py
  • 验证 7 天 primary 窗口映射为一周,5 小时为 0%。

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.

1 participant