Fix agentd stdout EPIPE after agent_end

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

Description

Edit

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

🔄[human]InProgress → Done2 weeks ago