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

Showing 9 changed files with 29 additions and 13 deletions (loading 6).

x
0 of 9 viewed, 9 left
5 additions and 0 deletionsapps/mobile/src/state/use-selected-thread-git-actions.tsModified
View file
@@ -330,6 +330,11 @@
...(input.commitMessage ? { commitMessage: input.commitMessage } : {}),
...(input.featureBranch ? { featureBranch: input.featureBranch } : {}),
...(input.filePaths?.length ? { filePaths: [...input.filePaths] } : {}),
+ ...(input.modelSelection
+ ? { modelSelection: input.modelSelection }
+ : selectedThread?.modelSelection
+ ? { modelSelection: selectedThread.modelSelection }
+ : {}),
});
if (AsyncResult.isFailure(result)) {
return result;
9 additions and 13 deletionsapps/server/src/git/GitManager.tsModified
View file
@@ -2218,20 +2218,16 @@
const textGenerationSettings = yield* serverSettingsService.getSettings.pipe(
Effect.flatMap((settings) =>
- settings.sourceControlWriterModelSelection === null
- ? Effect.succeed({
- modelSelection: settings.textGenerationModelSelection,
- style: settings.sourceControlWritingStyle,
- })
- : providerRegistry.getProviders.pipe(
- Effect.map((providers) => ({
- modelSelection: ServerSettings.resolveSourceControlWriterModelSelection(
- settings,
- providers,