Repository navigation
fix(server): Antigravity quota failures keep the 'Resets in' reset time - #42339
Conversation
Repro for #42325: fails on main because resetAtFrom ignores 'Resets in <duration>.' Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Antigravity 1.5 can state a quota reset only as 'Resets in <Go duration>.' in the error message, which resetAtFrom did not read, so the usage_limit failure had no resetAt. Fall back to that duration after quotaResetDelay and retryDelay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
**v0.1.12-nightly.20261124.5209** · 23 changes from 11 contributors - **T3 Connect sign-in alerts.** Get notified when a new T3 Connect device signs in. - **Antigravity quota recovery.** Threads can resume or snooze automatically when Antigravity reports a quota reset time in its error message. - **Theme editor changes.** Canceling an input method candidate with Escape no longer closes the editor and discards unsaved changes. ### Plus 19 more bug fixes. <details> <summary>Full changelog</summary> ## What's Changed * fix(web): Voice Models language menu resets its search filter on close by @only21mil in pingdotgg/t3code#42321 * feat(connect): tell people when a new T3 Connect device signs in by @juliusmarminge in pingdotgg/t3code#42311 * fix(web): new-commits banner on a PR spans the full header width by @juliusmarminge in pingdotgg/t3code#42342 * fix(web): opening a resolved PR comment keeps its toggle under the cursor by @ipanasenko in pingdotgg/t3code#42312 * fix(web): large SVG project icons come back after their link expires by @smirea in pingdotgg/t3code#42329 * fix(server): Antigravity quota failures keep the 'Resets in' reset time by @juliusmarminge in pingdotgg/t3code#42339 * fix(server): file listing keeps gitignore status when a filename looks like a git pathspec by @only21mil in pingdotgg/t3code#42333 * fix(bitbucket): checkouts cloned from ssh.bitbucket.org match their pull requests by @adrhumphreys-atlas in pingdotgg/t3code#42330 * fix(client): a tab-indented fence line in a PR description code block no longer swaps which video plays by @Marve10s in pingdotgg/t3code#42331 * fix(web): script command field shows both hyphens with ligature fonts by @Mnigos in pingdotgg/t3code#42352 * fix(server): honor sort: "created" when merging IssueService.list entries by @AymanKhan9 in pingdotgg/t3code#42350 * fix(server): a terminal commit refreshes cached Changes totals by @juliusmarminge in pingdotgg/t3code#42365 * fix(web): an IME Escape no longer closes the theme editor or ends inspection by @omaribrahim6 in pingdotgg/t3code#42332 * fix(web): Esc in a font family field closes Settings when no edit is pending by @only21mil in pingdotgg/t3code#42361 * fix(relay): traces no longer record callers' IP addresses or user agents by @juliusmarminge in pingdotgg/t3code#42380 * fix(server): source control discovery no longer runs the auth command of a CLI that is not installed by @juliusmarminge in pingdotgg/t3code#42379 * fix(web): sidebar issue and pull request badges share one component by @Bil0000 in pingdotgg/t3code#42275 * feat(relay): delete a user's relay data when Clerk deletes the user by @juliusmarminge in pingdotgg/t3code#42285 * fix(web): Esc in Theme Editor color filter clears the filter without closing the editor by @juliusmarminge in pingdotgg/t3code#42395 * fix(mobile): analytics uses its own random device id by @juliusmarminge in pingdotgg/t3code#42394 * fix(desktop): Windows desktop applies the saved user telemetry opt-out by @juliusmarminge in pingdotgg/t3code#42376 * fix(web): Enter commits Background Activity interval values by @only21mil in pingdotgg/t3code#42392 * fix(server): analytics no longer reads or sends Codex and Claude account IDs by @gabrielelpidio in pingdotgg/t3code#42299 ## New Contributors * @adrhumphreys-atlas made their first contribution in pingdotgg/t3code#42330 **Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261124.5204...v0.1.12-nightly.20261124.5209 </details> Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.12-nightly.20261124.5209
When Antigravity stopped a turn with a quota error whose reset time appeared only in the message ('Resets in 4m42s.'), T3 Code saved the usage-limit failure without a reset time. The thread then showed 'Reset time unavailable' and was never resumed or snoozed automatically. The failure now takes its reset time from that duration when the error has no structured reset fields.
Fixes #42325
Reproduction on main
Commit ddaba13 (origin/main). Ran the server from a fresh worktree with T3CODE_DEV_SEED=0, a fresh --base-dir, GOOGLE_GEMINI_BASE_URL pointed at a local fake endpoint, and the Antigravity instance set to the 'Gemini API key' sign-in method with a dummy key. The endpoint answers every streamGenerateContent with HTTP 429 and {error:{code:429,status:RESOURCE_EXHAUSTED,message:'Individual quota reached. Please upgrade your subscription to increase your limits. Resets in 4m42s.',details:[ErrorInfo reason QUOTA_EXHAUSTED]}}, with no quotaResetDelay, quotaResetTimeStamp or RetryInfo. Ran
t3 thread start --provider antigravity --model gemini-4-neon --wait --json . 'Say hi'. The real agy 1.5.16 called the fake endpoint and wrote step_type 17 'Error 429, Message: Individual quota reached. ... Resets in 4m42s., Status: RESOURCE_EXHAUSTED, Details: [...]'. The run endedfailedand the saved failure was {class:'usage_limit', message:'You have reached your Antigravity quota for this period.', code:'RESOURCE_EXHAUSTED', retryable:true}, with no resetAt, so usage-limit auto-resume and snooze have nothing to schedule. Also added a failing assertion in apps/server/src/provider/acp/AntigravityTurnOutcome.test.ts: a 1.5 'RESOURCE_EXHAUSTED (code 429): ... Resets in 4m42s.' error step should give resetAt 1970-01-01T00:04:42.000Z.vp test run src/provider/acp/AntigravityTurnOutcome.test.tsfails on main with no resetAt property. Not reproduced: the reporter's secondary point about a background_task run masking the failure (see #40229).Evidence
Run the real server and agy 1.5.16 on Linux with separate fresh databases, Gemini API key mode, and the same synthetic HTTP 429 endpoint returning
Resets in 4m42s.without structured reset metadata. Start a Gemini 4 Neon thread withSay hi, then inspect the saved terminal failure.resetAt.resetAt, 281.962 seconds after failure completion.Reproduction driver — accepts base checkout, head checkout, and output directory as arguments.
Not shown:
Tests
vp test run src/provider/acp/AntigravityTurnOutcome.test.ts(apps/server): 2 passed; the 'Resets in 4m42s.' assertion failed before the fixvp run check:changed: fmt, lint, knip, graphql, typecheck and tests all passedNot in this change
Who did the work
Run by the t3code factory in T3 Code.