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>
413 B
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.