chore: restore a green make check on main

- output.rs: the read_lints test helper (#398) builds ToolCall without
  the argument_error field added in d83e14a, so the lib-test target
  does not compile
- connect_wire.rs: cursor::router takes NetworkClients since 2dad593
- runtime.rs: clippy::nonminimal_bool from 5cdf642
- update/mod.rs: clippy::needless_return in the Windows arm, ddaa61c
This commit is contained in:
kevin9327
2026-09-03 07:55:51 +09:00
parent 8fdcdd7f84
commit e4b5e132d6
4 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -57,9 +57,9 @@ pub(crate) async fn check_portable_update(
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
{ {
let update = portable_update(&app).await?; let update = portable_update(&app).await?;
return Ok(update.map(|update| PortableUpdateInfo { Ok(update.map(|update| PortableUpdateInfo {
version: update.version, version: update.version,
})); }))
} }
#[cfg(not(target_os = "windows"))] #[cfg(not(target_os = "windows"))]
{ {
+2 -2
View File
@@ -172,9 +172,9 @@ impl ConversationRuntime {
break; break;
} }
TransportCommand::RunFinished { generation, finish } => { TransportCommand::RunFinished { generation, finish } => {
if !current if current
.as_ref() .as_ref()
.is_some_and(|current| current.id == generation) .is_none_or(|current| current.id != generation)
{ {
continue; continue;
} }
@@ -459,6 +459,7 @@ mod tests {
name: "ReadLints".into(), name: "ReadLints".into(),
arguments_text: String::new(), arguments_text: String::new(),
arguments: json!({ "paths": paths }), arguments: json!({ "paths": paths }),
argument_error: None,
} }
} }
+3 -1
View File
@@ -21,6 +21,7 @@ use cursor_server::{
proto::{agent::v1 as pb, aiserver::v1 as ai}, proto::{agent::v1 as pb, aiserver::v1 as ai},
}, },
cursor::transport::TransportRegistry, cursor::transport::TransportRegistry,
network::NetworkClients,
}; };
use flate2::{write::GzEncoder, Compression}; use flate2::{write::GzEncoder, Compression};
use prost::Message; use prost::Message;
@@ -102,6 +103,7 @@ async fn bidi_append_gzip_body_is_decompressed_before_protobuf_decode() {
.as_path(), .as_path(),
) )
.unwrap(); .unwrap();
let clients = NetworkClients::new(store.clone());
let registry = TransportRegistry::new( let registry = TransportRegistry::new(
store, store,
Arc::new(fake_provider::FakeProvider::default()), Arc::new(fake_provider::FakeProvider::default()),
@@ -118,7 +120,7 @@ async fn bidi_append_gzip_body_is_decompressed_before_protobuf_decode() {
encoder.write_all(&wire).unwrap(); encoder.write_all(&wire).unwrap();
let compressed = encoder.finish().unwrap(); let compressed = encoder.finish().unwrap();
let response = cursor::router(registry) let response = cursor::router(registry, clients)
.unwrap() .unwrap()
.oneshot( .oneshot(
Request::post("/aiserver.v1.BidiService/BidiAppend") Request::post("/aiserver.v1.BidiService/BidiAppend")