Agent Zero AI framework
preferencesStore fix
3clyp5008e6d06241b0
diff --git a/webui/components/messages/process-group/process-group-dom.js b/webui/components/messages/process-group/process-group-dom.jsindex 4e5c27353..8fff556a4 100644--- a/webui/components/messages/process-group/process-group-dom.js+++ b/webui/components/messages/process-group/process-group-dom.js@@ -1,16 +1,17 @@/*** Process group DOM utilities (no store/state)*/+import { store as preferencesStore } from "/components/sidebar/bottom/preferences/preferences-store.js";export function applyModeSteps(detailMode, showUtils) {const mode =detailMode ||- window.Alpine?.store("preferences")?.detailMode ||+ preferencesStore.detailMode ||"current";const showUtilsFlag =typeof showUtils === "boolean"? showUtils- : window.Alpine?.store("preferences")?.showUtils || false;+ : preferencesStore.showUtils || false;const chatHistory = document.getElementById("chat-history");if (!chatHistory) return;diff --git a/webui/js/messages.js b/webui/js/messages.jsindex 25ca6af71..24f41343b 100644--- a/webui/js/messages.js+++ b/webui/js/messages.js@@ -921,7 +921,7 @@ export function drawMessageError(id, type, heading, content, kvps = null) {messageDiv.appendChild(errorGroup);// Check detail mode and expand if needed- const detailMode = window.Alpine?.store("preferences")?.detailMode || "current";+ const detailMode = preferencesStore.detailMode || "current";if (detailMode === "current" || detailMode === "expanded") {errorGroup.classList.add("expanded");}