You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tower: let a human dashboard refresh clear a forge rate-limit suspension early #1648
#1645 made Tower suspend forge refreshes when the forge reports a rate limit, with a
doubling 60 s → 15 min backoff (or the forge's own reset instant when the probe can read
it). PR #1646 originally let OverviewCache.invalidate() clear that suspension, on the
theory that POST /api/overview/refresh means a human asked for fresh data.
It does not. That route is fired automatically by:
commands/porch/index.ts — after every mutating porch command
apps/vscode/src/review-queue/overview-nudge.ts — every review-queue mutation
agent-farm/commands/cleanup.ts
In a workspace with a dozen builders that fires constantly, so honouring it reset the
escalating backoff over and over — in exactly the busy workspace the fix exists for. The
clear was removed, which closed that hole but left a smaller gap: there is now no way to
end a wait early when GitHub has visibly recovered before the window expires.
What to build
A genuine human signal, which does exist and is distinguishable from the automated ones:
the dashboard's own refresh button (apps/web/src/hooks/useOverview.ts).
The dashboard refresh button sends an explicit flag — e.g. POST /api/overview/refresh?clearRateLimit=1.
porch, VSCode review-queue nudges and cleanup keep calling the route without it, and
must never gain it: their refreshes are not evidence of anything.
Only the flagged form calls clearForgeSuspension(). That function already exists and
is documented as having no product caller precisely so this can be wired up deliberately
(packages/codev/src/lib/forge-rate-limit.ts).
It adds an API parameter, an SDK argument and a web change to a PR that already ran five
review rounds, and the wait it removes is bounded at 15 minutes — or the forge's true
reset instant whenever the probe resolves it. Architect decision, 2026-09-08.
Follow-up to #1645. See also #1647 (collapse the four per-workspace overview calls into
one GraphQL query).
This issue's body says PR #1646 shipped part of the fix. It did not — #1646 was closed
unmerged on 2026-09-08 and the core is being rebuilt on a fresh branch (architect decision;
ten rounds of fix-on-fix, and one commit whose message described changes it did not contain).
So the behaviour this issue builds on does not exist yet. Read the body as describing the
design that #1645's rebuild will land, not the current state of main.
The specific invariants are captured as one-line testable statements in the rebuild's pitfall
list (/tmp/bugfix-1645-pitfalls.md, attached to the #1645 lane), including the ones this
issue depends on. Sequence this work after the rebuild lands.
Activity
waleedkadous commentedon Sep 8, 2026
Correction: #1646 was superseded, not merged
This issue's body says PR #1646 shipped part of the fix. It did not — #1646 was closed
unmerged on 2026-09-08 and the core is being rebuilt on a fresh branch (architect decision;
ten rounds of fix-on-fix, and one commit whose message described changes it did not contain).
So the behaviour this issue builds on does not exist yet. Read the body as describing the
design that #1645's rebuild will land, not the current state of
main.The specific invariants are captured as one-line testable statements in the rebuild's pitfall
list (
/tmp/bugfix-1645-pitfalls.md, attached to the #1645 lane), including the ones thisissue depends on. Sequence this work after the rebuild lands.