From 405ad7808cca96fd3176f93a1f185a39efbf6c68 Mon Sep 17 00:00:00 2001 From: Linghong Date: Tue, 15 Sep 2026 00:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=94=E7=A6=BB=E7=AD=96=E5=88=92=E6=8E=A8?= =?UTF-8?q?=E7=90=86=E5=B1=95=E7=A4=BA=E4=B8=8EGameAgent=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 showDesignReasoning 开关,明确控制策划 reasoning 渲染 仅在 planningV2Active 时传入策划推理展示开关 保持 GameAgent 原有实时回复与 Markdown 行为不变 --- apps/ai-game-creator-shell/src/App.tsx | 1 + .../ProjectSupervisorView.tsx | 31 ++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index e8f3754a3..58526a3db 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -11946,6 +11946,7 @@ export function App({ ? directCodexTransientReply : projectSupervisorTransientReply } + showDesignReasoning={planningV2Active} designReasoning={planningV2Reasoning} designReasoningEntries={ useDesignAgentSurface ? (designAgentView?.reasoningEntries ?? []) : [] diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx index 36d6785c8..096a53a00 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx @@ -100,6 +100,7 @@ type ProjectSupervisorViewProps = RuntimePanelProps & { projectPath: string; showProfessionalCollaboration?: boolean; transientReply: string; + showDesignReasoning?: boolean; designReasoning?: string; designReasoningEntries?: DesignReasoningEntry[]; visibleMessages: ChatMessage[]; @@ -153,6 +154,7 @@ export function ProjectSupervisorView({ projectPath, showProfessionalCollaboration = true, transientReply, + showDesignReasoning = false, designReasoning = '', designReasoningEntries = [], visibleMessages, @@ -266,7 +268,7 @@ export function ProjectSupervisorView({ role={message.role} text={projectSupervisorChatMessageText(message)} /> - {message.reasoningText ? ( + {showDesignReasoning && message.reasoningText ? (
))} - {designReasoningEntries - .filter((entry) => !entry.messageId) - .map((entry) => ( -
- 思考过程 -
{entry.text}
-
- ))} - {designReasoning ? ( + {showDesignReasoning && + designReasoningEntries + .filter((entry) => !entry.messageId) + .map((entry) => ( +
+ 思考过程 +
{entry.text}
+
+ ))} + {showDesignReasoning && designReasoning ? (