Skip to content

[Bug]: Title generation falls back from Codex despite available credits, then fails silently #27792

Open

Description

@lukelabonte

Before submitting

  • I searched existing issues and did not find a duplicate of the credit-aware text-generation fallback problem.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Actual behavior

I tried to regenerate a thread title, but nothing changed. There wasn't an error in the UI. Codex chats were still working on the same account.

The title-generation setting used gpt-6-luna through a separate Codex provider instance configured with a shadow home path for a secondary account. The server log showed that T3 used OpenCode instead:

Text generation failed in generateThreadTitle: OpenCode could not generate the text.
provider.no-route: Model unavailable: openai/gpt-5

The request completed and cleared the pending state without changing the title.

What the investigation found

A read-only account/rateLimits/read request for the same Codex account reported:

  • Weekly included allowance: 100% used.
  • credits.hasCredits: true, with a positive balance.
  • spendControlReached: false.

The installed exhaustedUsageWindow check uses exhausted allowance windows without considering spendable credits. Replaying that check with the reported quota values triggers fallback. The text-generation fallback then picks OpenCode's built-in openai/gpt-5 default, which isn't available on this setup.

The usage probe was captured after the failed request. The server's exact in-memory usage snapshot at the time of that request wasn't captured.

Expected behavior

Keep using the selected Codex account when it can still generate using credits and the applicable credit policy allows it. An exhausted included allowance shouldn't, by itself, force a different provider.

If credits are unavailable or disallowed, preserve T3's existing quota handling. Use the configured fallback where applicable, or keep the current resume, reset, and snooze options. This report isn't asking for a different fallback policy or automatic permission to spend credits.

If title generation fails, show an error with enough detail to identify the failed provider and model. Right now it looks like the button did nothing.

Steps to reproduce

  1. Use a Codex account whose included weekly allowance is exhausted but which still has spendable credits.
  2. Select that account under Text generation model. In this case, the model was gpt-6-luna.
  3. Have OpenCode enabled with no access to its built-in openai/gpt-5 default.
  4. Choose Regenerate title on an existing thread.
  5. Check the server log. The title stays unchanged, and the generation error only appears in the log.

Impact

Minor bug or occasional failure. Title regeneration silently fails, while ordinary Codex chats keep working.

Version or commit

T3 Code desktop 0.1.5.

Environment

  • macOS, Apple Silicon.
  • Failure observed October 30, 2026, at 19:04:46 UTC.

I later used an available quota-reset credit. Title regeneration hasn't been retested since the reset.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions