Skip to content

Agent Zero AI framework

Merge branch 'pr/794' into development

frdel054845537eda
diff --cc webui/index.js
index 4a2239eb6,cd9a5482a..d7db5fc6a
--- a/webui/index.js
+++ b/webui/index.js
@@@ -356,25 -356,23 +360,23 @@@ export async function poll()
// No contexts remain – clear state so the welcome screen can surface
deselectChat();
}
- } else {
- tasksStore.setSelected(context);
}
} else {
- const welcomeStore =
- globalThis.Alpine && typeof globalThis.Alpine.store === "function"
- ? globalThis.Alpine.store("welcomeStore")
- : null;
- const welcomeVisible = Boolean(welcomeStore && welcomeStore.isVisible);
-
- // No context selected, try to select the first available item unless welcome screen is active
- if (!welcomeVisible && contexts.length > 0) {
- const firstChatId = chatsStore.firstId();
- if (firstChatId) {
- setContext(firstChatId);
- chatsStore.setSelected(firstChatId);
+ const welcomeStore =
+ globalThis.Alpine && typeof globalThis.Alpine.store === "function"
+ ? globalThis.Alpine.store("welcomeStore")
+ : null;
+ const welcomeVisible = Boolean(welcomeStore && welcomeStore.isVisible);
+
+ // No context selected, try to select the first available item unless welcome screen is active
+ if (!welcomeVisible && contexts.length > 0) {
+ const firstChatId = chatsStore.firstId();
+ if (firstChatId) {
+ setContext(firstChatId);
+ chatsStore.setSelected(firstChatId);
+ }
}
}
- }
lastLogVersion = response.log_version;
lastLogGuid = response.log_guid;