This build was committed by a bot.

This commit is contained in:
github-actions[bot]
2026-01-17 21:06:36 +00:00
parent 8aeda2a06c
commit 797bea6398
3 changed files with 11 additions and 2 deletions

View File

@@ -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://")) {