Agentd readPiOutput stops reading after agent_end grace period, which can close stdout and cause pi EPIPE when it emits trailing events. Keep stdout open until pi exits (read until EOF) and avoid agent_end-based early exit.
Timeline (4)
🔄[human]Open → InProgress2 weeks ago
💬[human]2 weeks ago
Removed agent_end grace-period shutdown in readPiOutput so stdout stays open until EOF (process exit); keeps reading blocking hGetLine and removes Timeout/agent_end tracking. Test: bild --test Omni/Agentd/Daemon.hs
Removed agent_end grace-period shutdown in readPiOutput so stdout stays open until EOF (process exit); keeps reading blocking hGetLine and removes Timeout/agent_end tracking. Test: bild --test Omni/Agentd/Daemon.hs