fix: preserve observer promotion for ordinary release

This commit is contained in:
阿白叔 committed 2026-11-17 13:37:36 +08:00
1 parent 5e9509e573
commit c1e259603a
2 files changed
+10 -2

No files matched your search

+2 -2
View File
@@ -839,11 +839,11 @@ def _request_close(row, *, stop=None):
return {'release_status':'WAITING','detail':'取消启动会话的用户或 Windows 会话未确认'}
if stop is not None and stop.is_set():
return {'release_status':'CANCELLED','detail':'已停止释放'}
if proof['job'].get('diagnostic_only') is False:
return _ordinary_startup_close(row,handle,proof,stop=stop)
from .session_record import handoff_session
record_path = Path(proof['record_path'])
handoff_session(record_path, evidence_root=record_path.parent, observe_only=False)
if proof['job'].get('diagnostic_only') is False:
return _ordinary_startup_close(row,handle,proof,stop=stop)
from .operation_queue import native_phase
# This confirmed no-write native cleanup has its own single bounded
# budget; metadata inactivity must not abandon it between No and Close.