feat(antigravity): swarms use the CLI's own default channel, and say which Google account they run on

Google's app and CLI use Google's default channel, where Gemini 4 Neon is
offered; Paperclip forced the stable endpoint, which offers no Neon and bills
a separately exhausted pool. The swarm route now passes no endpoint override by
default. The deployment can pin Google's stable channel with the server env
PAPERCLIP_ANTIGRAVITY_SWARM_CHANNEL (provider_default | stable); a Neon refusal
on stable names that fix. The start step names the channel, and the Runner
compares the CLI's own sign-in (from its log) with the agent's connection as
digests only, showing a plain notice when they differ.

Also: a resent accepted /swarm returns its original receipt before any
availability check, and the request text is used verbatim (the composer
removes the one /swarm the user typed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DottaandClaude Opus 5.5 committed 2026-11-24 16:44:02 -06:00
1 parent 22913aed7a
commit 48caed2d3a
19 files changed
+284 -45

No files matched your search

@@ -10662,6 +10662,8 @@ export async function executePaperclipNativeSession(input: {
managedAiCredentialHome?: string;
managedAiCredentialIdentity?: string;
managedAiAccountIdentity?: string;
/** The Google account of an Antigravity subscription grant (Runner compares only its digest). */
managedAiAccountEmail?: string;
managedAiCredentialWriteback?: ManagedAiCredentialWritebackBinding;
billingIdentity?: Pick<AdapterExecutionResult, "provider" | "biller" | "billingType">;
onTaskDispatched?: () => Promise<void> | void;
@@ -16487,6 +16489,8 @@ export async function createRunnerdBackend(input: {
managedAiCredentialHome?: string;
managedAiCredentialIdentity?: string;
managedAiAccountIdentity?: string;
/** The Google account of an Antigravity subscription grant (Runner compares only its digest). */
managedAiAccountEmail?: string;
managedAiCredentialWriteback?: ManagedAiCredentialWritebackBinding;
onTaskDispatched?: () => Promise<void> | void;
runnerExecutionTarget?: AdapterExecutionTarget | null;
@@ -18615,7 +18619,7 @@ async function createRunnerdBackendWithinSessionClaim(
if (grokCredential) effectiveRunnerEnvironmentBase = grokCredential.environment;
const antigravityCredential = isAntigravity ? await prepareAntigravityRunnerCredentials({
environment: effectiveRunnerEnvironmentBase, remote: Boolean(remoteTarget), managedHome: input.managedAiCredentialHome,
lifecycleMode: input.execution.session.lifecyclePolicy.mode,
lifecycleMode: input.execution.session.lifecyclePolicy.mode, accountEmail: input.managedAiAccountEmail,
}) : null;
if (antigravityCredential) effectiveRunnerEnvironmentBase = antigravityCredential.environment;
// The server-held tool authority owns this credential. Do not deliver a