Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove cmpl- prefix validation from Mercury feedback (#48410)

Kenan Hasanaliyev307f537ab384
diff --git a/crates/edit_prediction/src/mercury.rs b/crates/edit_prediction/src/mercury.rs
index 2cdac278572..eba5f05f7b2 100644
--- a/crates/edit_prediction/src/mercury.rs
+++ b/crates/edit_prediction/src/mercury.rs
@@ -382,14 +382,6 @@ fn send_feedback(
let request_id = prediction_id.0;
let app_version = AppVersion::global(cx);
cx.background_spawn(async move {
- if !request_id.starts_with("cmpl-") {
- log::warn!(
- "Mercury feedback: invalid request_id '{}' - must start with 'cmpl-'",
- request_id
- );
- return anyhow::Ok(());
- }
-
let body = FeedbackRequest {
request_id,
provider_name: "zed",