fix: harden events log — non-dict ring entries, off-loop journal reads, no default-config singleton

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-10 15:51:34 -04:00
co-authored by Claude Fable 5
parent 00fdbcaa5b
commit 92982c0ca7
4 changed files with 24 additions and 6 deletions
+2
View File
@@ -379,6 +379,8 @@ def filter_events(
q_l = q.lower() if q else None
out: List[Dict[str, Any]] = []
for ev in events:
if not isinstance(ev, dict):
continue
ts = ev.get('ts')
if before is not None and (not isinstance(ts, (int, float)) or ts >= before):
continue