story-kit: merge 134_story_add_process_health_monitoring_and_timeout_to_agent_pty_sessions
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user