[Feature]: Make ACP promptInactivityTimeout (hardcoded 15 minutes for Antigravity) configurable #48293
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):
- During the reasoning phase, Antigravity streams thinking summaries every ~7 seconds, keeping the watchdog reset.
- Once reasoning finishes and the model begins generating a large tool-call argument (e.g., a 50+ KB
write_filepayload totaling 60K–75K output tokens), Antigravity ACP emits no incremental events until the entire tool call finishes generating. - Because the tool call has not been dispatched yet (
context.toolshas norunningtool yet),promptInactivityPausedreturnsfalse. - If generating the tool call takes longer than 15 minutes,
AcpAdapterV2.retireInactivePromptfires (orchestration-v2.acp-prompt-inactive), aborts the turn with:
and discards all generated tokens from that step.Antigravity sent nothing for 15 minutes, so T3 Code stopped the turn and restarted the agent. Send a message to continue.
Real-World Data#
In a 461-step Antigravity (gemini-4-carbon-high) session with ~466K cached context tokens:
- 11 legitimate
write_filesteps (40K–91K output tokens) took 8.2–10.6 minutes of silent tool-call generation before succeeding. - One 65K-output-token
write_filestep crossed the 15-minute silent threshold and was killed byretireInactivePrompt(timeoutMillis: 900000).
Proposed Solution#
- Make
promptInactivityTimeoutconfigurable (e.g., in Settings /settings.jsonper-provider or globally for ACP providers, and/or via an environment variable), while keeping15 minutesas the default. - Allow users running slower models or large-output workflows to set a longer threshold (e.g.,
30 minutes,60 minutes, or disable/0). - (Nice to have) If ACP / Antigravity exposes streaming tool-call deltas or heartbeat signals, count them toward
notePromptProgressso 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)
tanstack-source added labelsfeature
juliusmarminge closed this
Sign in to join this conversation.
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.