story-kit: merge 134_story_add_process_health_monitoring_and_timeout_to_agent_pty_sessions

This commit is contained in:
Dave
2026-02-24 13:13:16 +00:00
parent a87f908d5b
commit 560c731869
4 changed files with 256 additions and 5 deletions

View File

@@ -57,6 +57,9 @@ async fn main() -> Result<(), std::io::Error> {
let port = resolve_port();
let agents = Arc::new(AgentPool::new(port));
// Start the background watchdog that detects and cleans up orphaned Running agents.
agents.spawn_watchdog();
// Filesystem watcher: broadcast channel for work/ pipeline changes.
let (watcher_tx, _) = broadcast::channel::<io::watcher::WatcherEvent>(1024);
if let Some(ref root) = *app_state.project_root.lock().unwrap() {