Files
fusion/.changeset/FN-5584-planning-fallback-on-missing-api-key.md
gsxdsm 06a107dcba fix(FN-5584): restore planning fallback when primary provider API key is missing
The top-level promptWithFallback bypassed the session-attached rich fallback
path that runs isRetryableModelSelectionError + swapPromptSession, so errors
like "No API key for provider: anthropic" propagated without trying the
configured planning fallback. Restore the dispatch with a WeakSet re-entry
guard that preserves the FN-4900 recursion fix for plugin-runtime sessions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 14:36:33 -07:00

413 B

@runfusion/fusion
@runfusion/fusion
patch

Fix triage/executor not swapping to the configured planning fallback model when the primary provider's API key is missing (or returns 401/403/rate-limit). The top-level promptWithFallback now delegates to the rich session-attached path (which runs isRetryableModelSelectionError and swapPromptSession), with a WeakSet re-entry guard preserving the FN-4900 recursion fix.