From 77df98db51d1bfc5861c3d17643f0446a3a6d3b0 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Fri, 31 Jul 2026 10:01:35 -0400 Subject: [PATCH] Revert "feat(tui): delete current session (#39750)" This reverts commit 7814568ba0a88ece89d516a83d6c7612f01a30f3. --- packages/tui/src/routes/session/index.tsx | 27 ----------------------- 1 file changed, 27 deletions(-) diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx index 58b5cccda6..79c36ee4c8 100644 --- a/packages/tui/src/routes/session/index.tsx +++ b/packages/tui/src/routes/session/index.tsx @@ -51,7 +51,6 @@ import { useClient } from "../../context/client" import { useEditorContext } from "../../context/editor" import { openEditor } from "../../editor" import { useDialog } from "../../ui/dialog" -import { DialogConfirm } from "../../ui/dialog-confirm" import { DialogSessionRename } from "../../component/dialog-session-rename" import { DialogMessage } from "./dialog-message" import { DialogFork } from "./dialog-fork" @@ -523,32 +522,6 @@ export function Session() { slash: { name: "rename" }, run: () => DialogSessionRename.show(dialog, route.sessionID, session()?.title), }, - { - title: "Delete session", - id: "session.delete", - group: "Session", - slash: { name: "delete" }, - run: async () => { - const current = session() - if (!current) return - const confirmed = await DialogConfirm.show( - dialog, - "Delete Session", - `Delete "${current.title}"? This action cannot be undone.`, - ) - if (confirmed !== true) return - const error = await client.api.session.remove({ sessionID: route.sessionID }).then( - () => undefined, - (error) => error, - ) - if (!error) return - toast.show({ - message: `Failed to delete session: ${errorMessage(error)}`, - variant: "error", - duration: 5000, - }) - }, - }, { title: "Jump to message", id: "session.timeline",