Skip to content

[Bug]: Auto-generated commits fail when user lacks access to hardcoded gpt-5.3-codex model #1165

@AriajSarkar

Description

@AriajSarkar

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Start the T3 Code app.
  2. Open a project with unstaged/staged Git changes.
  3. Select a specific model in the chat UI model picker at the bottom (e.g., gpt-5.2-codex).
  4. Click the "Auto Commit" or "Commit & Push" button in the Git actions block.

Expected behavior

The auto-generated commit message should be created using the model selected in the chat UI (gpt-5.2-codex), as that is what the user has chosen and verified they have access to.

Actual behavior

The app ignores the selected model and attempts to generate the commit message using a hardcoded gpt-5.3-codex model.

Impact

Major degradation or frequent failure

Version or commit

main

Environment

Provider/Model: Codex (gpt-5.3-codex hardcoded, user attempted gpt-5.2-codex)

Logs or stack traces

// The model is currently hardcoded in apps/server/src/git/Layers/CodexTextGeneration.ts 

const CODEX_MODEL = "gpt-5.3-codex";
// ...
yield* childProcess.spawn("codex", [
  "prompt",
  "--model",
  CODEX_MODEL, // Hardcoded, ignores the model selected in the chat UI
// ...

Screenshots, recordings, or supporting files

image.png

Workaround

Currently, the only workaround is to manually type the commit messages instead of relying on the auto-generate button, or use the chat to write the commit message and copy-paste it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions