Skip to content

feat(runtime): fallback retryable model errors to xai/grok-4.7/high - #225

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/hardcoded-grok-model-fallback-96a0
Nov 7, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/hardcoded-grok-model-fallback-96a0

Conversation

@nettee

@nettee nettee commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Summary

BCN-37: when a Profile Run hits a retryable supplier/model error (429/5xx/auth, upstream unavailable, Unable to verify model access, etc.), Beacon retries the same Run once with hardcoded xai / grok-4.7 / thinking: high before writing beacon_failure or sending Feishu failure notify / on_failure cascade.

  • Fallback success → treat as success (no failure card).
  • Both fail → existing failure path; summary notes primary + fallback.
  • Non-retryable errors (runtime_timeout, outcome_missing, generic tool errors, …) unchanged.
  • Does not change Dashboard model / model_pool allocations.
  • Version: 0.8.16.

Test plan

  • model-fallback unit tests (detection + hardcoded target)
  • Orchestrator: retryable → Grok success, no Feishu failure / cascade
  • Orchestrator: double failure → one Feishu failure + cascade
  • Orchestrator: non-retryable → no fallback
  • CI green
Open in Web Open in Cursor 

On supplier/API failures (429/5xx/auth and similar), retry the same Run
once with a hardcoded Grok model before Feishu failure notify. Only
double failure delivers the existing error path. Bumps to 0.8.16.

Co-authored-by: nettee.liu <nettee.liu@gmail.com>
@cursor
cursor Bot merged commit 14411e3 into main Nov 7, 2026
3 checks passed
@cursor
cursor Bot deleted the cursor/hardcoded-grok-model-fallback-96a0 branch November 7, 2026 15:28
cursor Bot pushed a commit that referenced this pull request Nov 8, 2026
Replace the hardcoded Grok fallback (#225 / 0.8.16) with an ordered
profile model_fallback_chain (max 3). Unset or length ≤1 means no
fallback; length 2–3 advances on retryable provider failures within the
same Run. Dashboard/API expose choice-key chains for BCN-41 Mini config.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants