Skip to content

Commit 7b5ef8c

Browse files
committed
Merge branch 'release/v2026.08'
2 parents 01feffa + a46e752 commit 7b5ef8c

File tree

126 files changed

+1930
-1101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1930
-1101
lines changed

THIRD-PARTY-LICENSES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The project uses the following third-party libraries or assets
77
### AvaloniaUI
88

99
- **Source**: https://github.com/AvaloniaUI/Avalonia
10-
- **Version**: 11.3.12
10+
- **Version**: 11.3.13
1111
- **License**: MIT License
1212
- **License Link**: https://github.com/AvaloniaUI/Avalonia/blob/master/licence.md
1313

@@ -22,7 +22,7 @@ The project uses the following third-party libraries or assets
2222
### LiveChartsCore.SkiaSharpView.Avalonia
2323

2424
- **Source**: https://github.com/beto-rodriguez/LiveCharts2
25-
- **Version**: 2.0.0-rc6.1
25+
- **Version**: 2.0.0
2626
- **License**: MIT License
2727
- **License Link**: https://github.com/beto-rodriguez/LiveCharts2/blob/master/LICENSE
2828

@@ -36,7 +36,7 @@ The project uses the following third-party libraries or assets
3636
### OpenAI .NET SDK
3737

3838
- **Source**: https://github.com/openai/openai-dotnet
39-
- **Version**: 2.9.1
39+
- **Version**: 2.10.0
4040
- **License**: MIT License
4141
- **License Link**: https://github.com/openai/openai-dotnet/blob/main/LICENSE
4242

TRANSLATION.md

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@ This document shows the translation status of each locale file in the repository
66

77
### ![en_US](https://img.shields.io/badge/en__US-%E2%88%9A-brightgreen)
88

9-
### ![de__DE](https://img.shields.io/badge/de__DE-98.04%25-yellow)
9+
### ![de__DE](https://img.shields.io/badge/de__DE-97.53%25-yellow)
1010

1111
<details>
1212
<summary>Missing keys in de_DE.axaml</summary>
1313

1414
- Text.AIAssistant.Use
1515
- Text.Apply.3Way
16+
- Text.CheckoutBranchFromStash
17+
- Text.CheckoutBranchFromStash.Branch
18+
- Text.CheckoutBranchFromStash.Stash
1619
- Text.CommandPalette.Branches
1720
- Text.CommandPalette.BranchesAndTags
1821
- Text.CommandPalette.RepositoryActions
1922
- Text.CommandPalette.RevisionFiles
2023
- Text.CommitMessageTextBox.Column
2124
- Text.ConfirmEmptyCommit.StageSelectedThenCommit
25+
- Text.Discard.IncludeModified
2226
- Text.GotoRevisionSelector
2327
- Text.Hotkeys.Repo.CreateBranch
2428
- Text.Hotkeys.Repo.GoToChild
@@ -27,6 +31,7 @@ This document shows the translation status of each locale file in the repository
2731
- Text.Preferences.AI.AdditionalPrompt
2832
- Text.Preferences.General.Use24Hours
2933
- Text.StashCM.ApplyFileChanges
34+
- Text.StashCM.Branch
3035
- Text.Worktree.Branch
3136
- Text.Worktree.Head
3237
- Text.Worktree.Path
@@ -35,7 +40,7 @@ This document shows the translation status of each locale file in the repository
3540

3641
### ![es__ES](https://img.shields.io/badge/es__ES-%E2%88%9A-brightgreen)
3742

38-
### ![fr__FR](https://img.shields.io/badge/fr__FR-91.84%25-yellow)
43+
### ![fr__FR](https://img.shields.io/badge/fr__FR-91.37%25-yellow)
3944

