defaultCollapsed leftover for proc-grp
3clyp50 committed
Jan 22, 2026 at 09:54 UTC
8e73cbcb1df64489ba7eb8c122a3fa96498f64f8
1 file changed
-27
webui/components/sidebar/bottom/preferences/preferences-store.js
-27
@@ -42,16 +42,6 @@ const model = {
42
},
43
_showUtils: false,
44
45
- // Process group collapse preference
46
- get collapseProcessGroups() {
47
- return this._collapseProcessGroups;
48
- },
49
- set collapseProcessGroups(value) {
50
- this._collapseProcessGroups = value;
51
- this._applyCollapseProcessGroups(value);
52
- },
53
- _collapseProcessGroups: true, // Default to collapsed
54
-
45
// Chat container width preference for HiDPI/large screens
46
get chatWidth() {
47
return this._chatWidth;
@@ -105,14 +95,6 @@ const model = {
95
this._speech = false; // Default to speech off if localStorage is unavailable
96
}
97
108
- // Load collapse process groups preference
109
- try {
110
- const storedCollapse = localStorage.getItem("collapseProcessGroups");
111
- this._collapseProcessGroups = storedCollapse !== "false"; // Default true
112
- } catch {
113
- this._collapseProcessGroups = true;
114
- }
115
-
98
// Load chat width preference
99
try {
100
const storedChatWidth = localStorage.getItem("chatWidth");
@@ -138,7 +120,6 @@ const model = {
120
this._applyAutoScroll(this._autoScroll);
121
this._applySpeech(this._speech);
122
this._applyShowUtils(this._showUtils);
141
- this._applyCollapseProcessGroups(this._collapseProcessGroups);
123
this._applyChatWidth(this._chatWidth);
124
this._applyDetailMode(this._detailMode);
125
} catch (e) {
@@ -182,12 +163,6 @@ const model = {
163
processGroupStore.applyModeSteps();
164
},
165
185
- _applyCollapseProcessGroups(value) {
186
- localStorage.setItem("collapseProcessGroups", value);
187
- // Update process group store default
188
- processGroupStore.defaultCollapsed = value;
189
- },
190
-
166
_applyChatWidth(value) {
167
localStorage.setItem("chatWidth", value);
168
// Set CSS custom property for chat max-width
@@ -201,8 +176,6 @@ const model = {
176
177
_applyDetailMode(value) {
178
localStorage.setItem("detailMode", value);
204
- // Sync defaultCollapsed based on mode
205
- processGroupStore.defaultCollapsed = value === "collapsed";
179
// Apply mode to all existing DOM elements
180
processGroupStore.applyModeSteps();
181
},