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) {
424424 timestampFormat: DEFAULT_UNIFIED_SETTINGS.timestampFormat,
425425 diffWordWrap: DEFAULT_UNIFIED_SETTINGS.diffWordWrap,
426426 diffIgnoreWhitespace: DEFAULT_UNIFIED_SETTINGS.diffIgnoreWhitespace,
427 sidebarThreadPreviewCount: DEFAULT_UNIFIED_SETTINGS.sidebarThreadPreviewCount,
427428 autoOpenPlanSidebar: DEFAULT_UNIFIED_SETTINGS.autoOpenPlanSidebar,
428429 enableAssistantStreaming: DEFAULT_UNIFIED_SETTINGS.enableAssistantStreaming,
429430 defaultThreadEnvMode: DEFAULT_UNIFIED_SETTINGS.defaultThreadEnvMode,
packages/contracts/src/settings.ts+1
......@@ -497,6 +497,7 @@ export const ClientSettingsPatch = Schema.Struct({
497497 ),
498498 sidebarProjectSortOrder: Schema.optionalKey(SidebarProjectSortOrder),
499499 sidebarThreadSortOrder: Schema.optionalKey(SidebarThreadSortOrder),
500 sidebarThreadPreviewCount: Schema.optionalKey(SidebarThreadPreviewCount),
500501 timestampFormat: Schema.optionalKey(TimestampFormat),
501502});
502503export type ClientSettingsPatch = typeof ClientSettingsPatch.Type;