app-server: Emit thread/name/updated event globally (#13674)

This commit is contained in:
Ruslan Nigmatullin
2026-03-06 10:25:18 -08:00
committed by GitHub
Unverified
parent 3449e00bc9
commit 51fcdc760d
6 changed files with 232 additions and 3 deletions
@@ -1590,7 +1590,9 @@ pub(crate) async fn apply_bespoke_event_handling(
thread_name: thread_name_event.thread_name,
};
outgoing
.send_server_notification(ServerNotification::ThreadNameUpdated(notification))
.send_global_server_notification(ServerNotification::ThreadNameUpdated(
notification,
))
.await;
}
}
@@ -101,6 +101,10 @@ impl ThreadScopedOutgoingMessageSender {
.await;
}
pub(crate) async fn send_global_server_notification(&self, notification: ServerNotification) {
self.outgoing.send_server_notification(notification).await;
}
pub(crate) async fn abort_pending_server_requests(&self) {
self.outgoing
.cancel_requests_for_thread(