@@ -58,7 +58,7 @@ function makeSettings(gatewayUrl: string, overrides: Partial<UiSettings> = {}):
5858 chatShowToolCalls : true ,
5959 splitRatio : 0.6 ,
6060 navCollapsed : false ,
61- navWidth : 220 ,
61+ navWidth : 258 ,
6262 sidebarPinnedRoutes : [ "overview" ] ,
6363 sidebarMoreExpanded : false ,
6464 borderRadius : 50 ,
@@ -167,7 +167,7 @@ describe("loadSettings default gateway URL derivation", () => {
167167 chatAutoScroll : "near-bottom" ,
168168 splitRatio : 0.6 ,
169169 navCollapsed : false ,
170- navWidth : 220 ,
170+ navWidth : 258 ,
171171 sidebarPinnedRoutes : [ "overview" ] ,
172172 sidebarMoreExpanded : false ,
173173 borderRadius : 50 ,
@@ -202,7 +202,7 @@ describe("loadSettings default gateway URL derivation", () => {
202202 chatAutoScroll : "near-bottom" ,
203203 splitRatio : 0.6 ,
204204 navCollapsed : false ,
205- navWidth : 220 ,
205+ navWidth : 258 ,
206206 sidebarPinnedRoutes : [ "overview" ] ,
207207 sidebarMoreExpanded : false ,
208208 borderRadius : 50 ,
@@ -235,7 +235,7 @@ describe("loadSettings default gateway URL derivation", () => {
235235 chatAutoScroll : "near-bottom" ,
236236 splitRatio : 0.6 ,
237237 navCollapsed : false ,
238- navWidth : 220 ,
238+ navWidth : 258 ,
239239 sidebarPinnedRoutes : [ "overview" ] ,
240240 sidebarMoreExpanded : false ,
241241 borderRadius : 50 ,
@@ -253,7 +253,7 @@ describe("loadSettings default gateway URL derivation", () => {
253253 chatAutoScroll : "near-bottom" ,
254254 splitRatio : 0.6 ,
255255 navCollapsed : false ,
256- navWidth : 220 ,
256+ navWidth : 258 ,
257257 sidebarPinnedRoutes : [ "overview" ] ,
258258 sidebarMoreExpanded : false ,
259259 borderRadius : 50 ,
@@ -283,7 +283,7 @@ describe("loadSettings default gateway URL derivation", () => {
283283 chatShowToolCalls : true ,
284284 splitRatio : 0.6 ,
285285 navCollapsed : false ,
286- navWidth : 220 ,
286+ navWidth : 258 ,
287287 sidebarPinnedRoutes : [ "overview" ] ,
288288 sidebarMoreExpanded : false ,
289289 borderRadius : 50 ,
@@ -303,7 +303,7 @@ describe("loadSettings default gateway URL derivation", () => {
303303 chatAutoScroll : "near-bottom" ,
304304 splitRatio : 0.6 ,
305305 navCollapsed : false ,
306- navWidth : 220 ,
306+ navWidth : 258 ,
307307 sidebarPinnedRoutes : [ "overview" ] ,
308308 sidebarMoreExpanded : false ,
309309 borderRadius : 50 ,
@@ -338,7 +338,7 @@ describe("loadSettings default gateway URL derivation", () => {
338338 chatAutoScroll : "near-bottom" ,
339339 splitRatio : 0.6 ,
340340 navCollapsed : false ,
341- navWidth : 220 ,
341+ navWidth : 258 ,
342342 sidebarPinnedRoutes : [ "sessions" , "cron" ] ,
343343 sidebarMoreExpanded : true ,
344344 borderRadius : 50 ,
@@ -347,6 +347,7 @@ describe("loadSettings default gateway URL derivation", () => {
347347
348348 expect ( loadSettings ( ) . sidebarPinnedRoutes ) . toEqual ( [ "sessions" , "cron" ] ) ;
349349 expect ( loadSettings ( ) . sidebarMoreExpanded ) . toBe ( true ) ;
350+ expect ( loadSettings ( ) . navWidth ) . toBe ( 258 ) ;
350351
351352 // Corrupt the persisted list; load falls back to the default pinned set.
352353 const scopedKey = `openclaw.control.settings.v1:${ gwUrl } ` ;
@@ -356,10 +357,12 @@ describe("loadSettings default gateway URL derivation", () => {
356357 > ;
357358 persisted . sidebarPinnedRoutes = "sessions" ;
358359 persisted . sidebarMoreExpanded = "yes" ;
360+ persisted . navWidth = 220 ;
359361 localStorage . setItem ( scopedKey , JSON . stringify ( persisted ) ) ;
360362
361363 expect ( loadSettings ( ) . sidebarPinnedRoutes ) . toEqual ( [ "overview" ] ) ;
362364 expect ( loadSettings ( ) . sidebarMoreExpanded ) . toBe ( false ) ;
365+ expect ( loadSettings ( ) . navWidth ) . toBe ( 258 ) ;
363366 } ) ;
364367
365368 it ( "normalizes persisted text scale to the nearest supported stop" , ( ) => {
@@ -475,7 +478,7 @@ describe("loadSettings default gateway URL derivation", () => {
475478 chatShowToolCalls : true ,
476479 splitRatio : 0.6 ,
477480 navCollapsed : false ,
478- navWidth : 220 ,
481+ navWidth : 258 ,
479482 sidebarPinnedRoutes : [ "overview" ] ,
480483 sidebarMoreExpanded : false ,
481484 borderRadius : 50 ,
@@ -491,7 +494,7 @@ describe("loadSettings default gateway URL derivation", () => {
491494 chatShowToolCalls : true ,
492495 splitRatio : 0.6 ,
493496 navCollapsed : false ,
494- navWidth : 220 ,
497+ navWidth : 258 ,
495498 sidebarPinnedRoutes : [ "overview" ] ,
496499 sidebarMoreExpanded : false ,
497500 borderRadius : 50 ,
@@ -592,7 +595,7 @@ describe("loadSettings default gateway URL derivation", () => {
592595 chatShowToolCalls : true ,
593596 splitRatio : 0.6 ,
594597 navCollapsed : false ,
595- navWidth : 220 ,
598+ navWidth : 258 ,
596599 sidebarPinnedRoutes : [ "overview" ] ,
597600 sidebarMoreExpanded : false ,
598601 borderRadius : 50 ,
@@ -623,7 +626,7 @@ describe("loadSettings default gateway URL derivation", () => {
623626 chatShowToolCalls : true ,
624627 splitRatio : 0.6 ,
625628 navCollapsed : false ,
626- navWidth : 220 ,
629+ navWidth : 258 ,
627630 sidebarPinnedRoutes : [ "overview" ] ,
628631 sidebarMoreExpanded : false ,
629632 borderRadius : 50 ,
@@ -668,7 +671,7 @@ describe("loadSettings default gateway URL derivation", () => {
668671 chatShowToolCalls : true ,
669672 splitRatio : 0.6 ,
670673 navCollapsed : false ,
671- navWidth : 220 ,
674+ navWidth : 258 ,
672675 sidebarPinnedRoutes : [ "overview" ] ,
673676 sidebarMoreExpanded : false ,
674677 borderRadius : 50 ,
@@ -712,7 +715,7 @@ describe("loadSettings default gateway URL derivation", () => {
712715 chatShowToolCalls : true ,
713716 splitRatio : 0.6 ,
714717 navCollapsed : false ,
715- navWidth : 220 ,
718+ navWidth : 258 ,
716719 sidebarPinnedRoutes : [ "overview" ] ,
717720 sidebarMoreExpanded : false ,
718721 borderRadius : 50 ,
0 commit comments