diff --git a/frontend-web/src/strategy-components/components/task-components/TaskFxWorkspace.tsx b/frontend-web/src/strategy-components/components/task-components/TaskFxWorkspace.tsx index e251a68b..8813e37c 100644 --- a/frontend-web/src/strategy-components/components/task-components/TaskFxWorkspace.tsx +++ b/frontend-web/src/strategy-components/components/task-components/TaskFxWorkspace.tsx @@ -2,7 +2,7 @@ * 任务深链(rwfx / 任务FX)的「任务工作区」:一个任务挂多个对话(1:N)。 * * 左侧 = 该任务下的对话列表(按 metadata.taskId 过滤)+「新建对话」; - * 右下角 = 常驻浮层红色按钮(编辑 / 下一步 / 清除任务记录),absolute 定位,时刻可见、不被内容挤走; + * 右下角 = 常驻浮动操作条(编辑 / 下一步 / 清除任务记录),absolute 定位,时刻可见、不被内容挤走; * 右侧 = 渲染选中的对话(AgentChatPage,新建对话顶部带目的树闸门面板)。 * * - 进入 chats 索引:有历史 → 跳最新;无历史 → 跳 new(=新建,走闸门)。 @@ -61,44 +61,69 @@ function TaskConversationsList({ taskId, chatsBase }: { taskId: string; chatsBas const currentThreadId = useMemo(() => parseThreadId(pathname, chatsBase), [pathname, chatsBase]); return ( -
-
-
-
+
{isLoading ? ( -
加载中…
+
+ 加载中… +
) : threads.length === 0 ? ( -
暂无对话
+
+ 暂无对话 +
) : ( threads.map((thread) => ( )) )}
+
); } /** - * 右下角常驻红色操作浮层:编辑 / 下一步 / 清除任务记录。 - * absolute 定位在工作区右侧面板内,z-40,时刻可见、不被聊天内容挤走。 + * 左侧任务栏底部操作区:编辑 / 下一步 / 清除任务记录。 + * 跟随任务对话面板布局,不再覆盖右侧聊天输入框。 */ -function TaskFloatingActions({ taskId }: { taskId: string }) { +function TaskActionsPanel({ taskId }: { taskId: string }) { const [clearOpen, setClearOpen] = useState(false); const [clearing, setClearing] = useState(false); @@ -123,32 +148,43 @@ function TaskFloatingActions({ taskId }: { taskId: string }) { return ( <> -
- - - +
+
+
+ 任务操作 +
+
+ + + +
+
!clearing && setClearOpen(o)}> @@ -173,7 +209,7 @@ function TaskFloatingActions({ taskId }: { taskId: string }) { ); } -/** 任务工作区布局:左列表 + 右 Outlet + 右下角常驻红色操作浮层。 */ +/** 任务工作区布局:左列表 + 右 Outlet。 */ export function TaskFxWorkspace({ taskBase }: { taskBase: string }) { const { taskId, chatsBase } = useChatsBase(taskBase); // 预拉配置,保证「编辑/下一步」的同步 URL 构造能读到缓存。 @@ -185,7 +221,6 @@ export function TaskFxWorkspace({ taskBase }: { taskBase: string }) {
-
);