Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(git): write commit messages with the thread's provider #7685

Closedshubhxho(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/7685/headopened View on GitHub

Commit message generation fell back to the default Codex text-generation model even if you were in a Claude thread. If Codex wasn't signed in, the dialog just failed.

If you haven't picked a dedicated source-control writer, we now use the thread's model. Dedicated writer still wins when it's set and actually usable.

Fixes #7584


Note

[Cursor Bugbot](https://cursor.com/bugbot) is generating a summary for commit d9a9c5496a9bf016dcf9362215edbab174439e95. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Pass thread modelSelection through runStackedAction for git commit messages

  • Forwards an optional modelSelection from the calling thread or composer draft through the mobile hook, web control, web state layer, client-runtime types, VCS action manager, and gitRunStackedAction RPC into GitManager.runStackedAction.
  • Reworks resolveSourceControlWriterModelSelection in serverSettings.ts to accept a preferredFallback and resolve in order: dedicated writer → preferred fallback → textGenerationModelSelection → first available provider's default model → textGenerationModelSelection.
  • Adds a test in serverSettings.test.ts ensuring a preferred fallback whose provider is not loaded is skipped.
  • Risk: resolveSourceControlWriterModelSelection now selects the first available provider's model when neither dedicated writer nor fallback nor textGenerationModelSelection is usable, which can change the writer model for setups that previously fell through to a different default.
Macroscope summarized 923a100.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 55bddf6b-6455-4841-894a-9966e79f4955

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

    3. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    4. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot).

      Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d9a9c5496a9bf016dcf9362215edbab174439e95. Configure [here](https://www.cursor.com/dashboard/bugbot).
    5. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR changes which AI model generates commit messages by introducing a fallback chain that prioritizes the thread's active provider. Human review is warranted.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    6. Note

      This comment is posted by Julius' dot

      This changes the default source control writer to follow the active thread. In #7584, Theo confirmed that the existing Source Control writer setting already solves the reported need. The PR and linked discussion contain no approval for replacing that default, as required by the prior approval rule. Closing this PR. Please agree on the behavior and scope with maintainers in an Ideas discussion before requesting reconsideration. The difficulty finding the existing setting remains a useful discoverability report.

    7. juliusmarminge closed this

Sign in to join this conversation.