fix(session): remove invalid recovery input guard

This commit is contained in:
Tianyi Cui committed 2026-09-25 23:48:44 +08:00
1 parent 6a6f350b94
commit eafd5b6068
2 files changed
+1 -23

No files matched your search

+1 -1
View File
@@ -2559,7 +2559,7 @@ def normalize_snapshot_value(
if isinstance(dt, list):
member["dt"] = [0] * len(dt)
if isinstance(normalized.get("id"), str) and normalized.get("role") in ("assistant", "system", "user", "tool", "developer"):
# Released artifact validation binds unstarted-result ids to their call and event sequence.
# Replay fixtures retain deterministic repair ids with the call id and original event sequence.
source = normalized.get("source")
call_id = normalized.get("toolCallId") if normalized.get("role") == "tool" else (
source.get("callId") if isinstance(source, dict) and source.get("kind") == "tool" else None