|
|
@@ -737,6 +737,15 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
|
|
|
dialog.clear()
|
|
|
},
|
|
|
},
|
|
|
+ {
|
|
|
+ title: kv.get("clear_prompt_save_history", false) ? "Don't include cleared prompts in history" : "Include cleared prompts in history",
|
|
|
+ value: "app.toggle.clear_prompt_history",
|
|
|
+ category: "System",
|
|
|
+ onSelect: (dialog) => {
|
|
|
+ kv.set("clear_prompt_save_history", !kv.get("clear_prompt_save_history", false))
|
|
|
+ dialog.clear()
|
|
|
+ },
|
|
|
+ },
|
|
|
])
|
|
|
|
|
|
event.on(TuiEvent.CommandExecute.type, (evt) => {
|