* refactor: 收拢核心管线、强化错误处理、优化热路径与更新体积
* fix: preserve download recovery and bound PBZX decoding
Keep VM diagnostics available during plugin initialization failures and verify settings through the unified driver lifecycle.
A fallback release that fails while the VM is still running left the record without any retry: its timer had already fired and a plugin that exited never makes the next call, so a modifier stayed pressed in the guest. The record now rearms with a retry timeout, and a VM that stopped while the release was in flight drops the record instead of retrying it.
A release that finishes after the plugin pressed something new lifted that press and then deleted it from the record, so a later fallback no longer knew to lift it. Each record now carries a generation, and a release only clears what it lifted when nothing changed since its snapshot.
Give the Sidecar Host API one authoritative catalog in pkg/pluginproto: every
host/* method's status, required permissions, handshake feature and request and
result shapes. The host, pkg/pluginsdk and plugins share those types, so a field
can no longer exist on one side only, and permissions come from the catalog
instead of from each handler. Tests gate that every served method is
catalogued, every stable catalogued method is served, and every catalogued
permission is one the host recognizes.
Open the interface up instead of adding consent gates. Typing a secret setting
is no longer reserved for reims.agent: any plugin that holds qmp:write and that
the user authorized for the VM can have the host type the plugin's own setting,
which the plugin never reads back. Restoring a snapshot works on any authorized
VM, a plugin names its own clones, a held key may carry modifiers, and a
screenshot width outside the supported range is brought into range rather than
refused. Deleting a VM stays limited to the temporary VMs a plugin created.
Record the keys and pointer buttons each plugin holds per VM and lift them when
the plugin's process exits, its scope is disposed, the VM stops or it stops
calling, so a guest never stays stuck with a modifier down. Requests from
plugins that declare pluginApi 1.3 or newer are decoded strictly and answer an
undefined field with JSON-RPC -32602, while older plugins keep tolerant
decoding.
Add typed VM and console methods to pkg/pluginsdk so a plugin no longer needs
its own JSON-RPC client. A method the contract does not catalog, or one the
host did not advertise in the handshake, is refused before it is sent, and the
host's JSON-RPC error code reaches the caller.
- Each plugin connect connection gets a session id that is forwarded with
channel/<id>/message; when the connection ends the host notifies the
sidecar with channel/<id>/closed so it can cancel calls and release input.
- host/console.screenshot crops a region from the full-resolution frame,
optionally measured in a reference image size, and full frames now honor
max_width up to 2560.
- host/console.key can hold or release one key, and host/console.release
lifts keys and pointer buttons in one call. Driver consoles stay press-only.
- host/vm.shutdown accepts force, and host/vm.snapshot.list needs only vm:read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The settings button now also appears for plugins that only contribute a
settings.plugin panel; the panel opens in the settings dialog beside the
declarative form instead of the bottom of the Plugins page.
- Plugin stderr and non-routine audit entries are mirrored to the app log as
plugin:<id>, rate limited per plugin; the per-plugin log window is removed.
- The installed-plugin security scan button is removed; the scan verdict shows
in the permissions tooltip. The pre-install archive scan is unchanged.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(market): show all channels with Alpha tag, version picker, sorting, and title links
* fix(market): merge multi-channel releases and default picker to card version
Sync the host's SMBIOS Type 17 memory spec by default and drop the toggle:
the frontend switch, the App.SetSyncHostMemorySMBIOS binding and the
sync_host_memory_smbios config field are gone, so macOS About This Mac always
reports the host's real RAM speed and generation. A manual -smbios type=17
argument still wins, and a host without a readable speed keeps the default.
Deduplicate repeated Vulkan physical devices on the Runtime page when several
ICD manifests enumerate the same GPU, preferring the healthiest/newest probe
while keeping genuinely distinct adapters. Move Appearance & language to the
top of Settings.
model: deepseek/deepseek-v4.1-flash
agent: lead (DeepSeek Harness)
A temporary clone made by session_create keeps no vm settings of its own, so
vm_unlock on a clone always failed with "secret setting is empty" even though
the source VM had a saved login password and AI access enabled. The SSH user
was empty for the same reason: the clone has no settings and no copied
.reims-go-ssh-user file, while access is granted through the owns-clone path.
Record the source VM key in the temporary VM ownership marker and fall back to
it when a clone has no value of its own. The fallback reads the single stored
secret instead of copying it, so the password never multiplies across clones,
nothing is left behind when a clone is disposed, and revoking AI access on the
source removes the fallback immediately. Surface a clear localized error when
no VM has a saved password.
model: deepseek/deepseek-v4.1-flash
agent: lead (DeepSeek Harness)
The older start path cannot resume a snapshot, so it now refuses to start a
VM that still holds a recoverable one instead of cold-starting over it. Say
so in the change entry and at the guard, where the reason stays next to the
code.
Preserve plugin navigation and generate the runtime warning messages. Read startup overrides using the canonical VM settings key and keep set_env action order.
VMPage was one 1587-line component. Restore points, SSH access, host DNS,
endpoints, the install card, notices, the summary and the technical details
now have their own files, and both ellipsis menus share one ActionMenu.
Remove the borderless toggle and the runtime-kind listing, which no part of
the window used. The binding test no longer counts a binding's type
declaration in wails.ts as a caller.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some lines used the bare VM name as their source, so the log lines reported
with a failed command-line start left them out. Disk tasks also kept the
VM name in their step text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>