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 ? "查看来源任务会话" : "查看来源任务"}