authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-05-07 17:24:40-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-05-07 17:24:40-07:00
log31b52acc8d230f66034f8dc1163cf6b4502ba77e
tree2b3befe28c99a29110a398f2315c03afd7f584fb
parent466d8ee5b0a003b3f735dd25e21273539b515316
signature Signed by PGP key B5690EEEBB952194

[codex] Fix sidebar preview settings reset (#2587)

Co-authored-by: codex <codex@users.noreply.github.com>

2 files changed, 2 insertions(+), 0 deletions(-)

apps/web/src/components/settings/SettingsPanels.tsx+1
...@@ -424,6 +424,7 @@ export function useSettingsRestore(onRestored?: () => void) {...@@ -424,6 +424,7 @@ export function useSettingsRestore(onRestored?: () => void) {
424 timestampFormat: DEFAULT_UNIFIED_SETTINGS.timestampFormat,424 timestampFormat: DEFAULT_UNIFIED_SETTINGS.timestampFormat,
425 diffWordWrap: DEFAULT_UNIFIED_SETTINGS.diffWordWrap,425 diffWordWrap: DEFAULT_UNIFIED_SETTINGS.diffWordWrap,
426 diffIgnoreWhitespace: DEFAULT_UNIFIED_SETTINGS.diffIgnoreWhitespace,426 diffIgnoreWhitespace: DEFAULT_UNIFIED_SETTINGS.diffIgnoreWhitespace,
427 sidebarThreadPreviewCount: DEFAULT_UNIFIED_SETTINGS.sidebarThreadPreviewCount,
427 autoOpenPlanSidebar: DEFAULT_UNIFIED_SETTINGS.autoOpenPlanSidebar,428 autoOpenPlanSidebar: DEFAULT_UNIFIED_SETTINGS.autoOpenPlanSidebar,
428 enableAssistantStreaming: DEFAULT_UNIFIED_SETTINGS.enableAssistantStreaming,429 enableAssistantStreaming: DEFAULT_UNIFIED_SETTINGS.enableAssistantStreaming,
429 defaultThreadEnvMode: DEFAULT_UNIFIED_SETTINGS.defaultThreadEnvMode,430 defaultThreadEnvMode: DEFAULT_UNIFIED_SETTINGS.defaultThreadEnvMode,
packages/contracts/src/settings.ts+1
...@@ -497,6 +497,7 @@ export const ClientSettingsPatch = Schema.Struct({...@@ -497,6 +497,7 @@ export const ClientSettingsPatch = Schema.Struct({
497 ),497 ),
498 sidebarProjectSortOrder: Schema.optionalKey(SidebarProjectSortOrder),498 sidebarProjectSortOrder: Schema.optionalKey(SidebarProjectSortOrder),
499 sidebarThreadSortOrder: Schema.optionalKey(SidebarThreadSortOrder),499 sidebarThreadSortOrder: Schema.optionalKey(SidebarThreadSortOrder),
500 sidebarThreadPreviewCount: Schema.optionalKey(SidebarThreadPreviewCount),
500 timestampFormat: Schema.optionalKey(TimestampFormat),501 timestampFormat: Schema.optionalKey(TimestampFormat),
501});502});
502export type ClientSettingsPatch = typeof ClientSettingsPatch.Type;503export type ClientSettingsPatch = typeof ClientSettingsPatch.Type;