fix: preserve handoff cleanup and ICDB cancellation bindings

This commit is contained in:
阿白叔 committed 2026-11-18 09:05:22 +08:00
1 parent b4737b5102
commit fa1f662e1d
6 files changed
+169 -10

No files matched your search

+7 -1
View File
@@ -1010,7 +1010,7 @@ def _run_verify(request, *, timing, progress=None, flag_reader=None, process_run
from .desktop_worker import DesktopWorker
from .dialog_supervisor import AgentDialogBackend, DialogSupervisor, Win32DialogBackend
from .dialog_models import DialogPhase
from .operation_queue import check_active, native_channel
from .operation_queue import TaskHandoff, check_active, native_channel
check_active()
worker_launch_attempted = False
native = native_channel()
@@ -1322,6 +1322,12 @@ def _run_verify(request, *, timing, progress=None, flag_reader=None, process_run
'detail': '已转后台观察,可查看状态'})
from .operation_queue import hold_native_handoff
hold_native_handoff(process, process.session_record_path)
except TaskHandoff as error:
handoff_result = _handoff_verify_result(error)
if handoff_result.evidence_path:
_write_optional_evidence(handoff_result.evidence_path,
{'block_name': request.block_name, **asdict(handoff_result)})
raise
except Exception as error:
close_errors.append(str(error))
if 'process' in locals():