Fix remote hook CI regressions

This commit is contained in:
starr-openai
2026-05-28 23:30:54 -07:00
parent 94596b6ab7
commit a1156f0475
3 changed files with 10 additions and 4 deletions
+3 -1
View File
@@ -102,7 +102,9 @@ impl Default for LocalProcess {
fn default() -> Self {
let (outgoing_tx, mut outgoing_rx) =
mpsc::channel::<RpcServerOutboundMessage>(NOTIFICATION_CHANNEL_CAPACITY);
tokio::spawn(async move { while outgoing_rx.recv().await.is_some() {} });
if let Ok(handle) = tokio::runtime::Handle::try_current() {
handle.spawn(async move { while outgoing_rx.recv().await.is_some() {} });
}
Self::new(RpcNotificationSender::new(outgoing_tx))
}
}