pub async fn run_agent_session(
task_id: &str,
invocation: &AgentInvocation,
attempt_dir: &Path,
orch_home: &Path,
) -> (TmuxManager, String, SessionOutput)Expand description
Spawn the agent in tmux, wait for completion, and collect output.
Returns (TmuxManager, session_name, output). The TmuxManager and
session name are needed for cleanup via cleanup_session.