cache issues

This commit is contained in:
larssand
2026-06-30 12:36:11 +02:00
parent de4e77d524
commit 90076aa95a
2 changed files with 8 additions and 2 deletions

View File

@@ -388,6 +388,11 @@ def cached_status_with_error(cache_path: str, error_status: dict[str, object]) -
row.setdefault("raw_error", "")
row.setdefault("aggregate_error", "")
row.setdefault("error", row.get("aggregate_error") or row.get("raw_error") or "")
if row.get("aggregate_status") == "error" and not row.get("aggregate_error") and row.get("error"):
row["aggregate_error"] = str(row.get("error", ""))
if row.get("partial") and not row.get("raw_error") and row.get("error"):
row["raw_error"] = str(row.get("error", ""))
cached["status_schema"] = 2
cached["generated_at"] = int(time.time())
cached["stale"] = True
cached["stale_reason"] = "live_mcp_error"