Repository navigation
Conversation
…s out When a model reached with the user's own account stops because the plan or balance ran out (ChatGPT plan via Codex "usage_limit_reached", OpenAI "insufficient_quota", Anthropic "credit balance is too low"), the error message says so — with the renewal time when the provider gives it — and the REPL opens a dialog right away offering a Verboo model, last used first. Choosing one switches the session model and resends the last prompt; "keep" leaves everything as it was. Temporary rate limits keep their normal retry, and the ChatGPT usage limit is no longer retried. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fects Merges the own-key fixes from #75. Found by end-to-end validation: - withRetry replaced the ChatGPT and OpenAI limit errors with a generic one, so the dialog only ever opened for Anthropic. - /compact on an exhausted account kept the limit message as the summary and destroyed the conversation context. - A limit hit after tools ran sent the prompt again, repeating their side effects. Now nothing is resent and the dialog says so. When nothing ran, the failed attempt leaves history so the model gets the request once. - The compaction summary, images and task notifications are no longer taken for what the user typed, nor replaced by an older prompt. - The dialog was opened as a hidden slash command, which wiped the prompt draft, polluted history and the transcript, could be shadowed by a skill and broke with --disable-slash-commands. The REPL now renders it directly. - /resume no longer reopens the dialog for an old error. - "Last Verboo model first" tracks a real router model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The resend ran in the same tick as the switch, so onSubmit still had the old model: the prompt went back to the exhausted account and the dialog reopened. The confirmation messages used the 'info' level, which only shows in verbose mode, so nobody saw "Modelo alterado" or "Modelo mantido". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion A message typed while the limit answer was on its way went straight to the exhausted account. With more than four Verboo models, "Manter o modelo atual" fell below the visible part of the list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
Resumo
Quando um modelo usado com a conta do próprio usuário para porque o plano ou o saldo acabou, a CLI agora:
/model.Erros reconhecidos:
usage_limit_reached(429), comresets_at/resets_in_secondsinsufficient_quota/ "exceeded your current quota"Base
Empilhado sobre o #75, porque depende dos provedores de chave de API. Depois do merge do #75, a base deste PR vira
main.Testes
providerLimitErrors.test.ts: classificação por provedor, rate limit temporário ignorado, mensagem com prefixo, e a ligação com errors, withRetry e REPL.limit-switch.test.ts: opções (último modelo Verboo primeiro, máximo de 5, opção de manter) e a última mensagem digitada (pula meta e tool_result).check-cli-quality --suite367/367 e--terminal36/36.🤖 Generated with Claude Code