禁用策划V2失败重试入口
Provider 失败时只展示错误信息 避免误调用通用 Supervisor 重试链路
This commit is contained in:
+4
-17
@@ -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 || '';
|
||||
|
||||
Reference in New Issue
Block a user