4045
<details>
4146
<summary>Missing keys in fr_FR.axaml</summary>
@@ -52,6 +57,9 @@ This document shows the translation status of each locale file in the repository
5257
- Text.ChangeCM.MergeExternal
5358
- Text.ChangeCM.ResetFileTo
5459
- Text.Checkout.WarnUpdatingSubmodules
60+
- Text.CheckoutBranchFromStash
61+
- Text.CheckoutBranchFromStash.Branch
62+
- Text.CheckoutBranchFromStash.Stash
5563
- Text.CommandPalette.Branches
5664
- Text.CommandPalette.BranchesAndTags
5765
- Text.CommandPalette.RepositoryActions
@@ -61,6 +69,7 @@ This document shows the translation status of each locale file in the repository
6169
- Text.Compare.WithHead
6270
- Text.Configure.Git.AskBeforeAutoUpdatingSubmodules
6371
- Text.ConfirmEmptyCommit.StageSelectedThenCommit
72+
- Text.Discard.IncludeModified
6473
- Text.EditBranchDescription
6574
- Text.EditBranchDescription.Target
6675
- Text.FileCM.CustomAction
@@ -110,6 +119,7 @@ This document shows the translation status of each locale file in the repository
110119
- Text.SquashOrFixup.Fixup
111120
- Text.SquashOrFixup.Into
112121
- Text.StashCM.ApplyFileChanges
122+
- Text.StashCM.Branch
113123
- Text.TagCM.CompareTwo
114124
- Text.TagCM.CompareWith
115125
- Text.TagCM.CompareWithHead
@@ -122,7 +132,7 @@ This document shows the translation status of each locale file in the repository
122132

123133
</details>
124134

125-
### ![id__ID](https://img.shields.io/badge/id__ID-89.67%25-yellow)
135+
### ![id__ID](https://img.shields.io/badge/id__ID-89.21%25-yellow)
126136

127137
<details>
128138
<summary>Missing keys in id_ID.axaml</summary>
@@ -143,6 +153,9 @@ This document shows the translation status of each locale file in the repository
143153
- Text.ChangeCM.MergeExternal
144154
- Text.ChangeCM.ResetFileTo
145155
- Text.Checkout.WarnUpdatingSubmodules
156+
- Text.CheckoutBranchFromStash
157+
- Text.CheckoutBranchFromStash.Branch
158+
- Text.CheckoutBranchFromStash.Stash
146159
- Text.CommandPalette.Branches
147160
- Text.CommandPalette.BranchesAndTags
148161
- Text.CommandPalette.RepositoryActions
@@ -157,6 +170,7 @@ This document shows the translation status of each locale file in the repository
157170
- Text.ConfigureCustomActionControls.StringValue.Tip
158171
- Text.ConfirmEmptyCommit.StageSelectedThenCommit
159172
- Text.DealWithLocalChanges.DoNothing
173+
- Text.Discard.IncludeModified
160174
- Text.DropHead
161175
- Text.DropHead.Commit
162176
- Text.DropHead.NewHead
@@ -218,6 +232,7 @@ This document shows the translation status of each locale file in the repository
218232
- Text.SquashOrFixup.Fixup
219233
- Text.SquashOrFixup.Into
220234
- Text.StashCM.ApplyFileChanges
235+
- Text.StashCM.Branch
221236
- Text.TagCM.CompareTwo
222237
- Text.TagCM.CompareWith
223238
- Text.TagCM.CompareWithHead
@@ -230,20 +245,24 @@ This document shows the translation status of each locale file in the repository
230245

231246
</details>
232247

233-
### ![it__IT](https://img.shields.io/badge/it__IT-97.42%25-yellow)
248+
### ![it__IT](https://img.shields.io/badge/it__IT-96.92%25-yellow)
234249

235250
<details>
236251
<summary>Missing keys in it_IT.axaml</summary>
237252

238253
- Text.AIAssistant.Use
239254
- Text.Apply.3Way
240255
- Text.ChangeCM.ResetFileTo
256+
- Text.CheckoutBranchFromStash
257+
- Text.CheckoutBranchFromStash.Branch
258+
- Text.CheckoutBranchFromStash.Stash
241259
- Text.CommandPalette.Branches
242260
- Text.CommandPalette.BranchesAndTags
243261
- Text.CommandPalette.RepositoryActions
244262
- Text.CommandPalette.RevisionFiles
245263
- Text.CommitMessageTextBox.Column
246264
- Text.ConfirmEmptyCommit.StageSelectedThenCommit
265+
- Text.Discard.IncludeModified
247266
- Text.GotoRevisionSelector
248267
- Text.Histories.Header.DateTime
249268
- Text.Histories.ShowColumns
@@ -257,37 +276,43 @@ This document shows the translation status of each locale file in the repository
257276
- Text.SelfUpdate.CurrentVersion
258277
- Text.SelfUpdate.ReleaseDate
259278
- Text.StashCM.ApplyFileChanges
279+
- Text.StashCM.Branch
260280
- Text.Worktree.Branch
261281
- Text.Worktree.Head
262282
- Text.Worktree.Path
263283

