禁用策划V2失败重试入口
Project CI / Frontend tests (pull_request) Successful in 2m53s
Project CI / Native shell tests (pull_request) Successful in 18m26s
Project CI / Repository checks (pull_request) Successful in 2m29s
Project CI / Backend tests (pull_request) Successful in 6m6s

Provider 失败时只展示错误信息

避免误调用通用 Supervisor 重试链路
This commit is contained in:
2026-09-05 09:11:05 +00:00
parent c03d1ef6fc
commit bd8e33eb60
@@ -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 || '';