Skip to content

Agent Zero AI framework

rm showThoughts and showJSON

3clyp509dea6efe8098
diff --git a/webui/components/messages/process-group/process-group.css b/webui/components/messages/process-group/process-group.css
index 9160e3fb1..ba3641998 100644
--- a/webui/components/messages/process-group/process-group.css
+++ b/webui/components/messages/process-group/process-group.css
@@ -793,25 +793,16 @@
display: flex;
}
-/* Thoughts KVP row - default visible (controlled by showThoughts) */
+/* Thoughts KVP row */
.step-kvp.msg-thoughts {
- display: flex;
-}
-
-.step-kvp.msg-thoughts.hide-thoughts {
display: none;
}
-/* JSON pre content - default hidden (controlled by showJson) */
+/* JSON pre content - default hidden */
.process-step-detail-content pre.msg-json {
display: none;
}
-.process-step-detail-content pre.msg-json.show-json {
- display: block;
- margin-top: var(--spacing-xs);
-}
-
/* Nested Process Steps (Subordinate Agents) */
.process-nested-container {
diff --git a/webui/components/sidebar/bottom/preferences/preferences-panel.html b/webui/components/sidebar/bottom/preferences/preferences-panel.html
index 516585f76..a03bcf983 100644
--- a/webui/components/sidebar/bottom/preferences/preferences-panel.html
+++ b/webui/components/sidebar/bottom/preferences/preferences-panel.html
@@ -41,20 +41,6 @@
<span class="slider"></span>
</label>
</li>
- <li x-data>
- <span>Show thoughts</span>
- <label class="switch">
- <input type="checkbox" x-model="$store.preferences.showThoughts">
- <span class="slider"></span>
- </label>
- </li>
- <li x-data>
- <span>Show JSON</span>
- <label class="switch">
- <input type="checkbox" x-model="$store.preferences.showJson">
- <span class="slider"></span>
- </label>
- </li>
<li x-data>
<span>Show utility messages</span>
<label class="switch">
diff --git a/webui/components/sidebar/bottom/preferences/preferences-store.js b/webui/components/sidebar/bottom/preferences/preferences-store.js
index b709ccd8a..e75e43e16 100644
--- a/webui/components/sidebar/bottom/preferences/preferences-store.js
+++ b/webui/components/sidebar/bottom/preferences/preferences-store.js
@@ -32,24 +32,6 @@ const model = {
},
_speech: false,
- get showThoughts() {
- return this._showThoughts;
- },
- set showThoughts(value) {
- this._showThoughts = value;
- this._applyShowThoughts(value);
- },
- _showThoughts: true,
-
- get showJson() {
- return this._showJson;
- },
- set showJson(value) {
- this._showJson = value;
- this._applyShowJson(value);
- },
- _showJson: false,
-
get showUtils() {
return this._showUtils;
},
@@ -95,20 +77,10 @@ const model = {
this._collapseProcessGroups = true;
}
- // Load show thoughts preference
- try {
- const storedShowThoughts = localStorage.getItem("showThoughts");
- this._showThoughts = storedShowThoughts !== "false"; // Default true
- } catch {
- this._showThoughts = true;
- }
-
// Apply all preferences
this._applyDarkMode(this._darkMode);
this._applyAutoScroll(this._autoScroll);
this._applySpeech(this._speech);
- this._applyShowThoughts(this._showThoughts);
- this._applyShowJson(this._showJson);
this._applyShowUtils(this._showUtils);
this._applyCollapseProcessGroups(this._collapseProcessGroups);
} catch (e) {
@@ -136,34 +108,6 @@ const model = {
if (!value) speechStore.stopAudio();
},
- _applyShowThoughts(value) {
- localStorage.setItem("showThoughts", value);
-
- // For original messages
- css.toggleCssProperty(
- ".msg-thoughts",
- "display",
- value ? undefined : "none"
- );
- // For process steps - toggle class on all existing elements
- document.querySelectorAll(".step-kvp.msg-thoughts").forEach((el) => {
- el.classList.toggle("hide-thoughts", !value);
- });
-
- // Toggle collapse/expand state for all GEN steps (agent type steps with thoughts)
- document.querySelectorAll('.process-step[data-type="agent"]').forEach((el) => {
- el.classList.toggle("step-expanded", value);
- });
- },
-
- _applyShowJson(value) {
- // For original messages
- css.toggleCssProperty(".msg-json", "display", value ? "block" : "none");
- // For process steps - toggle class on pre elements with msg-json
- document.querySelectorAll(".process-step-detail-content pre.msg-json").forEach((el) => {
- el.classList.toggle("show-json", value);
- });
- },
_applyShowUtils(value) {
// For original messages
diff --git a/webui/js/messages.js b/webui/js/messages.js
index a49d0f95d..9dda7501c 100644
--- a/webui/js/messages.js
+++ b/webui/js/messages.js
@@ -1696,14 +1696,10 @@ function renderStepDetailContent(container, content, kvps, type = null) {
container.appendChild(kvpsDiv);
}
- // Add main content if present (JSON content - controlled by showJson preference)
+ // Add main content if present (JSON content)
if (content && content.trim()) {
const pre = document.createElement("pre");
pre.classList.add("msg-json");
- // Apply current preference state
- if (preferencesStore.showJson) {
- pre.classList.add("show-json");
- }
pre.textContent = truncateText(content, 1000);
container.appendChild(pre);
}
@@ -1716,11 +1712,6 @@ function renderThoughts(container, value) {
const thoughtsDiv = document.createElement("div");
thoughtsDiv.classList.add("step-thoughts", "msg-thoughts");
- // Apply current preference state - hide if showThoughts is false
- if (!preferencesStore.showThoughts) {
- thoughtsDiv.classList.add("hide-thoughts");
- }
-
const thoughtText = cleanTextValue(value);
if (thoughtText) {