fix: skip corrupted run state files in list_runs (#3817)

* fix: skip corrupted run state files in list_runs

* fix: address review comments - add UnicodeDecodeError, dict validation, and regression tests

- Catch UnicodeDecodeError for invalid UTF-8 encoding
- Validate loaded JSON is a dict with required 'run_id' key
- Add 5 regression tests for corrupted state files

Fixes #3817
This commit is contained in:
Quratulain-bilal
2026-08-05 08:37:12 -05:00
committed by GitHub
parent 1e85d4ff53
commit 0ecb277f0e

Diff Content Not Available