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(lume): improve System Settings navigation in unattended presets (#825)

Francesco Bonacci1f1815f3ead6
diff --git a/libs/lume/resources/unattended-sequoia.yml b/libs/lume/resources/unattended-sequoia.yml
index 94c0220759..6f97711f26 100644
--- a/libs/lume/resources/unattended-sequoia.yml
+++ b/libs/lume/resources/unattended-sequoia.yml
@@ -243,27 +243,35 @@ boot_commands:
# Close Terminal
- "<cmd+q>"
+ - "<delay 2>"
+
+ # Click on desktop to ensure keyboard focus before Spotlight
+ - "<click_at 960,540>"
- "<delay 1>"
# Open Spotlight and search for System Settings
- "<cmd+space>"
- "<delay 2>"
- "<type 'System Settings'>"
- - "<delay 1>"
+ - "<delay 2>"
- "<enter>"
- - "<delay 3>"
+ - "<delay 5>"
- # Click on the search bar, then search for Remote Login
- - "<click 'Search'>"
- - "<delay 1>"
- - "<type 'Remote'>"
+ # Wait for System Settings to fully load (sidebar shows General)
+ - "<wait 'General', timeout=30>"
- "<delay 2>"
- - "<click 'Remote login'>"
+
+ # Use keyboard shortcut to focus search field (more reliable than clicking)
+ - "<cmd+f>"
+ - "<delay 1>"
+ - "<type 'Remote Login'>"
- "<delay 2>"
+ - "<click 'Remote Login'>"
+ - "<delay 3>"
- # Tab twice to reach the "Allow full disk access" toggle, then Space to toggle
+ # Tab to reach the "Allow full disk access" toggle, then Space to toggle
- "<tab>"
- - "<delay 0.3>"
+ - "<delay 0.5>"
- "<space>"
- "<delay 2>"
diff --git a/libs/lume/resources/unattended-tahoe.yml b/libs/lume/resources/unattended-tahoe.yml
index 500b6557db..36cb0cde3f 100644
--- a/libs/lume/resources/unattended-tahoe.yml
+++ b/libs/lume/resources/unattended-tahoe.yml
@@ -254,27 +254,35 @@ boot_commands:
# Close Terminal
- "<cmd+q>"
+ - "<delay 2>"
+
+ # Click on desktop to ensure keyboard focus before Spotlight
+ - "<click_at 960,540>"
- "<delay 1>"
# Open Spotlight and search for System Settings
- "<cmd+space>"
- "<delay 2>"
- "<type 'System Settings'>"
- - "<delay 1>"
+ - "<delay 2>"
- "<enter>"
- - "<delay 3>"
+ - "<delay 5>"
+
+ # Wait for System Settings to fully load (sidebar shows General)
+ - "<wait 'General', timeout=30>"
+ - "<delay 2>"
- # Click on the search bar, then search for Remote Login
- - "<click 'Search'>"
+ # Use keyboard shortcut to focus search field (more reliable than clicking)
+ - "<cmd+f>"
- "<delay 1>"
- - "<type 'Remote'>"
+ - "<type 'Remote Login'>"
- "<delay 2>"
- "<click 'Remote Login'>"
- - "<delay 2>"
+ - "<delay 3>"
- # Tab twice to reach the "Allow full disk access" toggle, then Space to toggle
+ # Tab to reach the "Allow full disk access" toggle, then Space to toggle
- "<tab>"
- - "<delay 0.3>"
+ - "<delay 0.5>"
- "<space>"
- "<delay 2>"