pub fn kill_shell_tasks_for_agent(
agent_id: &AgentId,
get_app_state: &Box<dyn Fn() -> Value>,
set_app_state: &Box<dyn Fn(Box<dyn Fn(&Value) -> Value>)>,
)Expand description
Kill all running bash tasks spawned by a given agent. Called from run_agent.rs finally block so background processes don’t outlive the agent that started them (prevents 10-day fake-logs.sh zombies).