@@ -21,6 +21,12 @@ export const MAX_CUSTOM_MODEL_LENGTH = 256;
2121export const TimestampFormat = Schema . Literals ( [ "locale" , "12-hour" , "24-hour" ] ) ;
2222export type TimestampFormat = typeof TimestampFormat . Type ;
2323export const DEFAULT_TIMESTAMP_FORMAT : TimestampFormat = "locale" ;
24+ export const SidebarProjectSortOrder = Schema . Literals ( [ "updated_at" , "created_at" , "manual" ] ) ;
25+ export type SidebarProjectSortOrder = typeof SidebarProjectSortOrder . Type ;
26+ export const DEFAULT_SIDEBAR_PROJECT_SORT_ORDER : SidebarProjectSortOrder = "updated_at" ;
27+ export const SidebarThreadSortOrder = Schema . Literals ( [ "updated_at" , "created_at" ] ) ;
28+ export type SidebarThreadSortOrder = typeof SidebarThreadSortOrder . Type ;
29+ export const DEFAULT_SIDEBAR_THREAD_SORT_ORDER : SidebarThreadSortOrder = "updated_at" ;
2430type CustomModelSettingsKey = "customCodexModels" | "customClaudeModels" ;
2531export type ProviderCustomModelConfig = {
2632 provider : ProviderKind ;
@@ -58,6 +64,12 @@ export const AppSettingsSchema = Schema.Struct({
5864 confirmThreadDelete : Schema . Boolean . pipe ( withDefaults ( ( ) => true ) ) ,
5965 diffWordWrap : Schema . Boolean . pipe ( withDefaults ( ( ) => false ) ) ,
6066 enableAssistantStreaming : Schema . Boolean . pipe ( withDefaults ( ( ) => false ) ) ,
67+ sidebarProjectSortOrder : SidebarProjectSortOrder . pipe (
68+ withDefaults ( ( ) => DEFAULT_SIDEBAR_PROJECT_SORT_ORDER ) ,
69+ ) ,
70+ sidebarThreadSortOrder : SidebarThreadSortOrder . pipe (
71+ withDefaults ( ( ) => DEFAULT_SIDEBAR_THREAD_SORT_ORDER ) ,
72+ ) ,
6173 timestampFormat : TimestampFormat . pipe ( withDefaults ( ( ) => DEFAULT_TIMESTAMP_FORMAT ) ) ,
6274 customCodexModels : Schema . Array ( Schema . String ) . pipe ( withDefaults ( ( ) => [ ] ) ) ,
6375 customClaudeModels : Schema . Array ( Schema . String ) . pipe ( withDefaults ( ( ) => [ ] ) ) ,
0 commit comments