diff --git a/apps/web/src/components/sidebar/SidebarThreadRow.tsx b/apps/web/src/components/sidebar/SidebarThreadRow.tsx
index 3e1695e63f0a7..ac4282859eb32 100644
--- a/apps/web/src/components/sidebar/SidebarThreadRow.tsx
+++ b/apps/web/src/components/sidebar/SidebarThreadRow.tsx
@@ -2,7 +2,6 @@ import { useAtomMount } from "@effect/atom-react";
import { asLaunchingThread } from "@t3tools/client-runtime/state/thread-inbox";
import { ThreadHoverCard, ThreadHoverCardPopup } from "../ThreadHoverCard";
import { ThreadTerminalStatusButton } from "../ThreadStatusIndicators";
-import { discardComposerDraft } from "../../lib/discardComposerDraft";
import { contextMenuSourceOf } from "../../contextMenuSource";
import { requestCustomSnooze } from "../CustomSnoozeDialog";
import { useSupportsMultiplePullRequests } from "~/hooks/useSupportsMultiplePullRequests";
@@ -56,7 +55,6 @@ import {
TerminalIcon,
Undo2Icon,
UserRoundIcon,
- XIcon,
} from "lucide-react";
import {
memo,
@@ -727,11 +725,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
const terminalStatus = terminalStatusFromRunningIds(runningTerminalIds, messages);
const terminalProcessCount = runningTerminalIds.length;
const hasUnsentDraft = useThreadHasUnsentDraft(threadRef) && !props.isRouteThread;
- const handleDiscardDraftClick = (event: ReactMouseEvent) => {
- event.preventDefault();
- event.stopPropagation();
- discardComposerDraft(threadRef);
- };
const gitCwd = thread.worktreePath ?? props.project?.workspaceRoot ?? null;
const linkedPullRequestStatus = useLinkedThreadPullRequest(
@@ -1663,7 +1656,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
)}
- {props.settlementSupported || showSnoozeButton || hasUnsentDraft ? (
+ {props.settlementSupported || showSnoozeButton ? (
- {hasUnsentDraft ? (
-
-
- }
- >
-
-
-
- Discard draft
-
-
- ) : null}
{showSnoozeButton ? (