Skip to content

Computer use CLI for AI agents

fix: start the macos cursor overlay outside the caller's directory (#381)

Lahfird83bfafdc900
diff --git a/crates/macos/src/system/cursor_overlay/spawn.rs b/crates/macos/src/system/cursor_overlay/spawn.rs
index d962b6914..47baa9dda 100644
--- a/crates/macos/src/system/cursor_overlay/spawn.rs
+++ b/crates/macos/src/system/cursor_overlay/spawn.rs
@@ -114,6 +114,7 @@ fn spawn(
.env(MARKER, super::endpoint::PROTOCOL_VERSION)
.env(SOCKET_ENV, socket)
.process_group(0)
+ .current_dir("/")
.stdin(Stdio::piped())
.stdout(Stdio::null())
.stderr(Stdio::null())