Skip to content

[Bug]: Renaming a provider instance's displayName tears down its scope and kills all running Antigravity sessions #41162

Closed

Description

@Luzivog

Summary

Editing cosmetic metadata (displayName or accentColor) on a provider instance in Settings → Providers causes ProviderInstanceRegistry to treat the instance as replaced, close its Scope, and immediately kill every live Antigravity ACP session running on that instance.

(Follow-up to #11043, which was auto-closed after a Codex-only repro attempt did not kill running turns — see below for why Antigravity is affected while Codex is not.)

Verified version

0.1.12-nightly.20261122.5111 (also observed in 0.1.12-nightly.20261121.5051)

Root cause

  1. ProviderInstanceRegistry.ts (makeReconcile) compares the full ProviderInstanceConfig with entryEqual = (a, b) => Equal.equals(a, b). Any edit to displayName or accentColor makes !entryEqual(live.entry, nextEntry) true, adds instanceId to replacedIds, and calls Scope.close(live.scope, Exit.void).
  2. AntigravityDriver.create → makeAntigravityAuth runs inside that instance's childScope and registers an instanceScope finalizer that calls stopOwnedProcesses. Every live Antigravity ACP runtime is tracked in processes via authFlow.withProcess(...), so closing live.scope immediately interrupts/stops every active Antigravity session on that instance.

Steps to reproduce

  1. Configure an Antigravity provider instance (e.g. "Account A") and start one or more active turns on it.
  2. Open Settings → Providers and rename the instance's displayName (e.g. "Account A" → "Account B") or change its accentColor.
  3. Return to the active threads: all live Antigravity sessions on that instance are immediately torn down.

Expected behavior

Cosmetic metadata changes (displayName, accentColor) should update instance snapshots/labels in place without closing live.scope or interrupting/killing active provider sessions.

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