Repository navigation
Light the agents icon only when a plan's own window is nearly out - #20987
Merged
Merged
Conversation
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>
Contributor
[Low impact] The PR appears safe to merge; no actionable issues were found. Summary
Reviews (2) · Last reviewed commit: "Say in the agents README that a model-sc..." · Reviewed by Greptile |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'salarming, so nothing else changes. Prepaid balances and spend caps alarm as before.One case to look at: Kimi titles its
limit_month_codeallowance "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.