Handling Real-Time + Historical Data #133
-
|
How does Claude Code Agent Monitor handle real-time + historical data consistency? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The monitor stores every event in a SQLite DB with a strict |
Beta Was this translation helpful? Give feedback.
The monitor stores every event in a SQLite DB with a strict
timestampcolumn. Real‑time streams are processed by theagent_listenerthread, which writes directly to the DB and also updates an in‑memorypandas.DataFramecache. When a historical query runs, the code reads from the same DB and merges the result with the cache, using the timestamp to de‑duplicate rows (newer records win). This guarantees that live updates are immediately visible in subsequent historical reads while preserving a consistent chronological view.