Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export function SelectedAssistantButton({
const buttonPadding = isSidebar ? "px-2 py-1.5" : "px-0 py-0.5";
const buttonStyle = isSidebar ? {} : { fontSize: fontSize(-3) };

console.log("debug1 config loading", configLoading);

return (
<ListboxButton
data-testid="assistant-select-button"
Expand All @@ -33,9 +35,7 @@ export function SelectedAssistantButton({
className={`flex flex-row items-center ${isSidebar ? "w-full justify-between" : "gap-1.5"}`}
>
<div className="flex min-w-0 flex-1 flex-row items-center gap-2">
{selectedProfile === null ? (
"Create your first agent"
) : configLoading ? (
{configLoading ? (
<span className="text-description flex flex-row items-center">
<ArrowPathIcon
className={cn(
Expand All @@ -45,6 +45,8 @@ export function SelectedAssistantButton({
/>
Loading
</span>
) : selectedProfile === null ? (
"Create your first agent"
) : (
<>
<AssistantIcon assistant={selectedProfile} size={iconSize} />
Expand Down
9 changes: 9 additions & 0 deletions gui/src/hooks/ParallelListeners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ function ParallelListeners() {
);
if (result.status === "success") {
await handleConfigUpdate(true, result.content);

// (hub) config has not yet loaded - will be updated via configUpdate
if (
result.content.profileId === null &&
result.content.result.configLoadInterrupted
) {
dispatch(setConfigLoading(true));
return;
}
}
dispatch(setConfigLoading(false));
}
Expand Down
Loading