diff --git a/src/app.tsx b/src/app.tsx index 434c59e..e961332 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -306,6 +306,29 @@ export function App() { > {Tr("DEL")} + {chatStore.develop_mode && ( + { + if ( + !confirm( + "Are you sure you want to delete **ALL** chat history?" + ) + ) + return; + for (const i of allChatStoreIndexes) { + console.log("remove item", `${STORAGE_NAME}-${i}`); + localStorage.removeItem(`${STORAGE_NAME}-${i}`); + } + setAllChatStoreIndexes([]); + setSelectedChatIndex(0); + // reload page + window.location.reload(); + }} + > + {Tr("CLS")} + + )}