From 797bea6398cdfd57e52cddb1b564be04d0b85feb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 17 Jan 2026 21:06:36 +0000 Subject: [PATCH] This build was committed by a bot. --- dist/assets/{index-cDg1N2lj.js => index-CxwhROrW.js} | 8 ++++++++ dist/index.html | 3 ++- dist/sw.js | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) rename dist/assets/{index-cDg1N2lj.js => index-CxwhROrW.js} (99%) diff --git a/dist/assets/index-cDg1N2lj.js b/dist/assets/index-CxwhROrW.js similarity index 99% rename from dist/assets/index-cDg1N2lj.js rename to dist/assets/index-CxwhROrW.js index 2b93115..dde98a4 100644 --- a/dist/assets/index-cDg1N2lj.js +++ b/dist/assets/index-CxwhROrW.js @@ -849,6 +849,14 @@ $(el.threadPopover).on("click", async (e) => { th.updatedAt = Date.now(); if (u.startsWith("gh://") && th.status !== "new") th.status = "modified"; } + } else if (act === "duplicate") { + const newId = gid(), msgs = await localforage.getItem(prefix + th.id) || []; + const newTh = { ...th, id: newId, title: th.title + " (Copy)", updatedAt: Date.now() }; + if (u.startsWith("gh://")) newTh.status = "new"; + THREAD.list.unshift(newTh); + await localforage.setItem(prefix + newId, msgs); + await THREAD.save(); + await renderThreads(); } else if (act === "delete") { if (confirm("Delete this chat?")) { if (u.startsWith("gh://")) { diff --git a/dist/index.html b/dist/index.html index c5c6c88..a7d5512 100644 --- a/dist/index.html +++ b/dist/index.html @@ -12,7 +12,7 @@ - + @@ -74,6 +74,7 @@