The poll loop was one 290-line function that did everything that follows the
VM list. Its steps are now separate and recording a listing has a test. The
install guide part moved next to the rest of the guide code. Running process
IDs and capabilities are read through one method each.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every VM action had two bindings: one by name and one by driver and name.
The window used only the second, so the first is gone and the WithDriver
suffix with it. Unused bindings and frontend exports are removed too.
Tests now reject bindings the window never calls, stale generated
bindings and unused frontend exports. TypeScript rejects unused locals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Events to the frontend go through App.emit, and a test keeps their names
in step with wails.ts. QEMU argument splitting, hidden console processes,
the macOS release record, the running check and a few smaller helpers
now exist once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Route generic App and CLI code through lifecycle and driver models. Move native macOS detail, create, settings and legacy flows into explicit files, share progress and redaction through host, and enforce the boundary with a file-scoped architecture ratchet.
Resolve stats, thumbnails, window actions, SSH, affinity and diagnostic bundles through VMRef-aware VM information. Isolate caches, SSH aliases and frontend pollers for same-name VMs while preserving macOS defaults.
Qualify transitions, pending changes, reboot watchers, disk/process caches, typing queues, thumbnail locks, and VM log sources so same-named VMs do not share mutable state.
Read driver-qualified transition keys in the frontend and add --start-driver to CLI/window handoff. Legacy window start rejects other drivers explicitly until lifecycle routing lands.
Backend
- Per-VM CPU affinity (vmstart/affinity.go, affinity_flow.go): modes auto /
all / P-cores / non-LP-E / custom, saved in the VM folder, applied to the
QEMU process on start (GUI and CLI) and live via SetVMAffinity; copied on
clone. Start summary logs the resolved mapping. Host report gains CPU
topology helpers (mask <-> CPU list).
- Offline qcow2 restore points via qemu-img (driver/reims/snapshot.go,
snapshot_flow.go): list / create / restore / delete.
- SSH helpers (ssh_flow.go): remembered user, open a terminal, write an
~/.ssh/config entry, open VS Code Remote-SSH.
- FocusVMWindow brings the QEMU window forward (restoring it if minimized);
CopyVMScreenshot copies a full-resolution frame to the clipboard.
- DeliverPathsToGuest copies dropped host files into the shared folder;
main.go enables Wails file drop on elements marked --wails-drop-target.
- VM note (.reims-go-note) and a storage breakdown (extras_flow.go).
Frontend
- VM page: running state's "Show Window" and the screen preview use
FocusVMWindow; camera button and More-menu item copy a screenshot;
editable note under the name; SSH row shows the saved user with
Terminal / config / VS Code actions; restore-point list; install guide
steps can be ticked off; drop files onto the page to send them.
- Sidebar right-click menu per VM (start, show window, screenshot, stop,
restart, settings, folders, clone, delete); double-click and Ctrl+Enter
still run the main action.
- AffinityDialog opened from the VM menu and VM settings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>