放宽游玩正文判定,并允许错误阶段输入后恢复。
减少长稿被误丢,同时让失败会话可继续推进。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -367,8 +367,10 @@ export function getAllowedEvents(
|
||||
"runtime_failed",
|
||||
];
|
||||
case "done":
|
||||
case "error":
|
||||
return [];
|
||||
case "error":
|
||||
// UI 提供「说明后重试」:允许用户发言拉回 running
|
||||
return ["user_submitted_input"];
|
||||
default:
|
||||
return [];
|
||||
}
|
||||
@@ -393,6 +395,7 @@ export function canApplyEvent(
|
||||
return reason?.kind === "skill_selection";
|
||||
case "user_submitted_input":
|
||||
return (
|
||||
session.phase === "error" ||
|
||||
reason?.kind === "intake" ||
|
||||
reason?.kind === "input" ||
|
||||
reason?.kind === "worker_questions" ||
|
||||
|
||||
Reference in New Issue
Block a user