Skip to content

Commit ef3d58c

Browse files
Fixed issue with data source selection in chat configuration mode (#606)
1 parent 1e29d42 commit ef3d58c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/MindWork AI Studio/Components/DataSourceSelection.razor.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected override async Task OnInitializedAsync()
6565
this.aiBasedSourceSelection = this.DataSourceOptions.AutomaticDataSourceSelection;
6666
this.aiBasedValidation = this.DataSourceOptions.AutomaticValidation;
6767
this.areDataSourcesEnabled = !this.DataSourceOptions.DisableDataSources;
68-
this.waitingForDataSources = this.areDataSourcesEnabled;
68+
this.waitingForDataSources = this.areDataSourcesEnabled && this.SelectionMode is not DataSourceSelectionMode.CONFIGURATION_MODE;
6969

7070
//
7171
// Preselect the data sources. Right now, we cannot filter
@@ -181,7 +181,10 @@ private async Task LoadAndApplyFilters()
181181
{
182182
if(this.DataSourceOptions.DisableDataSources)
183183
return;
184-
184+
185+
if(this.SelectionMode is DataSourceSelectionMode.CONFIGURATION_MODE)
186+
return;
187+
185188
this.waitingForDataSources = true;
186189
this.StateHasChanged();
187190

app/MindWork AI Studio/wwwroot/changelog/v0.9.55.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
- Fixed a bug in the local data sources info dialog (preview feature) for data directories that could cause the app to crash. The error was caused by a background thread producing data while the frontend attempted to display it.
1818
- Fixed a visual bug where a function's preview status was misaligned. You might have seen it in document analysis or the ERI server assistant.
1919
- Fixed a rare bug in the Microsoft Word export for huge documents.
20+
- Fixed a bug in the chat options that occurred when selecting default data sources. Under certain conditions, selecting data sources caused an error that required restarting the app. This preview-only feature (RAG preview) had not been released yet.
2021
- Upgraded dependencies such as Rust, MudBlazor, and others.

0 commit comments

Comments
 (0)