You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Renaming a provider instance's displayName tears down its scope and kills all running Antigravity sessions #41162
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
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).
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.
Configure an Antigravity provider instance (e.g. "Account A") and start one or more active turns on it.
Open Settings → Providers and rename the instance's displayName (e.g. "Account A" → "Account B") or change its accentColor.
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.
Activity