@@ -188,6 +188,7 @@ export const UI_APPEARANCE_DEFAULTS = {
188188 textScale : 100 ,
189189 sidebarLiveActivity : true ,
190190 chatMessageMaxWidth : "48rem" ,
191+ chatCollapseTaskProgress : false ,
191192 chatSendShortcut : "enter" ,
192193 catalogOpenTarget : "viewer" ,
193194 composerHoldToRecord : true ,
@@ -211,6 +212,8 @@ export type UiSettings = {
211212 chatShowThinking : boolean ;
212213 chatShowToolCalls : boolean ;
213214 chatPersistCommentary ?: boolean ;
215+ // Browser-local presentation preference; false preserves active-card auto-expand.
216+ chatCollapseTaskProgress ?: boolean ;
214217 chatSendShortcut ?: ChatSendShortcut ;
215218 chatFollowUpMode ?: ChatFollowUpMode ; // Default handling for messages sent while a run is active
216219 catalogOpenTarget ?: CatalogOpenTarget ;
@@ -468,6 +471,7 @@ export function loadSettings(): UiSettings {
468471 chatShowThinking : true ,
469472 chatShowToolCalls : true ,
470473 chatPersistCommentary : true ,
474+ chatCollapseTaskProgress : UI_APPEARANCE_DEFAULTS . chatCollapseTaskProgress ,
471475 chatSendShortcut : UI_APPEARANCE_DEFAULTS . chatSendShortcut ,
472476 catalogOpenTarget : UI_APPEARANCE_DEFAULTS . catalogOpenTarget ,
473477 navCollapsed : false ,
@@ -541,6 +545,10 @@ export function loadSettings(): UiSettings {
541545 typeof parsed . chatPersistCommentary === "boolean"
542546 ? parsed . chatPersistCommentary
543547 : defaults . chatPersistCommentary ,
548+ chatCollapseTaskProgress :
549+ typeof parsed . chatCollapseTaskProgress === "boolean"
550+ ? parsed . chatCollapseTaskProgress
551+ : defaults . chatCollapseTaskProgress ,
544552 chatSendShortcut : normalizeChatSendShortcut ( parsed . chatSendShortcut ) ,
545553 chatFollowUpMode : normalizeChatFollowUpModeOverride ( parsed . chatFollowUpMode ) ,
546554 catalogOpenTarget : normalizeCatalogOpenTarget ( parsed . catalogOpenTarget ) ,
@@ -689,6 +697,7 @@ function persistSettings(next: UiSettings, options: { selectGateway?: boolean }
689697 chatShowThinking : next . chatShowThinking ,
690698 chatShowToolCalls : next . chatShowToolCalls ,
691699 chatPersistCommentary : next . chatPersistCommentary ?? true ,
700+ ...( next . chatCollapseTaskProgress === true ? { chatCollapseTaskProgress : true } : { } ) ,
692701 ...( normalizeChatSendShortcut ( next . chatSendShortcut ) === "modifier-enter"
693702 ? { chatSendShortcut : "modifier-enter" as const }
694703 : { } ) ,
0 commit comments