remove getChatTitles
This commit is contained in:
parent
92e6b54274
commit
17a9765387
5 changed files with 12 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -947,7 +947,6 @@ declare global {
|
|||
fontSize?: number;
|
||||
displayRawMarkdown?: boolean;
|
||||
showChatScrollbar?: boolean;
|
||||
getChatTitles?: boolean;
|
||||
codeWrap?: boolean;
|
||||
}
|
||||
|
||||
|
|
|
|||
1
core/index.d.ts
vendored
1
core/index.d.ts
vendored
|
|
@ -986,7 +986,6 @@ export interface ContinueUIConfig {
|
|||
fontSize?: number;
|
||||
displayRawMarkdown?: boolean;
|
||||
showChatScrollbar?: boolean;
|
||||
getChatTitles?: boolean;
|
||||
codeWrap?: boolean;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue