Files
hermes-agent/apps
Austin Pickett 782886f87d fix(desktop): bound the Chromium log while the shell is running, not only at launch
The startup reclaim caps the log a previous run left behind, but a shell
that stays up for days writing Chromium ERRORs is unbounded until it
restarts — the case @ehz0ah flagged in review.

Chromium owns that descriptor in append mode for the life of the
process, so rotation is the wrong primitive: renaming leaves the writer
on the renamed inode and the cap silently stops applying. Poll the live
size and truncate in place instead; an O_APPEND writer resumes at offset
0, so a noisy process stays bounded at ~cap plus one interval's output.
The timer is unref'd and every tick is best-effort.

Co-authored-by: ehz0ah <ehz0ah@users.noreply.github.com>

Refs #100573
2026-09-21 10:23:04 -04:00
..