Area
apps/server (Codex provider, thread title generation)
Environment
- T3 Code (local dev)
- Provider: Codex CLI (OpenAI)
- Auth: ChatGPT account
Steps to reproduce
- Start a new thread with a message that triggers automatic title generation
- 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
- For Codex, use a model compatible with ChatGPT accounts for one-shot generation, or derive from instance/default config
- Surface stdout JSON error when CLI exits non-zero (avoid masking stderr)
- 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
Area
apps/server (Codex provider, thread title generation)
Environment
Steps to reproduce
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
Workaround
Configure an appropriate Codex model for text generation that matches your account type.
Related: #12651, #14321