合并 master 最新提交
Project CI / Repository checks (pull_request) Successful in 1m1s
Project CI / Frontend tests (pull_request) Successful in 3m4s
Project CI / Backend tests (pull_request) Successful in 3m48s
Project CI / Native shell tests (pull_request) Successful in 13m9s

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-08 16:10:37 +00:00
@@ -1435,11 +1435,13 @@ fn finalize_live_process_session(
output.needs_reconciliation = true;
}
let needs_reconciliation = output.needs_reconciliation;
live.output_changed.notify_all();
drop(output);
// 只有 live registry 已收束后才能发布可信终态。等待 `output_changed` 的调用方
// 可能立即执行 run 级取消清理,而 registry 中的任何 live 条目都会被视为未完成会话。
if record_persisted && !needs_reconciliation {
if let Ok(mut registry) = process_session_registry().lock() {
registry.sessions.remove(&live.process_id);
}
}
live.output_changed.notify_all();
drop(output);
}