Investigate remaining agentd EPIPE after agent_end

t-545·WorkTask·
·
·
Created2 weeks ago·Updated2 weeks ago

Dependencies

Description

Edit

EPIPE persists after removing agent_end grace-period shutdown. Suspect readPiOutput thread exits on exception (DB update/log write), closing stdout and causing pi EPIPE. Add error handling around log writes/processEvent to keep reader alive and log failures; confirm no other agentd stop paths close stdout.

Timeline (4)

🔄[human]Open → InProgress2 weeks ago
💬[human]2 weeks ago

Wrapped readPiOutput log writes and processEvent in exception handlers so the reader thread doesn't die and close stdout on DB/log errors; logs stderr and keeps looping. Test: bild --test Omni/Agentd/Daemon.hs

🔄[human]InProgress → Done2 weeks ago