Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(sdk): unused variable in exec -i on Windows, format the e2e (CUA-1949) (#5662)

ddupontd86b5a309d89
diff --git a/libs/cua/crates/cua-cli/src/shell.rs b/libs/cua/crates/cua-cli/src/shell.rs
index f2fa922ff3..fbfdf5a403 100644
--- a/libs/cua/crates/cua-cli/src/shell.rs
+++ b/libs/cua/crates/cua-cli/src/shell.rs
@@ -129,6 +129,8 @@ pub fn os_signals() -> SignalRx {
});
}
}
+ #[cfg(not(unix))]
+ drop(tx);
rx
}
diff --git a/tests/e2e/cua-sdk/python/e2e.py b/tests/e2e/cua-sdk/python/e2e.py
index e8a20fdd2b..6c3e7e6929 100644
--- a/tests/e2e/cua-sdk/python/e2e.py
+++ b/tests/e2e/cua-sdk/python/e2e.py
@@ -326,9 +326,7 @@ async def env_smoke(env: "cua.SpacesdClient", *, desktop: bool, mock: bool = Fal
# kill_on_disconnect: letting go of the starting stream ends the process.
tag = f"kod-py-{RUN}"
proc = await env.spawn(
- cua.SpacesdCommand(
- program="cat", args=[], stdin=True, tag=tag, kill_on_disconnect=True
- )
+ cua.SpacesdCommand(program="cat", args=[], stdin=True, tag=tag, kill_on_disconnect=True)
)
await proc.detach()
ended = await (await env.attach(None, tag, cua.ReplayMode.NONE())).wait()