Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Feature]: Make ACP promptInactivityTimeout (hardcoded 15 minutes for Antigravity) configurable #48293

Closedjiangdongzi(GitHub profile, opens in a new tab) opened this issue 1 comment

Problem

In T3 Code (0.1.14-nightly.20261203.5637), the Antigravity ACP adapter hardcodes promptInactivityTimeout: "15 minutes" (900000 ms) with no UI setting, settings.json option, CLI flag, or environment variable to override it.

While AcpAdapterV2.promptInactivityPaused properly pauses the watchdog during active tool execution (pending/running/waiting), subagents, and user requests, there is a major gap when using slower high-reasoning models (e.g., gemini-4-carbon-high) on large-context sessions (~450K+ tokens):

  1. During the reasoning phase, Antigravity streams thinking summaries every ~7 seconds, keeping the watchdog reset.
  2. Once reasoning finishes and the model begins generating a large tool-call argument (e.g., a 50+ KB write_file payload totaling 60K–75K output tokens), Antigravity ACP emits no incremental events until the entire tool call finishes generating.
  3. Because the tool call has not been dispatched yet (context.tools has no running tool yet), promptInactivityPaused returns false.
  4. If generating the tool call takes longer than 15 minutes, AcpAdapterV2.retireInactivePrompt fires (orchestration-v2.acp-prompt-inactive), aborts the turn with:

    Antigravity sent nothing for 15 minutes, so T3 Code stopped the turn and restarted the agent. Send a message to continue.

    and discards all generated tokens from that step.

Real-World Data

In a 461-step Antigravity (gemini-4-carbon-high) session with ~466K cached context tokens:

  • 11 legitimate write_file steps (40K–91K output tokens) took 8.2–10.6 minutes of silent tool-call generation before succeeding.
  • One 65K-output-token write_file step crossed the 15-minute silent threshold and was killed by retireInactivePrompt (timeoutMillis: 900000).

Proposed Solution

  1. Make promptInactivityTimeout configurable (e.g., in Settings / settings.json per-provider or globally for ACP providers, and/or via an environment variable), while keeping 15 minutes as the default.
  2. Allow users running slower models or large-output workflows to set a longer threshold (e.g., 30 minutes, 60 minutes, or disable/0).
  3. (Nice to have) If ACP / Antigravity exposes streaming tool-call deltas or heartbeat signals, count them toward notePromptProgress so slow-but-active generation is distinguished from a genuinely hung stream.

Environment

  • T3 Code version: 0.1.14-nightly.20261203.5637
  • OS: Linux
  • Provider / Model: Antigravity (gemini-4-carbon / high)
  1. tanstack-source added labelsfeature

  2. Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

  3. juliusmarminge closed this

Sign in to join this conversation.