From bd8e33eb60382ddf1a60ae8fc3955db7752b3655 Mon Sep 17 00:00:00 2001 From: Linghong Date: Sat, 5 Sep 2026 09:11:05 +0000 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8=E7=AD=96=E5=88=92V2=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=87=8D=E8=AF=95=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provider 失败时只展示错误信息 避免误调用通用 Supervisor 重试链路 --- .../PlanningLaneRuntimeStrip.tsx | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/PlanningLaneRuntimeStrip.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/PlanningLaneRuntimeStrip.tsx index f3d7c1375..b6b8014b5 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/PlanningLaneRuntimeStrip.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/PlanningLaneRuntimeStrip.tsx @@ -5,7 +5,6 @@ import type { AgentRuntimeUserInputRequest, } from '../../app/types'; import { - agentRuntimeCanRetry, AgentRuntimeUserInputCard, projectRuntimeVisibleError, } from '../agent-runtime'; @@ -65,22 +64,10 @@ export function PlanningLaneRuntimeStrip({ (runtime.status === 'needs-reconciliation' || runtime.phase === 'needs-reconciliation'), ); - const stopped = Boolean( - runtime && - (runtime.status === 'failed' || - runtime.phase === 'failed' || - ((runtime.status === 'cancelled' || runtime.phase === 'cancelled') && - (runtime.taskQueue?.pending ?? 0) === 0)), - ); - const canRetry = Boolean( - !readOnly && - runtime && - !runtime.pendingToolAction && - stopped && - agentRuntimeCanRetry(runtime.status), - ); - const showRecovery = - !readOnly && runtime && (needsReconciliation || canRetry); + // Planning V2 has no supported manual retry path. Its Provider failure is + // terminal for the current session; exposing the generic Supervisor retry + // would incorrectly enter the retired V1 Runtime and report a busy service. + const showRecovery = false; // 与完整面板同源:App 层的操作错误(如「请先回答当前的澄清问题」)优先,其次是 // run 自己记下的失败原因。这是原面板里唯一真正面向用户的一行文字,照搬。 const rawErrorDetail = error || runtime?.error || '';