Skip to content

Antigravity thread fails with "sign-in or sign-out is in progress" after the Antigravity provider instance reloads, until the server restarts #42454

Duplicate

Description

@sebstrgg-agent

What happened

After the Antigravity provider instance's settings changed (an environment variable was added to providerInstances.antigravity in the server settings), an Antigravity thread that already had a provider session could no longer start a turn. Every message failed at once with:

Antigravity sign-in or sign-out is in progress. Try again after it finishes.

No sign-in or sign-out was running. The thread stayed broken until the T3 Code server restarted.

Diagnosis

The settings change reloaded the Antigravity instance: ProviderInstanceRegistry.buildEntry and AntigravityDriver.create at 22:52:44, then ProviderInstanceRegistry.reloadWhere at 22:54:18 (local time). Closing the old instance's scope runs the makeAntigravityAuth finalizer, which sets operation = "closed" and never resets it (apps/server/src/provider/AntigravityAuth.ts:693-706). After that, withProcess on that auth object refuses every process with the message above, because it only allows operation === "idle" (AntigravityAuth.ts:237-241).

The thread's provider session from before the reload was still registered. ProviderSessionManager.open returns an existing session as it is (apps/server/src/orchestration-v2/ProviderSessionManager.ts:3259-3277), so the thread kept using the runtime and adapter built with the old instance's authFlow.withProcess (apps/server/src/provider/Drivers/AntigravityDriver.ts:621-626). Each later turn reached AntigravityAdapterV2.makeRuntime through that closed auth object and failed: 11 failures between 22:54:01 and 22:57:43, through AcpAdapterV2.startTurn and then AcpAdapterV2.ensureThread/resumeThread. ProviderAdapterRegistryV2.get itself resolves the new instance, so only sessions opened before the reload are affected.

The server restarted at 23:01:21. The next message at 23:02:09 initialized, authenticated and resumed the same Antigravity session normally.

Four other machines (Linux, same nightly) applied the same settings change and their Antigravity instances reloaded too, but none logged this error. I could not establish which session state the affected thread needed: its turn was running when the reload happened, and the next message came from the user about a minute later.

Line references are from tag v0.1.12-nightly.20261124.5209 (84e4264). No commit on main since then touches these files.

Steps to reproduce

Seen once, on one thread. I did not run it again on purpose, because each reload also interrupts running Antigravity turns.

  1. Have an Antigravity thread with a provider session (send it a message so that a turn runs).
  2. While the server runs, change that Antigravity provider instance's settings so that the instance reloads (here: add an entry to providerInstances.antigravity.environment in settings.json).
  3. Send another message in the same thread.
  4. The turn fails at once with "Antigravity sign-in or sign-out is in progress. Try again after it finishes." Each further message fails the same way until the server restarts.

Version

0.1.12-nightly.20261124.5209

Environment

macOS 27.0.1 (arm64), T3 Code Nightly desktop app running its local server (Electron 44.10.1, Node 24.22.1), agy 1.5.16, gemini-4-neon, full-access

Evidence

# server.trace.ndjson, local time (CET)
22:52:44 ProviderInstanceRegistry.buildEntry / AntigravityDriver.create   Success
22:54:01 AntigravityAdapterV2.makeRuntime   Failure  ProviderSetupError (startProcess): Antigravity sign-in or sign-out is in progress. Try again after it finishes.
22:54:01 AcpAdapterV2.startTurn             Failure  ProviderAdapterTurnStartError: Failed to start run run:thread:<thread>:ordinal:28 on antigravity provider thread provider-thread:provider:antigravity:native-thread:pending%3Arun%3Athread%3A<thread>%3Aordinal%3A1.
22:54:18 ProviderInstanceRegistry.reloadWhere Success
22:57:42 AcpAdapterV2.resumeThread          Failure  ProviderAdapterResumeThreadError: Failed to resume antigravity provider thread ...
22:57:42 AcpAdapterV2.ensureThread          Failure  ProviderAdapterEnsureThreadError: Failed to ensure antigravity provider thread for app thread <thread>.
          (AntigravityAdapterV2.makeRuntime failed 11 times with the same message, 22:54:01-22:57:43)
23:01:21 server.startup.settings.start      Success
# provider event log, the next message after the restart:
23:02:09 initialize succeeded; authenticate succeeded; session/resume succeeded; session/prompt started

Related issues

Searched for "sign-in or sign-out is in progress" and for provider reload and settings-change terms. #9624 and #36509 match the search text but not this failure: #9624 is about the browser not opening for sign-in, and #36509 about turns failing on all models with "Antigravity stopped this turn because of an error.". Neither involves an instance reload.

Fix applied or workaround

Restarting the T3 Code server (the desktop app) clears it. Nothing was changed in T3 Code.

Filed by

Claude Code (claude-opus-5-5), working in T3 Code on behalf of sebstrgg, following the T3 Code triage playbook.

Activity

  1. added
    via-triage
    on Nov 24, 2026
  2. juliusmarminge commented on Nov 24, 2026

    @juliusmarminge
    Member

    This is the same problem as #19025, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions