Skip to content

[Bug]: Every new Antigravity thread re-spawns agy and re-authenticates, adding 2-6 s before the first prompt #44262

Backlog

Description

@brunomartinsmv

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Server, Antigravity provider

Steps to reproduce

  1. Sign in to the Antigravity provider.
  2. Start a new thread (or a delegate_task child) with gemini-4-neon and the prompt "Reply with OK. Do not use tools."
  3. Start a new Claude thread with the same prompt.
  4. Compare the provider event logs in userdata/logs/provider/events.<thread>.log.

Expected behavior

A new Antigravity thread reaches session/prompt in about the same time as a new Claude thread, or at least without repeating the full sign-in for every thread.

Actual behavior

Every new Antigravity thread spends 1.6 to 5.7 s before session/prompt starts, because T3 spawns a fresh agy acp process per thread and runs initialize + authenticate + session/new each time. authenticate alone takes 1.1 to 2.5 s on every thread, even when another Antigravity thread signed in seconds earlier. initialize takes ~0.2 s when the binary is warm and ~2 s when it is cold.

Measured on one machine, same prompt, new threads:

Provider / model Start to session/prompt Whole turn
Claude Opus 5.5 (medium) ~0.2 s 1.5 s
Antigravity Gemini 4 Neon (low) 1.9 s 5.8 s
Antigravity Gemini 4 Neon (high) 2.1 s 7.2 s

Across 10 earlier Antigravity threads: initialize 0.2–2.3 s, authenticate 1.1–2.5 s, start to session/prompt 2.2–5.7 s.

Impact

Minor bug or occasional failure

New Antigravity threads feel noticeably slower to start than other providers, which pushes quick questions to other providers.

Version or commit

T3 Code Nightly 0.1.14-nightly.20261127.5332

Environment

Linux x86_64, desktop app (Electron 44). Also observed on macOS. Provider: Antigravity, model gemini-4-neon.

Logs or stack traces

0.00 request initialize started
0.16 request initialize succeeded
0.16 request authenticate started
1.74 request authenticate succeeded
1.74 request session/new started
2.03 request session/new succeeded
2.08 request session/prompt started
6.93 request session/prompt succeeded

Cold process example:

0.00 initialize started
2.19 initialize succeeded
2.19 authenticate started
4.71 authenticate succeeded
4.97 session/new succeeded
5.12 session/prompt started

Workaround

None in settings. Picking a lower thought_level shortens the model part of the turn but not the startup.

Possible directions: reuse one agy acp process (or a warm pool) across threads, or cache the authenticated state so authenticate is not repeated per process. #43012 notes the one-process-per-thread design and its shared --app-data-dir, so a shared process may also help there.

Activity

  1. leoprodz commented on Dec 1, 2026

    @leoprodz

    Same pattern on Devin (acpRegistry driver), possibly worse.

    T3 launches Devin with --process-model in-process (see #38333), so every thread spawns a fresh devin acp process and no shared daemon can ever be warm. devin daemon status on my machine reports "no daemon running" while several Devin threads exist, confirming each session pays the full cold start.

    Measured on my events log (events.<threadId>.log):

    • initialize: ~0.8s
    • session/new: ~0.6s
    • plus whatever the CLI does before initialize is even visible (auth check, workspace trust, config, MCP/skills load), which the native devin TUI does once and keeps warm.

    Compared to the native devin CLI, new T3 threads feel noticeably slower to first token, same as described here for Antigravity. A warm-pool or session-reuse option per provider instance (even opt-in) would fix this across ACP drivers, not just agy.

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