Fixed answers that quietly skipped your data sources (#968)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-09-14 11:20:57 +02:00
1 parent 828541ce93
commit 6e735523c6
10 files changed
+142 -8

No files matched your search

@@ -240,6 +240,12 @@ public sealed class AIJobService(SettingsManager settingsManager, MessageBus mes
catch (Exception e)
{
logger.LogError(e, "Skipping the RAG process due to an error.");
//
// The answer is about to be created without the data the user expected it to use.
// Without this message, that answer is indistinguishable from one that did use it:
//
await MessageBus.INSTANCE.SendWarning(new(Icons.Material.Filled.Source, TB("Your data sources could not be used. This answer was created without them.")));
}
token.ThrowIfCancellationRequested();