Skip to content

[Bug]: Codex thread title generation fails with gpt-6-luna when using ChatGPT account #15230

Description

@protocedvill

Area

apps/server (Codex provider, thread title generation)

Environment

  • T3 Code (local dev)
  • Provider: Codex CLI (OpenAI)
  • Auth: ChatGPT account

Steps to reproduce

  1. Start a new thread with a message that triggers automatic title generation
  2. Use Codex with a ChatGPT account

Expected behavior

Title generation uses a model supported by the account or fails gracefully.

Actual behavior

Fails with: "The 'gpt-6-luna' model is not supported when using Codex with a ChatGPT account."

Observed in trace dabe9710bbc13ec7683c43cc182776e1 (CodexTextGeneration.generateThreadTitle / runCodexJson.runCodexCommand). The user message referenced trace ID 902d19edcd12f7982494422162620eb2, but that ID was not found as a local trace span.

Root cause

One-shot text generation defaults may pick gpt-6-luna which is unsupported for ChatGPT-authenticated Codex sessions. Similar to #12651 (model fallback issue).

Suggested fixes

  1. For Codex, use a model compatible with ChatGPT accounts for one-shot generation, or derive from instance/default config
  2. Surface stdout JSON error when CLI exits non-zero (avoid masking stderr)
  3. Make title generation resilient (fallback/skip on failure)

Workaround

Configure an appropriate Codex model for text generation that matches your account type.

Related: #12651, #14321

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

    bugSomething is broken or behaving incorrectly.codexvia-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions