async fn monitor_cocoon_health_task(state: Arc<Mutex<CocoonProcessState>>)Expand description
Background task that monitors Cocoon process health and logs crashes.
Once the child process has exited (or never existed), the monitor no longer has anything useful to say - it exits quietly instead of flooding the log with “No Cocoon process to monitor” every 5s, which was rendering the dev log unreadable after any Cocoon crash.