264284
</details>
265285

266-
### ![ja__JP](https://img.shields.io/badge/ja__JP-98.35%25-yellow)
286+
### ![ja__JP](https://img.shields.io/badge/ja__JP-97.84%25-yellow)
267287

268288
<details>
269289
<summary>Missing keys in ja_JP.axaml</summary>
270290

271291
- Text.AIAssistant.Use
272292
- Text.Apply.3Way
293+
- Text.CheckoutBranchFromStash
294+
- Text.CheckoutBranchFromStash.Branch
295+
- Text.CheckoutBranchFromStash.Stash
273296
- Text.CommandPalette.Branches
274297
- Text.CommandPalette.BranchesAndTags
275298
- Text.CommandPalette.RepositoryActions
276299
- Text.CommandPalette.RevisionFiles
277300
- Text.ConfirmEmptyCommit.StageSelectedThenCommit
278301
- Text.DealWithLocalChanges.DoNothing
302+
- Text.Discard.IncludeModified
279303
- Text.Hotkeys.Repo.CreateBranch
280304
- Text.Init.CommandTip
281305
- Text.Init.ErrorMessageTip
282306
- Text.Preferences.AI.AdditionalPrompt
283307
- Text.Preferences.General.Use24Hours
308+
- Text.StashCM.Branch
284309
- Text.Worktree.Branch
285310
- Text.Worktree.Head
286311
- Text.Worktree.Path
287312

288313
</details>
289314

290-
### ![ko__KR](https://img.shields.io/badge/ko__KR-89.98%25-yellow)
315+
### ![ko__KR](https://img.shields.io/badge/ko__KR-89.52%25-yellow)
291316

292317
<details>
293318
<summary>Missing keys in ko_KR.axaml</summary>
@@ -308,6 +333,9 @@ This document shows the translation status of each locale file in the repository
308333
- Text.ChangeCM.MergeExternal
309334
- Text.ChangeCM.ResetFileTo
310335
- Text.Checkout.WarnUpdatingSubmodules
336+
- Text.CheckoutBranchFromStash
337+
- Text.CheckoutBranchFromStash.Branch
338+
- Text.CheckoutBranchFromStash.Stash
311339
- Text.CommandPalette.Branches
312340
- Text.CommandPalette.BranchesAndTags
313341
- Text.CommandPalette.RepositoryActions
@@ -320,6 +348,7 @@ This document shows the translation status of each locale file in the repository
320348
- Text.ConfigureCustomActionControls.StringValue.Tip
321349
- Text.ConfirmEmptyCommit.StageSelectedThenCommit
322350
- Text.DealWithLocalChanges.DoNothing
351+
- Text.Discard.IncludeModified
323352
- Text.EditBranchDescription
324353
- Text.EditBranchDescription.Target
325354
- Text.FileCM.CustomAction
@@ -379,6 +408,7 @@ This document shows the translation status of each locale file in the repository
379408
- Text.SquashOrFixup.Fixup
380409
- Text.SquashOrFixup.Into
381410
- Text.StashCM.ApplyFileChanges
411+
- Text.StashCM.Branch
382412
- Text.Submodule.Status.Unmerged
383413
- Text.TagCM.CompareTwo
384414
- Text.TagCM.CompareWith
@@ -392,7 +422,7 @@ This document shows the translation status of each locale file in the repository
392422

393423
</details>
394424

395-
### ![pt__BR](https://img.shields.io/badge/pt__BR-68.08%25-red)
425+
### ![pt__BR](https://img.shields.io/badge/pt__BR-67.73%25-red)
396426

