allow toggling visibility of the assistant's thinking block
This commit is contained in:
@@ -16,6 +16,7 @@ export interface Settings {
|
||||
queueMode?: "all" | "one-at-a-time";
|
||||
theme?: string;
|
||||
compaction?: CompactionSettings;
|
||||
hideThinkingBlock?: boolean;
|
||||
}
|
||||
|
||||
export class SettingsManager {
|
||||
@@ -143,4 +144,13 @@ export class SettingsManager {
|
||||
keepRecentTokens: this.getCompactionKeepRecentTokens(),
|
||||
};
|
||||
}
|
||||
|
||||
getHideThinkingBlock(): boolean {
|
||||
return this.settings.hideThinkingBlock ?? false;
|
||||
}
|
||||
|
||||
setHideThinkingBlock(hide: boolean): void {
|
||||
this.settings.hideThinkingBlock = hide;
|
||||
this.save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user