* 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)
CloneCoW built reims.CreateOpts without SSHPort even though the field and
the --ssh-port argument both exist, so every CoW clone came up with no host
SSH forward. MCP temporary sessions and any other clone then failed every
SSH-based guest tool (guest_exec, guest_wait_ready, test_run) with a port
that nothing listened on.
Pick the next free port after the source VM's forward and pass it to create;
a source without forwarding still yields a clone without one. Add
TestCloneSSHPort for the selection logic.
model: deepseek/deepseek-v4.1-flash
agent: lead (DeepSeek Harness)
A running reims-ctl create looks the same as a killed one: it is unregistered and has no vm.toml until it ends. Cloning or creating through the driver no longer deletes such a directory. Also drop a wrapper only tests called.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>