Skip to content

[Bug]: AntigravityTurnOutcome.resetAtFrom misses 'Resets in <dur>.' so failure.resetAt is null #42325

Done

Description

@Luzivog

Environment

  • T3 Code: 0.1.12-nightly.20261122.5111 (Linux)
  • Provider: antigravity (agy 1.5.14 ACP)

Problem

When agy acp hits a 5-hour quota limit, its error message reports the reset duration in the form:

... Resets in 4m42s.

In src/provider/acp/AntigravityTurnOutcome.ts, resetAtFrom(text, now) only checks RESET_TIMESTAMP (quotaResetTimeStamp:), RESET_DELAY (quotaResetDelay:), and RETRY_DELAY (retryDelay:). It does not match Resets in <go-duration> (such as Resets in 4m42s., Resets in 1h2m., Resets in 30s.).

As a result:

  1. failure.class is classified as usage_limit, but failure.resetAt is null.
  2. autoResumeLimitedThreads and snoozeLimitedThreads never trigger for Antigravity rate limits that use this message format.

Expected behavior

Match /\bResets\s+in\s+((?:\d+(?:\.\d+)?(?:ms|s|m|h)\s*)+)/i (or equivalent Go duration extraction) inside resetAtFrom() and populate failure.resetAt from now + delayMs.

Related secondary observation

When a thread fails with usage_limit and a subsequent background_task completion run executes with zero assistant output, the thread's latest run becomes completed, masking the preceding usage_limit failure from recovery logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions