Fifteen call sites each had their own temp-file-and-rename code. Some
used a fixed temporary name, so two writers could mix their content, and
most did not flush before the rename. They now share atomicfile.Write.
An architecture test keeps new os.Rename calls out of other packages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Delete functions that no product code calls, and fold "simple plus
WithOptions" pairs into the one signature callers actually use. Rename
the live macOS lifecycle functions that were labelled Legacy.
The architecture tests now share one source loader and reject functions
without a product caller and catalog messages nobody reads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add per-VM `capture_host_shortcuts` option persisted in `.reims-go-keymap.json`
(independent from modifier preset and backward-compatible with legacy configs
and Wails callers omitting the field). When enabled, unmapped Win and Alt keys
route through the existing Guest Tools v8 hidutil carrier (`lcmd`/`rcmd`/`lopt`/
`ropt`) while the VM is focused, preventing host Win/Alt shortcuts (e.g. PixPin
Alt+A, Alt+Tab, Alt+F4, Ctrl+Alt+A, Win+...) without modifying explicit custom
bindings or bumping Guest Tools version.
- Monitor `EVENT_SYSTEM_FOREGROUND` and `EVENT_OBJECT_NAMECHANGE` on the Windows
keymap hook thread to immediately release held modifiers on focus loss and
promote `WH_KEYBOARD_LL` back to the top of the hook chain on VM focus entry
and SDL3 in-window re-capture, with per-key timestamp filtering for delayed
focus-loss events, swap-window event deduplication, Win64 32-bit parameter
narrowing, and fallback timer recovery.
- Serialize `SetVMKeymap` read-merge-save under `keymapMu`, expose the toggle in
Settings with zh-CN/en-US i18n, and add Go + frontend unit tests.
reims-ctl adds `vmx=on` to `-cpu` only where KVM offers nested VMX, so a
macOS guest on Windows never sees VMX and cannot run VMs of its own such as
Docker Desktop. Add a switch under Settings > CPU & Memory > Performance,
off by default and applied on the next start.
The switch is Reims-Go's own per-VM setting, kept in the VM directory. At
start the macOS driver owns one argument that asks QEMU for VMX on every
vCPU without restating the CPU model; it is not a plugin and never shows up
among the VM's extra QEMU arguments. A switch file that cannot be read stops
the start instead of dropping VMX silently.
assisted-by:claude-code:anthropic/claude-fable-5-2
Adapt Intel VM suspend/resume to driver.SuspendDriver and lifecycle.Service, move native VM close confirmation into internal/host, migrate vm-suspend legacy capability detection, drop moved runtime build tooling, and regenerate i18n and Wails bindings.
Move Prep, recovery markers, offline helper and OpenCore language handling into internal/macos/startprep while retaining memory, affinity and line-writer helpers in vmstart.
Remove the host-to-macOS vmstart architecture exception and preserve preparation and commit-memory tests on both sides.
- Merge essential builtins (driver, default theme, start prep, host workarounds) into always-on system plugin builtin.core, with state.json and arg-ledger migration plus app-scoped workaround settings honored by both GUI and CLI.
- Ensure disabling builtin.bridge.guest-tools stops the localhost bridge without being restarted by feature callers, fix guesttools.Server Start/Close race, and reflect the disabled state in VMPage and SettingsModal.
- Add QQ community group entry in About settings with Windows tencent:// protocol detection, cached invite redirect resolution, and copy-ID fallback.
- Update docs/plugin-architecture.md, Wails bindings, and i18n strings.
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>
New internal/vmstart holds the steps both front ends need: commit-memory
precheck, offline helper disk, recovery boot picker, guest-language replay,
WHPX nested-virt compatibility, and P-core pinning after start. app.go's
StartVM and the CLI's "vm start" / "vm create --start" (cmd/reims-go/start.go)
call it, replacing memcheck.go and the copies in install/opencore flows.
"vm start" now refuses a VM that is already running instead of rewriting its
OpenCore image. Guest Tools bridging and the Win10 cold-reboot watcher still
need a long-lived process and stay GUI-only (architecture.md 3.5).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>