Repository navigation
Fall back from Fable to Opus when Claude is out of usage credits - #210
Merged
Merged
Conversation
Claude Code refuses Fable with "You're out of usage credits. Switch to another model..." before running anything. Modex showed that as an assistant bubble plus an "unknown" failure card and stopped. Now, when the refusal arrives before any reply, tool or reasoning, the runner reruns the turn on Opus in the same session, posts a warning naming both models, and notes it on Auto's route receipt. Later Fable turns start on Opus for an hour. A refusal after work started keeps its failure card, so nothing runs twice. If Opus also fails, the card lists the fallback under recovery. The Claude backend drops the CLI's synthetic API-error reply, which the failed result repeats. The classifier reads "out of usage credits" as rate limited with its own summary. Settings > General can turn the fallback off; it is on by default. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Keep empty fallback replies retryable and record the actual Opus route without a false user override. Coven-Harness: Codex / GPT-6
Separate owner-removal admission from restart so deletion drains its own turns while unrelated turns continue. Preserve admitted routing and title updates, replay surviving thread metadata after canonical adoption, and retain Stop recovery. Coven-Harness: Codex / GPT-6
Preserve archive state, unarchive on send, and keep active or waiting threads visible. Includes reservation-release and stable-layout acceptance corrections. Coven-Harness: Codex / GPT-6
Move running Knowledge controls into the titlebar, remove its outer frame, and collapse the duplicate Space sidebar while preserving saved preferences. Support Backspace/Delete for safely mapped rendered Space selections and retain the editing caret. Coven-Harness: Codex / GPT-6
Preserve the reviewed fallback fixes while integrating thread deletion and archive behavior. Cover pending credit refusal during owner-removal admission. Coven-Harness: Codex / GPT-6
On a loaded simulator the press reached the row as a tap: CI run 38677984502 failed with the thread's transcript on screen and no context menu. pressForMenu goes back and presses longer, and the test makes its first attempt a tap so the recovery runs on every run; the menu itself is still required. Coven-Harness: Claude Code / claude-opus-5-5
BunsDev
added a commit
that referenced
this pull request
Oct 15, 2026
Settings: keep both new checkboxes, the Fable-to-Opus fallback from #210 and Show Analytics in the rail. Coven-Harness: Claude Code / claude-opus-5-5
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated against current main, preserving the landed archive/deletion fixes and the newer iPhone long-press recovery test. The fallback implementation and regression tests match the reviewed fallback portion of #221; its independent native-window E2E observer change is not included here.
What changes
When Claude Code refuses Fable for usage credits, Modex now reruns the turn on Opus instead of ending it with a failure card.
unknown. It is nowrate_limited, with the summary "Claude Code is out of usage credits for this model." If Opus also fails, the card lists the fallback under recovery.<synthetic>) before the failed result. The backend now drops it.Verification
pnpm buildandpnpm testpassed: 1,447 passed, 16 platform-specific skips, no failures.pnpm test:e2epassed its first five cases, then the existing relaunch test timed out inapp.close()before relaunch. The run was stopped; its trace is preserved. This is not a green full E2E result. The PR-triggered macOS check subsequently passed its full build, unit, Electron/browser E2E and site stages (run); the push-triggered required macOS check also passed (run). Both runs passed all 296 desktop E2E tests and all 7 site E2E tests.Coven-Harness: Codex / GPT-6