async fn attach_pair_run( pair_id: &str, record: &Record, opencode_bin: &Path, ctx: &mut LauncherCtx<'_>, ) -> Result<i32, ToolError>