Repository navigation
Option to automatically hand off to a fallback provider when hitting usage limits #15846
Replies: 8 comments 1 reply
|
i would like to help implement this as an opt in fallback using the existing context handoff Claude Code Opus 5.5 -> Cursor Opus 5.5 would be ideal when the Claude limit is reached so we can keep using the same model without enabling extra usage in Claude Code when we already pay thousands of dollars for extra usage in Cursor would you be open to a PR with one fallback provider and model selected by the user |
|
I'd use this for Claude Opus hitting its 5-hour limit -> Codex GPT-6.1-Sol with Extra High reasoning, so an unattended task can keep going without waiting for Claude's reset. I checked upstream Would maintainers approve this focused first scope?
I also found #17753, an implementation of this idea that closed unmerged. Its closure note requested model/harness attribution; it does not establish that the feature was accepted or rejected. I would prefer to build on this discussion and agree on scope before opening another PR. Would that single-target, usage-limit-only scope be welcome? Verification would cover actual cross-provider handoff, preserved model options/permissions, concurrent manual sends, restart deduplication, a limited or unavailable fallback, and suppression of the original reset retry after success. Research and draft: GPT-6.1-Sol, Extra High reasoning, through the Codex harness in T3 Code. This comment proposes behavior; it does not claim a working implementation. |
|
Still needed (2026-10-20): Confirmed on current nightly — Same shape as OpenBot Backup models / Boat Opus→Sonnet quota fallback: primary + ordered fallbacks, switch only on usage/auth/unavailable errors, surface which model actually ran. Related scoped Ideas: #12927 (text-gen titles/commits), #16512 (scheduled tasks). This discussion is the right place for the main composer/thread case. |
Continue a usage-limited thread on its fallback modelThis proposes one rule that covers this discussion and also #18949 (continue on another account) and #24453 (fallback chain):
I am asking for approval of the direction and of the first slice. The later steps are listed briefly so the first slice can be judged against where it leads; each would need its own approval. What exists todayChecked against
A running thread never uses the fallback. Today I get there by picking another model and pressing Resume. First sliceOne setting next to Conditions, all required
What the user sees The thread's model changes to the fallback, and the timeline gets a failover marker with the reason: "Continued on GPT Sol. Claude Opus hit its usage limit, resets 14:20." The existing model-switch marker is not enough, because it shows nothing when only the account changes. What it costs
What it touches This is more than a branch in the worker:
The principle I am proposing is that my own choice always wins: a failover must not override a model I picked after the run failed, and must not be undone by a client that has not yet seen the switch. How to arbitrate that is the main design question below. It never triggers on cancellation, a pending approval, context overflow, or a permission or validation error. It never chooses a target I did not configure. Later steps
Delegated tasks (#28203) and the safeguard fallback (#24043) are out of scope. Questions
|
|
Adding a use case for same-instance, different-model fallback, which the proposed first slice excludes. I use T3's Claude Code provider through a single CLIProxyAPI instance, with multiple Claude subscription credentials behind the same endpoint. The proxy owns credential rotation and priority: other accounts first, then my Homebase account, with my personal account last. When Fable is usage-limited across the proxy's eligible credentials but Opus still has capacity, I want the existing T3 thread to continue automatically on Opus through that same provider instance. Switching the requested model is sufficient for this setup. T3 would select the fallback model and preserve the conversation; CLIProxyAPI would continue selecting credentials according to its existing priority order. T3 would not need visibility into the individual accounts. The fallback would still be subject to any shared account limits. I'd want this to be opt-in, visibly report the model change, and retain normal wait/auto-resume behavior if Opus is also limited. Could same-instance Fable → Opus fallback be included, while leaving account selection and the personal-account-last policy entirely with the proxy? Prepared with Codex via the Codex desktop app. |
|
+1. My use case is unattended work that keeps going across providers. When a thread on Claude Opus 5.5 hits its limit, it should continue on Codex GPT-6.1-Sol, and the reverse. I'm prototyping this locally with a scheduled task, and a few needs came up that the first slice above doesn't cover. I'm listing them as later steps, not as a request to widen the first slice:
I've opened a separate Idea about pacing (#37305) usage across the week. It would decide where new work goes before a limit is ever hit, and it builds on the fallback here. Drafted with Claude Code. |
|
For the Claude Code → Codex use case, WorkLedger already provides a separate continuation workflow. We build it at Digital Disruptors. On an online computer running WorkBridge, work started there can move to another supported tool with a new session and its recorded handover when no account of the current tool has room. Automatic continuation must be enabled, and the destination tool and account need to be available. The task keeps its decisions and unfinished work across that handover. This runs through WorkLedger and WorkBridge; it does not change T3’s provider picker or implement an arbitrary model chain. If you’d like to compare one Claude Code → Codex task: |
|
+1 for this feature. This is one of my biggest pain points with T3 Code right now. I frequently kick off multiple agent tasks, walk away, and come back to find them stalled because one provider hit its usage limit, while my other paid subscriptions still have plenty of capacity. Ideally, I'd like to configure an ordered fallback chain that automatically hands off context and resumes unfinished work without manual intervention. This would significantly improve unattended agent workflows and subscription utilization. Would love to see this prioritized! 🫡 |
Uh oh!
There was an error while loading. Please reload this page.
Problem
Right now, when a thread hits a usage/quota limit (like Claude's 5-hour limit), T3 Code pauses the turn and offers "Resume at reset" or "Snooze until reset".
If you don't want to wait several hours, you currently have to manually change the provider in the model picker (e.g., from Claude to Codex) and send a new message to trigger the provider context handoff.
Idea / Proposal
It would be great to have an option to automatically switch to a configured fallback provider using context handoff when a usage limit is hit, instead of just pausing until the reset window.
Since T3 Code already supports both context handoff between providers and auto-resume behaviors, wiring them together would keep long background tasks running without needing manual intervention when a limit hits.
All reactions