From fc0a34ee123f0a5edc05336145ff72d30cb17588 Mon Sep 17 00:00:00 2001 From: Laura Date: Sat, 30 Aug 2025 14:13:24 +0200 Subject: [PATCH] import/export title --- static/js/chat.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/chat.js b/static/js/chat.js index f397ace..e5f40e4 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -511,7 +511,7 @@ _result.classList.toggle("error", result?.startsWith("error: ")); _result.innerHTML = render(result || "*processing*"); - this.#_tool.classList.toggle("invalid", invalid); + this.#_tool.classList.toggle("invalid", !!invalid); this.#_tool.setAttribute("data-tool", name); } else { @@ -1599,6 +1599,7 @@ $export.addEventListener("click", () => { const data = JSON.stringify({ + title: chatTitle, message: $message.value, attachments: attachments, role: $role.value, @@ -1639,6 +1640,7 @@ clearMessages(); + storeValue("title", data.title); storeValue("message", data.message); storeValue("attachments", data.attachments); storeValue("role", data.role);