remove getChatTitles

This commit is contained in:
Dallin Romney 2025-01-22 10:31:01 -08:00
parent 92e6b54274
commit 17a9765387
5 changed files with 12 additions and 9 deletions

View file

@ -135,11 +135,14 @@ function loadSerializedConfig(
config.allowAnonymousTelemetry = true;
}
if (config.ui?.getChatTitles === undefined) {
config.ui = {
...config.ui,
getChatTitles: true,
};
// Deprecated getChatTitles property should be accounted for
// This is noted in docs
if (
config.ui &&
"getChatTitles" in config.ui &&
config.ui.getChatTitles === false
) {
config.disableSessionTitles = true;
}
if (ideSettings.remoteConfigServerUrl) {

View file

@ -947,7 +947,6 @@ declare global {
fontSize?: number;
displayRawMarkdown?: boolean;
showChatScrollbar?: boolean;
getChatTitles?: boolean;
codeWrap?: boolean;
}

1
core/index.d.ts vendored
View file

@ -986,7 +986,6 @@ export interface ContinueUIConfig {
fontSize?: number;
displayRawMarkdown?: boolean;
showChatScrollbar?: boolean;
getChatTitles?: boolean;
codeWrap?: boolean;
}

View file

@ -345,6 +345,8 @@ Example
Prevents generating summary titles for each chat session when set to `true`.
Note that if the deprecated setting `ui.getChatTitles` is set to `false`, it will override this.
### `ui`
Customizable UI settings to control interface appearance and behavior.

View file

@ -166,7 +166,7 @@ export const saveCurrentSession = createAsyncThunk<
let title = state.session.title;
if (title === NEW_SESSION_TITLE) {
if (
state.config.config?.ui?.getChatTitles &&
!state.config.config?.disableSessionTitles &&
state.config.defaultModelTitle
) {
let assistantResponse = state.session.history
@ -190,7 +190,7 @@ export const saveCurrentSession = createAsyncThunk<
}
}
}
// Fallbacks if above doesn't work out or getChatTitles = false
// Fallbacks if above doesn't work out or session titles disabled
if (title === NEW_SESSION_TITLE) {
title = getChatTitleFromMessage(state.session.history[0].message);
}