File tree 5 files changed +12
-9
lines changed
5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -135,11 +135,14 @@ function loadSerializedConfig(
135
135
config . allowAnonymousTelemetry = true ;
136
136
}
137
137
138
- if ( config . ui ?. getChatTitles === undefined ) {
139
- config . ui = {
140
- ...config . ui ,
141
- getChatTitles : true ,
142
- } ;
138
+ // Deprecated getChatTitles property should be accounted for
139
+ // This is noted in docs
140
+ if (
141
+ config . ui &&
142
+ "getChatTitles" in config . ui &&
143
+ config . ui . getChatTitles === false
144
+ ) {
145
+ config . disableSessionTitles = true ;
143
146
}
144
147
145
148
if ( ideSettings . remoteConfigServerUrl ) {
Original file line number Diff line number Diff line change @@ -947,7 +947,6 @@ declare global {
947
947
fontSize?: number;
948
948
displayRawMarkdown?: boolean;
949
949
showChatScrollbar?: boolean;
950
- getChatTitles?: boolean;
951
950
codeWrap?: boolean;
952
951
}
953
952
Original file line number Diff line number Diff line change @@ -986,7 +986,6 @@ export interface ContinueUIConfig {
986
986
fontSize ?: number ;
987
987
displayRawMarkdown ?: boolean ;
988
988
showChatScrollbar ?: boolean ;
989
- getChatTitles ?: boolean ;
990
989
codeWrap ?: boolean ;
991
990
}
992
991
Original file line number Diff line number Diff line change @@ -345,6 +345,8 @@ Example
345
345
346
346
Prevents generating summary titles for each chat session when set to ` true ` .
347
347
348
+ Note that if the deprecated setting ` ui.getChatTitles ` is set to ` false ` , it will override this.
349
+
348
350
### ` ui `
349
351
350
352
Customizable UI settings to control interface appearance and behavior.
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ export const saveCurrentSession = createAsyncThunk<
166
166
let title = state . session . title ;
167
167
if ( title === NEW_SESSION_TITLE ) {
168
168
if (
169
- state . config . config ?. ui ?. getChatTitles &&
169
+ ! state . config . config ?. disableSessionTitles &&
170
170
state . config . defaultModelTitle
171
171
) {
172
172
let assistantResponse = state . session . history
@@ -190,7 +190,7 @@ export const saveCurrentSession = createAsyncThunk<
190
190
}
191
191
}
192
192
}
193
- // Fallbacks if above doesn't work out or getChatTitles = false
193
+ // Fallbacks if above doesn't work out or session titles disabled
194
194
if ( title === NEW_SESSION_TITLE ) {
195
195
title = getChatTitleFromMessage ( state . session . history [ 0 ] . message ) ;
196
196
}
You can’t perform that action at this time.
0 commit comments