397427
<details>
398428
<summary>Missing keys in pt_BR.axaml</summary>
@@ -416,6 +446,9 @@ This document shows the translation status of each locale file in the repository
416446
- Text.Checkout.WarnUpdatingSubmodules
417447
- Text.Checkout.WithFastForward
418448
- Text.Checkout.WithFastForward.Upstream
449+
- Text.CheckoutBranchFromStash
450+
- Text.CheckoutBranchFromStash.Branch
451+
- Text.CheckoutBranchFromStash.Stash
419452
- Text.Clone.RecurseSubmodules
420453
- Text.CommandPalette.Branches
421454
- Text.CommandPalette.BranchesAndTags
@@ -509,6 +542,7 @@ This document shows the translation status of each locale file in the repository
509542
- Text.DirtyState.HasLocalChanges
510543
- Text.DirtyState.HasPendingPullOrPush
511544
- Text.DirtyState.UpToDate
545+
- Text.Discard.IncludeModified
512546
- Text.Discard.IncludeUntracked
513547
- Text.DropHead
514548
- Text.DropHead.Commit
@@ -655,6 +689,7 @@ This document shows the translation status of each locale file in the repository
655689
- Text.SquashOrFixup.Into
656690
- Text.Stash.Mode
657691
- Text.StashCM.ApplyFileChanges
692+
- Text.StashCM.Branch
658693
- Text.StashCM.CopyMessage
659694
- Text.StashCM.SaveAsPatch
660695
- Text.Submodule.Branch
@@ -711,7 +746,7 @@ This document shows the translation status of each locale file in the repository
711746

712747
### ![ru__RU](https://img.shields.io/badge/ru__RU-%E2%88%9A-brightgreen)
713748

714-
### ![ta__IN](https://img.shields.io/badge/ta__IN-70.14%25-red)
749+
### ![ta__IN](https://img.shields.io/badge/ta__IN-69.78%25-red)
715750

716751
<details>
717752
<summary>Missing keys in ta_IN.axaml</summary>
@@ -764,6 +799,9 @@ This document shows the translation status of each locale file in the repository
764799
- Text.Checkout.WarnUpdatingSubmodules
765800
- Text.Checkout.WithFastForward
766801
- Text.Checkout.WithFastForward.Upstream
802+
- Text.CheckoutBranchFromStash
803+
- Text.CheckoutBranchFromStash.Branch
804+
- Text.CheckoutBranchFromStash.Stash
767805
- Text.CommandPalette.Branches
768806
- Text.CommandPalette.BranchesAndTags
769807
- Text.CommandPalette.RepositoryActions
@@ -843,6 +881,7 @@ This document shows the translation status of each locale file in the repository
843881
- Text.DirtyState.HasLocalChanges
844882
- Text.DirtyState.HasPendingPullOrPush
845883
- Text.DirtyState.UpToDate
884+
- Text.Discard.IncludeModified
846885
- Text.Discard.IncludeUntracked
847886
- Text.DropHead
848887
- Text.DropHead.Commit
@@ -957,6 +996,7 @@ This document shows the translation status of each locale file in the repository
957996
- Text.SquashOrFixup.Into
958997
- Text.Stash.Mode
959998
- Text.StashCM.ApplyFileChanges
999+
- Text.StashCM.Branch
9601000
- Text.StashCM.CopyMessage
9611001
- Text.Submodule.Branch
9621002
- Text.Submodule.CopyBranch
@@ -1008,7 +1048,7 @@ This document shows the translation status of each locale file in the repository
10081048

10091049
</details>
10101050

1011-
### ![uk__UA](https://img.shields.io/badge/uk__UA-70.97%25-red)
1051+
### ![uk__UA](https://img.shields.io/badge/uk__UA-70.61%25-red)
10121052

