fix(maf): recover clarification checkpoints stuck in running
Re-enter clarification recovery even when manager_dispatch is already completed, and expand V2 runner tests for group_chat seat filtering and recover(). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f9a5b5bc1e
commit
a786cdcad0
5 files changed
+245
-56
No files matched your search
@@ -358,6 +358,15 @@ class ManagerDispatchExecutor(Executor):
|
||||
|
||||
@handler(input=Any, output=dict)
|
||||
async def handle(self, message: Any, ctx: WorkflowContext) -> None:
|
||||
# V2 clarification checkpoints must always re-enter the clarification
|
||||
# recovery branch, even when manager_dispatch is already marked
|
||||
# completed — otherwise a recovered clarification run would stay
|
||||
# "running" instead of landing in waiting_input.
|
||||
if self._state.dispatch_contract_enabled and self._state.intent_type == "clarification":
|
||||
self._state.stage = "planning"
|
||||
await _resolve_manager_dispatch(self, ctx)
|
||||
return
|
||||
|
||||
if self._state.is_completed(self._node_id):
|
||||
await ctx.send_message({
|
||||
"decision": self._dispatch_decision(),
|
||||
|
||||
Reference in new issue
Block a user