allow toggling visibility of the assistant's thinking block

This commit is contained in:
Markus Ylisiurunen 2025-12-04 20:48:56 +02:00
parent 029a04c43b
commit 590db4b6cf
4 changed files with 65 additions and 6 deletions

View file

@ -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();
}
}