Skip to content

Light the agents icon only when a plan's own window is nearly out - #20987

Merged
dhh merged 2 commits into
quattrofrom
agents-alarm-primary-window
Dec 1, 2026
Merged

dhh merged 2 commits into
quattrofrom
agents-alarm-primary-window

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

The agents bar icon turned red whenever any limit a collector reported reached 90%, including model-scoped allowances. Antigravity reports a "Claude/GPT Weekly" allowance next to its Session and Weekly windows. With that allowance spent, the icon stayed red while Gemini itself had 89% of its session and 40% of its week left.

A model-scoped allowance only stops prompts to that model, not the plan. The panel already draws one as a tick on the row whose clock it runs on, rather than as a row of its own. bindingWindow() now judges by those same rows (displayWindows()), so the icon lights only when a plan's own Session, Weekly or Monthly window is nearly out. A scoped allowance with no row to attach to is drawn as its own row, so it still counts. bindingWindow() has no caller other than the icon's alarming, so nothing else changes. Prepaid balances and spend caps alarm as before.

One case to look at: Kimi titles its limit_month_code allowance "Code Monthly", so it hangs under "Monthly total" and no longer lights the icon on its own. That matches how the panel already presents it, as the minor part. If Kimi Code's prompts are actually stopped by the code allowance rather than the total, the collector should give that limit a title of its own.

Checked by Opus 5.5 High as a second opinion. It found no correctness bugs, raised the Kimi case above, and caught the README line this updates. Its independence from this session isn't guaranteed.

🤖 Generated by Opus 5.5 in Claude Code. Reviewed by Opus 5.5 High.

dhh and others added 2 commits November 30, 2026 22:03
The bar icon judged room left by the fullest of every limit a collector reports, model-scoped allowances included. Antigravity reports a "Claude/GPT Weekly" allowance beside its Session and Weekly windows, and with that one spent the icon stayed red while the plan itself had 40% of its week left. A scoped allowance only stops prompts to that model, and the panel already draws it as a tick on the row it runs on, so the alarm now judges the same rows the panel shows. One with no row to attach to is still a row and still counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he icon

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

bindingWindow() now uses the panel’s rows to decide whether the agents icon turns urgent.

  • The agents icon alerts based on the fullest displayed limit row.

Reviews (2) · Last reviewed commit: "Say in the agents README that a model-sc..." · Reviewed by Greptile

@dhh
dhh merged commit a895a06 into quattro Dec 1, 2026
6 checks passed
@dhh
dhh deleted the agents-alarm-primary-window branch December 1, 2026 08:00
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Dec 1, 2026
…acom#20987)

* Light the agents icon only when a plan's own window is nearly out

The bar icon judged room left by the fullest of every limit a collector reports, model-scoped allowances included. Antigravity reports a "Claude/GPT Weekly" allowance beside its Session and Weekly windows, and with that one spent the icon stayed red while the plan itself had 40% of its week left. A scoped allowance only stops prompts to that model, and the panel already draws it as a tick on the row it runs on, so the alarm now judges the same rows the panel shows. One with no row to attach to is still a row and still counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Say in the agents README that a model-scoped allowance never lights the icon

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants