Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
fix(lume): cross-process VM status and installation docs (#834)
Francesco Bonacci6fc1c949acd3
diff --git a/docs/content/docs/lume/guide/getting-started/faq.mdx b/docs/content/docs/lume/guide/getting-started/faq.mdxindex e04afd1607..1fb8fd4240 100644--- a/docs/content/docs/lume/guide/getting-started/faq.mdx+++ b/docs/content/docs/lume/guide/getting-started/faq.mdx@@ -70,6 +70,20 @@ lume config cache set /path/to/cachelume prune```+### How do I change the display resolution?++By default, VMs use 1024x768. Change it with `lume set`:++```bash+lume set my-vm --display 1920x1080+```++The VM must be stopped for this to work. After restarting the VM, go to **System Settings → Displays**, enable **Show all resolutions**, and select your new resolution. You can also set display resolution during creation:++```bash+lume create my-vm --os macos --ipsw latest --display 1920x1080+```+## Limits### How many macOS VMs can I run at once?diff --git a/docs/content/docs/lume/guide/getting-started/installation.mdx b/docs/content/docs/lume/guide/getting-started/installation.mdxindex 0f0714ea1c..bf4ce242cf 100644--- a/docs/content/docs/lume/guide/getting-started/installation.mdx+++ b/docs/content/docs/lume/guide/getting-started/installation.mdx@@ -13,6 +13,17 @@ Install Lume with a single command:This installs Lume with a background service (starts on login) and auto-updater (checks every 24 hours).+<Callout type="warn">+**First-time install?** If `~/.local/bin` isn't in your PATH (common on fresh macOS), add it:++```bash+echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.zshrc+source ~/.zshrc+```++Or restart your terminal after the first command.+</Callout>+### Verify it worked```bash@@ -118,13 +129,15 @@ rm -rf ~/.config/lume## Troubleshooting-**`lume: command not found`** — The install location (`~/.local/bin`) isn't in your PATH. Add it:+**`lume: command not found`** — The install location (`~/.local/bin`) isn't in your PATH. Add it and reload:```bash-echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc+echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.zshrcsource ~/.zshrc```+Or restart your terminal after the first command.+**Background service not starting** — Check the daemon logs:```bashdiff --git a/docs/content/docs/lume/guide/getting-started/quickstart.mdx b/docs/content/docs/lume/guide/getting-started/quickstart.mdxindex 9da83b1187..fa3686ed48 100644--- a/docs/content/docs/lume/guide/getting-started/quickstart.mdx+++ b/docs/content/docs/lume/guide/getting-started/quickstart.mdx@@ -114,6 +114,23 @@ lume create dev-vm --os macos --ipsw latest \| Memory | 8GB | Leave headroom for your host || Disk | 50GB | Uses sparse files—only consumes actual usage |+## Change display resolution++By default, VMs use a 1024x768 display resolution. You can change it with `lume set`:++```bash+lume set my-vm --display 1920x1080+```++The change takes effect on the next VM start. After starting the VM, go to **System Settings → Displays**, enable **Show all resolutions**, and select your new resolution. Common resolutions:++| Resolution | Aspect Ratio | Use Case |+|------------|--------------|----------|+| 1024x768 | 4:3 | Default, low resource usage |+| 1280x800 | 16:10 | MacBook-style |+| 1920x1080 | 16:9 | Full HD |+| 2560x1440 | 16:9 | QHD |+## Automate the Setup AssistantSkip manual setup entirely with the `--unattended` flag:diff --git a/libs/lume/scripts/install.sh b/libs/lume/scripts/install.shindex f56d62f892..3343f6541a 100755--- a/libs/lume/scripts/install.sh+++ b/libs/lume/scripts/install.sh@@ -279,24 +279,38 @@ install_binary() {# Check if the installation directory is in PATHif [ -n "${PATH##*$INSTALL_DIR*}" ]; thenSHELL_NAME=$(basename "$SHELL")- echo "${YELLOW}Warning: $INSTALL_DIR is not in your PATH.${NORMAL}"+ echo ""+ echo "${YELLOW}╔════════════════════════════════════════════════════════════════╗${NORMAL}"+ echo "${YELLOW}║ ${BOLD}ACTION REQUIRED:${NORMAL}${YELLOW} $INSTALL_DIR is not in your PATH${NORMAL}"+ echo "${YELLOW}╚════════════════════════════════════════════════════════════════╝${NORMAL}"+ echo ""case "$SHELL_NAME" inzsh)- echo "To add it, run:"- echo " echo 'export PATH=\"\$PATH:$INSTALL_DIR\"' >> ~/.zprofile"+ echo "Run these commands:"+ echo " ${BOLD}echo 'export PATH=\"\$PATH:$INSTALL_DIR\"' >> ~/.zshrc${NORMAL}"+ echo " ${BOLD}source ~/.zshrc${NORMAL}"+ echo ""+ echo "Or restart your terminal after running the first command.";;bash)- echo "To add it, run:"- echo " echo 'export PATH=\"\$PATH:$INSTALL_DIR\"' >> ~/.bash_profile"+ echo "Run these commands:"+ echo " ${BOLD}echo 'export PATH=\"\$PATH:$INSTALL_DIR\"' >> ~/.bash_profile${NORMAL}"+ echo " ${BOLD}source ~/.bash_profile${NORMAL}"+ echo ""+ echo "Or restart your terminal after running the first command.";;fish)- echo "To add it, run:"- echo " echo 'fish_add_path $INSTALL_DIR' >> ~/.config/fish/config.fish"+ echo "Run this command:"+ echo " ${BOLD}echo 'fish_add_path $INSTALL_DIR' >> ~/.config/fish/config.fish${NORMAL}"+ echo ""+ echo "Then restart your terminal.";;*)- echo "Add $INSTALL_DIR to your PATH in your shell profile file."+ echo "Add $INSTALL_DIR to your PATH in your shell profile file,"+ echo "then restart your terminal or source your profile.";;esac+ echo ""fi}diff --git a/libs/lume/src/LumeController.swift b/libs/lume/src/LumeController.swiftindex 70efec26f8..5c10824a75 100644--- a/libs/lume/src/LumeController.swift+++ b/libs/lume/src/LumeController.swift@@ -121,18 +121,29 @@ final class LumeController {private func getVMDetailsLightweight(vmDir: VMDirectory, locationName: String) -> VMDetails? {let vmName = vmDir.name- // Check if VM is running via SharedVM cache+ // Check if VM is running via SharedVM cache (same-process fast path)let runningVM = SharedVM.shared.getVM(name: vmName)- let isRunning = runningVM != nil+ var isRunning = runningVM != nil// Get VNC URL and IP address only if runningvar vncUrl: String? = nilvar ipAddress: String? = nilvar sshAvailable: Bool? = nil+ // If not in cache, check if session file exists (cross-process fallback)+ // Session files are created when VM starts and deleted when VM stops+ if !isRunning {+ if let session = try? vmDir.loadSession() {+ isRunning = true+ vncUrl = session.url+ }+ }+if isRunning {- // Try to get VNC URL from session file- vncUrl = try? vmDir.loadSession().url+ // Try to get VNC URL from session file (if not already loaded)+ if vncUrl == nil {+ vncUrl = try? vmDir.loadSession().url+ }// Try to get IP address from DHCP lease if we have MAC addressif let config = try? vmDir.loadConfig(),