清理策划V2无效停止状态
Project CI / Repository checks (pull_request) Successful in 2m31s
Project CI / Frontend tests (pull_request) Successful in 2m54s
Project CI / Backend tests (pull_request) Successful in 6m2s
Project CI / Native shell tests (pull_request) Successful in 18m15s

移除没有生产写入路径的 stopped 会话状态

同步清理前端恢复状态映射
This commit is contained in:
2026-09-05 12:51:14 +00:00
parent 90eae50dd3
commit 4efa39420f
2 changed files with 1 additions and 3 deletions
@@ -419,7 +419,6 @@ fn validate_planning_session_v2(session: &PlanningSessionV2) -> Result<(), Strin
| "approved"
| "rejected"
| "provider_failed"
| "stopped"
)
|| session
.capabilities
@@ -715,7 +714,7 @@ fn prepare_turn_v2(
session.status
));
}
if matches!(session.status.as_str(), "approved" | "rejected" | "stopped") {
if matches!(session.status.as_str(), "approved" | "rejected") {
return Err(format!(
"Planning V2 Session 当前状态不可继续:{}",
session.status
@@ -367,7 +367,6 @@ function sessionPhase(session: PlanningSessionV2): PlanningSessionPhase {
case 'rejected':
return 'rejected';
case 'provider_failed':
case 'stopped':
return 'recovery_required';
default:
return 'collecting';