From 7c2efbc1caaf62dd8a942cf0dfe3b92858565e64 Mon Sep 17 00:00:00 2001 From: ji ruo <79234113+RuoJi6@users.noreply.github.com> Date: Tue, 20 Oct 2026 12:19:40 +0800 Subject: [PATCH] fix: link intelligence conversation column directly to sessions --- web/src/components/intelligence-panel.tsx | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/web/src/components/intelligence-panel.tsx b/web/src/components/intelligence-panel.tsx index c243122..3f138d9 100644 --- a/web/src/components/intelligence-panel.tsx +++ b/web/src/components/intelligence-panel.tsx @@ -44,6 +44,10 @@ function time(value: string) { return new Date(value).toLocaleString("zh-CN"); } +function conversationHref(item: TaskIntelligence) { + return `/function/tasks/detail?id=${item.task_id}&tab=sessions${item.source_session ? `&session=${encodeURIComponent(item.source_session)}` : ""}`; +} + function AssetLinks({ ids, onNavigate }: { ids: number[]; onNavigate?: () => void }) { return ids.length ? ( @@ -247,7 +251,7 @@ export function IntelligencePanel({ 类别 / 标题 内容 / 来源证据 状态 - 来源 + 对话 资产 发现时间 操作 @@ -283,15 +287,11 @@ export function IntelligencePanel({
- - 任务 #{item.task_id} + + {item.source_session ? "查看对话" : "查看任务对话"} - {item.worker || "Agent"} + 任务 #{item.task_id} · {item.worker || "Agent"} {item.node_id ? ` · 节点 #${item.node_id}` : ""} {item.inherited ? 继承 · 只读 : null} @@ -415,11 +415,7 @@ export function IntelligencePanel({ 发现于 {time(selected.created_at)}
- + {selected.source_session ? "查看来源任务会话" : "查看来源任务"}