diff --git a/.changeset/fn-7753-grok-cli-no-key-fallback.md b/.changeset/fn-7753-grok-cli-no-key-fallback.md new file mode 100644 index 0000000000..2609be6e77 --- /dev/null +++ b/.changeset/fn-7753-grok-cli-no-key-fallback.md @@ -0,0 +1,7 @@ +--- +"@runfusion/fusion": patch +--- + +summary: Grok CLI models now run via the grok CLI when no Fusion-visible API key is set. +category: fix +dev: createResolvedAgentSession (packages/engine/src/agent-session-helpers.ts) auto-derives runtimeHint "grok" when defaultProvider is grok-cli, no GROK_API_KEY is Fusion-visible (new read-only isGrokApiKeyFusionVisible in packages/core/src/grok-provider.ts), and the Grok runtime is registered; the selected model is passed to the CLI via a new --model option on spawnGrokStream. Explicit runtime hints and the key-visible direct-endpoint default are unchanged. Closes the deferred FN-7722/FN-7725 follow-up. diff --git a/docs/grok-cli-contract.md b/docs/grok-cli-contract.md index 7b5e2faa30..fff3a188a7 100644 --- a/docs/grok-cli-contract.md +++ b/docs/grok-cli-contract.md @@ -134,7 +134,7 @@ Notes: `GrokCliProviderCard.tsx`) is out of scope for this task and is not modified here. -## Wiring (resolved — FN-7725) +## Wiring (resolved — FN-7725, extended by FN-7753)