Skip to content

v0.6.1

Latest

Choose a tag to compare

@ldegio ldegio released this 08 Oct 00:49
dc04da3

Fixes

  • A growing transcript no longer pins a core. A live Codex session file had reached 596 MB (76 compacted records of ~8 MB each, every one embedding the whole prior history) and grew every couple of seconds; agtop re-parsed the entire file on every refresh tick, and refreshes stacked up on top of each other. Measured: ~100% CPU → ~3.5%.
    • New byte-level JSONL reader skips oversized lines without decoding them (identical results on every session file; the 596 MB file parses in 0.35 s instead of 0.9 s).
    • A refresh tick is skipped while the previous one is still running.
    • A file that's slow to parse is re-parsed at most every 5× its own parse time, so one huge live file is bounded to roughly a fifth of a core.
  • Unchanged session files are no longer re-read every tick. Codex child threads and just-created sessions (no model yet) had their file head re-read on every refresh, and every Claude for Mac session meta file was re-parsed each tick. Both are now cached against the file's mtime. Warm per-tick listing cost ~89 ms → ~6 ms.

Restart any running agtop to pick this up.