初始化 Direct 活动回合更新时间
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Failing after 4m59s
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Successful in 5m16s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Successful in 5m21s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m4s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 2m22s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Successful in 4m18s
Project CI / Native shell tests (pull_request) Successful in 9m41s
Project CI / Repository checks (pull_request) Failing after 10m46s
Project CI / AI game creator shell web tests (pull_request) Failing after 9m13s
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled

让活动回合快照在受理时即具备更新时间
保持面板与重连读取同一份完整快照
This commit is contained in:
kdletters
2026-09-15 22:35:16 +08:00
parent 9bbefdc371
commit 53af1f89eb
@@ -319,6 +319,10 @@ impl DirectTaonierActiveInvocationGuard {
});
}
None => {
let started_at = SystemTime::now()
.duration_since(UNIX_EPOCH)
.map(|duration| duration.as_millis() as u64)
.unwrap_or_default();
active.insert(
root.clone(),
DirectTaonierActiveInvocation {
@@ -327,13 +331,10 @@ impl DirectTaonierActiveInvocationGuard {
.file_name()
.and_then(|name| name.to_str())
.map(str::to_string),
started_at: SystemTime::now()
.duration_since(UNIX_EPOCH)
.map(|duration| duration.as_millis() as u64)
.unwrap_or_default(),
started_at,
status: "accepted".to_string(),
activity: Some("request-accepted".to_string()),
updated_at: 0,
updated_at: started_at,
sequence: 0,
},
);