10131053
<details>
10141054
<summary>Missing keys in uk_UA.axaml</summary>
@@ -1061,6 +1101,9 @@ This document shows the translation status of each locale file in the repository
10611101
- Text.Checkout.WarnUpdatingSubmodules
10621102
- Text.Checkout.WithFastForward
10631103
- Text.Checkout.WithFastForward.Upstream
1104+
- Text.CheckoutBranchFromStash
1105+
- Text.CheckoutBranchFromStash.Branch
1106+
- Text.CheckoutBranchFromStash.Stash
10641107
- Text.CommandPalette.Branches
10651108
- Text.CommandPalette.BranchesAndTags
10661109
- Text.CommandPalette.RepositoryActions
@@ -1136,6 +1179,7 @@ This document shows the translation status of each locale file in the repository
11361179
- Text.DirtyState.HasLocalChanges
11371180
- Text.DirtyState.HasPendingPullOrPush
11381181
- Text.DirtyState.UpToDate
1182+
- Text.Discard.IncludeModified
11391183
- Text.Discard.IncludeUntracked
11401184
- Text.DropHead
11411185
- Text.DropHead.Commit
@@ -1250,6 +1294,7 @@ This document shows the translation status of each locale file in the repository
12501294
- Text.SquashOrFixup.Into
12511295
- Text.Stash.Mode
12521296
- Text.StashCM.ApplyFileChanges
1297+
- Text.StashCM.Branch
12531298
- Text.StashCM.CopyMessage
12541299
- Text.Submodule.Branch
12551300
- Text.Submodule.CopyBranch

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2026.07
1+
2026.08

src/AI/Agent.cs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
using System.Text;
44
using System.Threading;
55
using System.Threading.Tasks;
6-
using Azure.AI.OpenAI;
7-
using OpenAI;
86
using OpenAI.Chat;
97

108
namespace SourceGit.AI
@@ -18,21 +16,19 @@ public Agent(Service service)
1816

1917
public async Task GenerateCommitMessageAsync(string repo, string changeList, Action<string> onUpdate, CancellationToken cancellation)
2018
{
21-
var endPoint = new Uri(_service.Server);
22-
var client = _service.Server.Contains("openai.azure.com/", StringComparison.Ordinal)
23-
? new AzureOpenAIClient(endPoint, _service.Credential)
24-
: new OpenAIClient(_service.Credential, new() { Endpoint = endPoint });
19+
var chatClient = _service.GetChatClient();
20+
if (chatClient == null)
21+
throw new Exception("Failed to fetch available models from this service. Please check your configuration and try again.");
2522

26-
var chatClient = client.GetChatClient(_service.Model);
2723
var options = new ChatCompletionOptions() { Tools = { ChatTools.GetDetailChangesInFile } };
2824

2925
var userMessageBuilder = new StringBuilder();
3026
userMessageBuilder
3127
.AppendLine("Generate a commit message (follow the rule of conventional commit message) for given git repository.")
3228
.AppendLine("- Read all given changed files before generating. Only binary files (such as images, audios ...) can be skipped.")
3329
.AppendLine("- Output the conventional commit message (with detail changes in list) directly. Do not explain your output nor introduce your answer.")
34-
.AppendLine(string.IsNullOrEmpty(_service.AdditionalPrompt) ? string.Empty : _service.AdditionalPrompt)
35-
.Append("Reposiory path: ").AppendLine(repo.Quoted())
30+
.AppendLine(_service.AdditionalPrompt)
31+
.Append("Repository path: ").AppendLine(repo.Quoted())
3632
.AppendLine("Changed files ('A' means added, 'M' means modified, 'D' means deleted, 'T' means type changed, 'R' means renamed, 'C' means copied): ")
3733
.Append(changeList);
3834

@@ -65,15 +61,15 @@ public async Task GenerateCommitMessageAsync(string repo, string changeList, Act
6561

6662
foreach (var call in completion.ToolCalls)
6763
{
68-
var result = await ChatTools.Process(call, onUpdate);
64+
var result = await ChatTools.ProcessAsync(call, onUpdate);
6965
messages.Add(result);
7066
}
7167

7268
inProgress = true;
7369
break;
7470
}
7571
case ChatFinishReason.ContentFilter:
76-
throw new Exception("Ommitted content due to a content filter flag");
72+
throw new Exception("Omitted content due to a content filter flag");
7773
default:
7874
break;
7975
}

0 commit comments

Comments
 (0)