{"record":{"id":"b35bd6942c4bc415","repo":"Hmbown/CodeWhale","slug":"antigravity-is-a-retired-non-runnable-legacy-provider-clear","errorCode":null,"errorMessage":"Antigravity is a retired, non-runnable legacy provider. Clear Codewhale-owned legacy state with `codewhale auth clear --provider antigravity`; this does not alter Google or Antigravity sessions. For Gemini use provider `google` with `GEMINI_API_KEY`.","messagePattern":"Antigravity is a retired, non-runnable legacy provider\\. Clear Codewhale-owned legacy state with `codewhale auth clear --provider antigravity`; this does not alter Google or Antigravity sessions\\. For Gemini use provider `google` with `GEMINI_API_KEY`\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/cli/src/lib.rs","lineNumber":519,"sourceCode":"             set edit:completion:arg-completer[{alias}] = $edit:completion:arg-completer[{bin}]\\n\"\n        ),\n        _ => script,\n    }\n}\n\nfn command_accepts_raw_provider(command: Option<&Commands>) -> bool {\n    matches!(command, Some(Commands::Exec(_) | Commands::Fleet(_)))\n}\n\nfn top_level_provider_override(\n    provider: Option<&str>,\n    command: Option<&Commands>,\n) -> Result<Option<ProviderKind>> {\n    let Some(provider) = provider else {\n        return Ok(None);\n    };\n    if is_antigravity_legacy_selector(provider) {\n        bail!(codewhale_config::LEGACY_ANTIGRAVITY_TOMBSTONE_MESSAGE);\n    }\n    if let Some(provider) = builtin_provider_arg(provider) {\n        return Ok(Some(provider));\n    }\n    if command_accepts_raw_provider(command) {\n        return Ok(None);\n    }\n\n    let expected = ProviderKind::names_hint();\n    bail!(\n        \"invalid value '{provider}' for '--provider <PROVIDER>': expected one of {expected}; configured custom providers are accepted only by exec and fleet\"\n    )\n}\n\nfn prepare_raw_provider_tui_dispatch(\n    cli: &Cli,\n    command: Option<&Commands>,\n    runtime_overrides: &CliRuntimeOverrides,","sourceCodeStart":501,"sourceCodeEnd":537,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/433685b2024e7bc4c99e1e2e326bcad39b4d9d65/crates/cli/src/lib.rs#L501-L537","documentation":"Antigravity is a retired legacy provider that cannot be selected at runtime. Selecting it as a top-level --provider override is refused with the tombstone message, which also points users at `codewhale auth clear --provider antigravity` for removing Codewhale-owned legacy state and at `google` + GEMINI_API_KEY for Gemini usage.","triggerScenarios":"Passing `--provider antigravity` (or a legacy alias recognized by is_antigravity_legacy_selector) on the top-level CLI invocation, so top_level_provider_override matches the legacy selector and bails.","commonSituations":"Old scripts or docs referencing the removed Antigravity provider; leftover muscle memory from pre-retirement setups; wanting Gemini and guessing the old provider name still works.","solutions":["Use `codewhale auth clear --provider antigravity` if you need to remove legacy Antigravity state (clear-only is allowed).","For Gemini, use `--provider google` with GEMINI_API_KEY configured.","Remove `--provider antigravity` from scripts/CI and update to the supported provider set.","Check `codewhale --help` / provider list for current provider names."],"exampleFix":"// before\ncodewhale run --provider antigravity \"fix the lint\"\n// after\ncodewhale auth clear --provider antigravity   # one-time legacy cleanup\ncodewhale run --provider google \"fix the lint\"  # with GEMINI_API_KEY set","handlingStrategy":"validation","validationCode":"fn is_retired_provider(name: &str) -> bool {\n    matches!(name.to_ascii_lowercase().as_str(), \"antigravity\")\n}\nif is_retired_provider(args.provider) { eprintln!(\"use --provider google with GEMINI_API_KEY, or auth clear for legacy state\"); }","typeGuard":null,"tryCatchPattern":"match result {\n    Err(e) if e.to_string().contains(\"retired, non-runnable legacy provider\") => {\n        eprintln!(\"migrate: --provider google + GEMINI_API_KEY (or run auth clear --provider antigravity)\");\n    }\n    Err(e) => eprintln!(\"failed: {e:#}\"),\n    Ok(_) => {}\n}","preventionTips":["Remove `--provider antigravity` from scripts, CI, and docs.","Use `--provider google` with GEMINI_API_KEY for Gemini workloads.","Run `codewhale auth clear --provider antigravity` once to purge legacy state."],"tags":["cli","provider","deprecated","migration"],"backgroundTag":"deprecated-api-usage","analyzedSha":"433685b2024e7bc4c99e1e2e326bcad39b4d9d65","analyzedAt":"2026-09-15T12:24:24.634Z","contentChangedAt":"2026-09-15T12:24:24.634Z","schemaVersion":2},"datasetVersion":"2026-09-22T11:17:16.035Z"}