-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: AI history view crashing on first use
The AI history view sometimes crashed on first use when the user tried to select an agent. This was caused by an empty agent list bound in the initial UI. Refactors the history view by making sure that the history view is only instantiated once it is shown instead of early in application start. This avoids binding a still empty list of agent contributions to the UI. Also adds fallback content in case there are no registered agents as the used 'SelectComponent' crashes with empty options. Also moves the history sort change tracking outside of the widget. Previously this was broken as only the initial widget was tracked.
- Loading branch information
Showing
2 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters