From dd560ceb467bbb368a3495ddb54f73b01e5dd74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=87=AF?= Date: Sun, 30 Aug 2026 20:02:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=9A=E5=95=86=E6=B2=99=E7=AE=B1?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=A4=B4=E4=BB=85=E5=9C=A8=E5=8F=AF=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E7=9A=84=20Markdown=20=E4=BA=A7=E7=89=A9=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=8F=90=E4=BA=A4=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Step2SandboxLayout.tsx | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/frontend-web/src/roundtable-planning/components/Step2SandboxLayout.tsx b/frontend-web/src/roundtable-planning/components/Step2SandboxLayout.tsx index 509700f8..f87c424a 100644 --- a/frontend-web/src/roundtable-planning/components/Step2SandboxLayout.tsx +++ b/frontend-web/src/roundtable-planning/components/Step2SandboxLayout.tsx @@ -144,6 +144,25 @@ export function Step2SandboxLayout({ }, [artifacts, isStreaming, seatMessages]); const previewThreadId = activeThreadId ?? ""; + const selectedArtifactTarget = useMemo(() => { + const target = { + threadId: previewThreadId, + path: selectedArtifact ?? "", + content: selectedArtifactContent, + }; + return taskArtifactSubmission?.targetFor(target) ?? target; + }, [ + previewThreadId, + selectedArtifact, + selectedArtifactContent, + taskArtifactSubmission, + ]); + // 8BF 等接入任务过程产物提交的页面,用提交按钮替换文件类型;其余普通/任务深链 + // 会商仍保留原有文件类型徽标。非 Markdown 产物本身不能提交,也应显示类型。 + const showTaskArtifactSubmit = Boolean( + taskArtifactSubmission?.enabled + && taskArtifactSubmission.isMarkdown(selectedArtifactTarget), + ); const artifactPanelBody = (
- )} + ) : undefined} + headerLeadingActionBare={showTaskArtifactSubmit} /> ) : (