From 2c8e63446f1d9cfbd91577c89c8173c788ce0062 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Thu, 6 Aug 2026 10:54:51 +0800 Subject: [PATCH] feat(webui): drag sessions into composer mentions --- webui/src/components/ChatList.tsx | 10 +++ .../src/components/thread/ThreadComposer.tsx | 70 ++++++++++++++++--- webui/src/lib/session-drag.ts | 18 +++++ webui/src/tests/chat-list.test.tsx | 34 +++++++++ webui/src/tests/thread-composer.test.tsx | 42 +++++++++++ 5 files changed, 164 insertions(+), 10 deletions(-) create mode 100644 webui/src/lib/session-drag.ts diff --git a/webui/src/components/ChatList.tsx b/webui/src/components/ChatList.tsx index f0d14c2d6..1c7cf3980 100644 --- a/webui/src/components/ChatList.tsx +++ b/webui/src/components/ChatList.tsx @@ -40,6 +40,7 @@ import { visibleSessionsForGroup, type ChatGroupLabels, } from "@/lib/chat-groups"; +import { writeDraggedSession } from "@/lib/session-drag"; import { cn } from "@/lib/utils"; import type { ChatSummary, SidebarDensity, SidebarSortMode } from "@/lib/types"; @@ -276,10 +277,19 @@ export const ChatList = memo(function ChatList({