43 Commits

Author SHA1 Message Date
Guilherme Rambo
68c48f8d53 Tunnel settings tweaks (#827)
* Add menu for quickly copying tunnels from other virtual machines, improve default selection for guest vs. host service depending on where the tunnel is being configured

* Count only tunnels that can be added in all tunnels menu option

* Add dedicated toolbar item for tunnel approval

* Fix service tunnels menu button sizing
2026-11-26 11:00:15 -03:00
Guilherme Rambo
4181d09e17 Guest<>host port and Unix socket forwarding (#824)
* Custom socket tunnels

* Improve tunnel configuration UI

* Tweak tunnel editing UI to be less confusing

* Create tunnel socket parent path if it doesn't already exist

* Security: Harden tunnel approval verification

* Security: harden tunnel approval UI against tampered strings, use only digest for validating approvals

* Security: refuse to start a TCP listener when something already answers at its address; replace existing socket when appropriate

* Fix newly added tunnel that replaces an existing listener being blocked by address in use

* Security: make tunnel status text from the other side safe to display

Status and failure text is chosen by the other side of a tunnel and shown
next to the tunnel in settings. Remove invisible, reordering and
line-breaking characters from it and limit its length.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Security: require a trusted owner for every folder enclosing a tunnel socket

Each component of a listener's path, as written and as resolved through
links, has to belong to this account or to a system account. Set the
socket's permissions without following links.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Security: check who owns a Unix socket tunnel destination

Apply the path ownership check to destinations, and require the service
that accepts the connection to run as this account or a system account.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Security: give each tunnel its own share of a virtual machine's connections

Raise the limit to 64 connections per virtual machine with at most 32 for
one tunnel, so holding one tunnel's connections open can't starve the
others. Pause a listener that runs out of descriptors or memory instead
of stopping it for good.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Security: keep the reason a tunnel failed on the host from the guest

The guest is only told that a tunnel isn't available on the host.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Update service tunnels audit report with the status of F5 to F10

Notes what was fixed for each finding and what was left as is.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Support managed preference restrictions on tunnels

* Remove audit file

* Tunnels UI tweaks

* Rewrite service tunnels documentation

---------

Co-authored-by: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-25 18:17:16 -03:00
Guilherme Rambo
aabca5342d Xcode app provisioning (#823)
* Automatic provisioning of Mac apps launched via Xcode

* Improve Xcode integration sheet UI

* Security: harden local debugging socket and Xcode tool usage

* Soften rule around Xcode MCP use and xcodebuild prohibition

* Security: harden App Store Connect API key storage and access

* Fix debugged app incorrectly detected as not provisioned due to wildcard matching in provisioning profile

* Add previews for provisioning and debugging UI elements

* Disambiguate virtual machine vs. host Mac in provisioning and signing team management UIs

* Make Xcode debugging setup accessible from the Guest menu

* Completely disable debugging socket when developer features disabled, fix socket dying on accept failure

* Add versioning to scheme bindings, refer to VirtualBuddy components by a stable symlinked location, store scheme URLs so that app can potentially migrate schemes in the future

* Delay showing provisioning sheet so that an app that's already provisioned for the VM doesn't trigger it
2026-11-24 17:46:23 -03:00
Guilherme Rambo
ff855c2808 Allow shared folders and display configuration changes on live VM (#806)
* Implement live configuration updates for shared folders

* Allow display configuration changes on live VM

* Improve live VM settings UI
2026-11-04 13:31:55 -03:00
Guilherme Rambo
4b012d3c01 Guest appearance sync service (#803) 2026-11-03 13:54:41 -03:00
Guilherme Rambo
6c153ad425 Modernize window workarounds (#787)
* Avoid excessive setting of window properties in EnvironmentValues extensions

* Disable workaround for FB18383725 in macOS 27 or later

* Always show title bar in VM session window
2026-10-13 10:44:16 -03:00
Guilherme Rambo
bac5b9a3ca Implement key combinations and UI for keyboard/mouse toggles (#782)
* Implement key combination holds for enabling/disabling keyboard or trackpad

* Improve keyboard/trackpad connection status HUD
2026-10-05 16:41:13 -03:00
Guilherme Rambo
cbbe051d4a Make VirtualBuddyGuest requirement more prominent in VM configuration UI, add guest connection state to VM window toolbar (#781) 2026-10-05 14:44:44 -03:00
Guilherme Rambo
2a7cf4151b New virtual machine state preservation system (#780)
* Fix HostingWindowController allowing repeated requests to close while waiting for confirmation

* New virtual machine state preservation system with automatic save on close/quit and safe restoration

* Use visible directories for saved state storage for easier debugging in Finder

* Hide state restoration controls for unsupported Linux VMs

* Add app-level preference for what happens by default when attempting to close a running VM

* Use a custom sheet for VM close confirmation

* Improve VM close choice sheet

* Harden session storage against path traversal, fix race conditions in state coordination
2026-10-05 12:51:43 -03:00
Guilherme Rambo
683739a7e7 Mouse/keyboard toggles in toolbar (#757)
* Add toggles to enable/disable mouse and keyboard input to virtual machine

* Filter additional mouse events, allow cursor updates even when mouse is disabled

* Hide input controls when VM not running
2026-09-10 09:24:50 -03:00
Guilherme Rambo
fefa28fe8c Handle boot deep-link for session that's already open but shut down (#758) 2026-08-28 18:49:46 -03:00
Guilherme Rambo
7ba3212f1d Fix boot deep link not working when VM window already open (#756)
* Fix virtual machine not booting up when opening boot deep link with session window already open (#755)

* Fix virtualbuddy://library library deep link not reopening the library window after it's closed
2026-08-28 08:49:30 -03:00
Guilherme Rambo
580510c24c Merge main with disk resize feature 2026-07-31 14:10:28 -03:00
Gui Rambo
8bbbab496d Fix guest Menu Bar hidden behind window title bar by disabling safe area only in background view, using transparent title bar during non-running states 2026-06-10 15:34:53 -03:00
Gui Rambo
37f459436f Add picker in virtual machine configuration that allows copying the configuration from an existing virtual machine 2026-06-10 15:00:39 -03:00
Guilherme Rambo
e19a74866c Liquid glass adoption (#677)
* Raise deployment target to macOS 14, bump version

* Integrate Liquid Glass compatibility components

* Fix onChange(of:) deprecation warnings

* Update project settings

* Improve styling of setup and configuration UI components

* Fix fatal error in VMSavedStatesController.preview

* Tweak session UI

* Do not use prominent button style in VM configuration sheet so it matches overall setup wizard style

* Fix incorrectly sized buttons in grouped lists
2026-05-22 09:47:01 -03:00
Guilherme Rambo
d25d1aee1b Improve error message when maximum VM limit is reached 2026-02-02 17:04:21 -03:00
Gui Rambo
661372a1a5 Workaround full screen crash in macOS 26 2025-06-25 17:47:48 -03:00
Guilherme Rambo
1efbf62b33 Wait for guest disk image to be ready before starting up vm, alert if disk image fails to generate 2025-06-19 13:44:28 -03:00
Guilherme Rambo
b30567a0ad Delete legacy screenshotting code, use blur hash background in VM session window, use blurred thumbnail image if available 2025-06-18 16:39:53 -03:00
Guilherme Rambo
cd363c76b8 Clone storage devices when saving VM state (#76) 2025-02-26 12:33:56 -03:00
Sameer Sundresh
08389de858 Bug fix: Confirm & stop the VM when the user closes the window if it is neither idle nor stopped. 2024-08-08 15:54:02 -06:00
Guilherme Rambo
e195a81fbe DFU mode UI 2024-08-07 12:24:04 -03:00
Guilherme Rambo
23cac9969a Adds option to start VM in DFU mode (debug builds or with debug flag only) 2024-08-07 11:20:10 -03:00
Guilherme Rambo
49ff562ed3 Storing saved state package as part of the session options, bound picker selection to VMController 2024-03-29 14:21:38 -03:00
Guilherme Rambo
9ef7b22e48 Session configuration UI improvement 2024-03-29 14:09:23 -03:00
Guilherme Rambo
a8eee6e5e7 Implemented self-sizing grouped form for VM session settings view 2024-03-29 13:38:43 -03:00
Guilherme Rambo
a20f78944b WIP: Saved state selection 2024-03-28 17:18:18 -03:00
Guilherme Rambo
e4b942de69 Displaying saved state screenshot in session view background when opening a state restoration package 2024-03-27 15:58:45 -03:00
Guilherme Rambo
beaec173ee Fixed session ui leak in VirtualMachineWindowCommands, enabled Command+0 for opening library window 2024-03-27 15:50:45 -03:00
Guilherme Rambo
966138ecca Centralized session management in VirtualMachineSessionUIManager, allowing existing session to be updated by opening a file or URL when the VM is not running 2024-03-27 15:41:56 -03:00
Guilherme Rambo
a27923283f New progress UI for state save/restore 2024-03-26 20:18:41 -03:00
Gui Rambo
c887fdce7a Improved guest<>host channel management, fixed several leaks 2023-10-25 12:58:05 -03:00
Gui Rambo
f032cabdd6 VM toolbar controls 2023-10-24 19:28:07 -03:00
Gui Rambo
83bd262571 Keeping references to active VM controllers for automation support, fixed VMController memory leaks 2023-10-20 09:29:21 -03:00
Gui Rambo
91b20f12d2 WIP handling basic deep links 2023-10-12 15:26:07 -03:00
James
bde3cc461c Add option in display settings to toggle automatic display configuration 2023-07-28 22:59:11 +10:00
Gui Rambo
0dbe6ae273 Enabled automatically reconfiguring display when window is resized (macOS Sonoma) 2023-06-28 22:54:41 -03:00
Gui Rambo
1a8e25994c Use VM layer for screenshotting instead of relying on SPI 2023-06-07 10:47:22 -03:00
Gui Rambo
7b432a5add Automatically sizing VM window to fit display when there's no saved frame for the window/display combo 2023-03-10 17:16:37 -03:00
Gui Rambo
312690c786 Uncommented some code 2023-03-09 15:28:41 -03:00
Gui Rambo
c8e580a1cc Implemented menu options to resize window according to VM display resolution 2023-03-09 15:24:44 -03:00
Gui Rambo
df42616f62 Moved remaining UI components into VirtualUI 2022-07-21 00:21:35 -03:00