Fix panic in context server configuration (#34118)

Release Notes:

- Fixed a panic that could occur when configuring MCP servers
This commit is contained in:
Bennet Bo Fenner
2025-07-09 16:39:02 +02:00
committed by GitHub
parent 45d200f2f8
commit 7114a5ca99
@@ -740,7 +740,9 @@ fn wait_for_context_server(
});
cx.spawn(async move |_cx| {
let result = rx.await.unwrap();
let result = rx
.await
.map_err(|_| Arc::from("Context server store was dropped"))?;
drop(subscription);
result
})