improve reset conversation ui

This commit is contained in:
binary-husky
2025-05-06 22:10:21 +08:00
parent 883b513b91
commit eba48a0f1a
3 changed files with 11 additions and 2 deletions

View File

@@ -1184,6 +1184,15 @@ async function clear_conversation(a, b, c) {
update_conversation_metadata();
let stopButton = document.getElementById("elem_stop");
stopButton.click();
// Save back to local storage
try {
const EVENT_NAME = "gptac_reset_btn_clicked";
window.dispatchEvent(
new CustomEvent(EVENT_NAME, {
detail: ""
})
);
} catch (e) {}
return reset_conversation(a, b);
}