fix(app): what is left of the virtual monitor's driver stays ours and can be removed from the screen

- a failed install forgets the driver (registry value, settings folder) only when its clean-up
  left no device and no package, and never when it was ours before; otherwise it stays ours and
  the error gives both the install's reason and that something is left to remove
- the driver status separates a usable monitor (installed) from what this app left without one
  (leftover) and names the button (action): uninstall for both, so a removal whose package step
  failed can be retried from the features screen
- pure rules after_failed_install and driver_status with unit tests; checked again on the win-ci
  VM: a declined install leaves nothing, then install and uninstall

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-14 03:00:54 +09:00
parent cfab18a47e
commit 9b53af169d
4 changed files with 93 additions and 29 deletions

View File

@@ -290,10 +290,14 @@ the browser runs headless with a note.
device (`Root\MttVDD`, display class) and installs the driver; Windows then asks once whether to
install software from the SignPath Foundation. The new monitor is taken off the desktop at once.
A failed install, also the person answering no to that question ("취소했습니다"), undoes what
that attempt made (the device it created, and the registry value and settings folder when the
driver was not ours before), so nothing looks installed and the next attempt starts clean. The
status counts as installed only when the driver is ours and its monitor is there, so a device left
without its driver can be installed again. Devices are found by the hardware ID among all root
that attempt made: the device it created and, when the driver was not ours before, the driver
package, and only when no device and no package are left, the registry value and settings folder.
If something stays, the registry value stays too (so it is still ours) and the error says both
why the install failed and that something is left to remove. The status says `installed` when
the driver is ours and its monitor is there, `leftover` when it is ours without a usable monitor
(a removal or clean-up that did not finish), `other` for another program's copy, and `action`, the
button the screen offers: `uninstall` for installed or leftover, `install` when nothing is ours,
none for another program's copy. Devices are found by the hardware ID among all root
devices, whatever their class (a device whose driver was declined has none).
The settings: one monitor, one mode (1280x720 at 30 Hz), no custom EDID. When another program's
copy of the same driver is installed (its `VDDPATH` is not ours) the app refuses to install or
@@ -399,7 +403,7 @@ back as Korean messages for the screen. The Tauri shell passes the screens' `inv
| `discord_channel_info` `{id}` / `channel_sync_status` | a channel's Discord name and topic / each synced chat channel's last result (above) |
| `collect_results` `{target, limit}` | `{targets, items}`: every target folder with results, and the collected items newest first (`target` null: every target; `limit` 1-500, default 100) |
| `mcp_env_status` / `mcp_env_set` `{server, name, value}` | which MCP environment values are stored (`{server: {NAME: bool}}`, never the values) / store one (an empty value removes it); only for a saved server and name |
| `display_driver_status` / `display_driver_install` / `display_driver_uninstall` | the virtual monitor's driver: `{supported, installed, other}` (Windows only; `other`: another program's copy) / install or remove it elevated (above), then its status; refused unless the services are stopped or failed, and `service_start` / `service_restart` are refused meanwhile |
| `display_driver_status` / `display_driver_install` / `display_driver_uninstall` | the virtual monitor's driver: `{supported, installed, leftover, other, action}` (Windows only, above) / install or remove it elevated (above), then its status; refused unless the services are stopped or failed, and `service_start` / `service_restart` are refused meanwhile |
| `install_status` / `install_start` / `install_cancel` | the install steps and their state, bytes and last line / run what is not done in the background / stop it |
| `logs_query` `{tab, level, find, after, limit}` / `logs_error_report` / `logs_export` `{from, to}` | the log hub; the zip goes to `logs/` and its path comes back |
@@ -431,7 +435,7 @@ Plain HTML, CSS and an ES module, no build step, dark theme after `DESIGN.md`. A
switches and one card per MCP server (name, command, arguments and environment variable names
one per line, on/off, delete), and for a saved server a password box per environment variable
that stores its value on its own; on Windows also a card for the virtual monitor's driver (its
state and an install or remove button). The 백그라운드 수집 screen has the targets (a table: name, kind,
state and the button its `action` names, so a leftover can always be removed). The 백그라운드 수집 screen has the targets (a table: name, kind,
address or words, interval in minutes, on/off, delete), the keep days, and the results (the
newest 100, filtered by any target that has results, each with its time, title, link and the start of its text shown
as plain text).
@@ -515,6 +519,7 @@ while the bot browser runs and off after, one Chrome window there filling the wo
the bot's tab, the focus staying in the program the user types into, no taskbar button, no Chrome
left after the stop, and the uninstall leaving no device, driver package, registry key or settings
folder. On every system: a removal forgets the driver only when no device is left and the package
is gone or was not in the store; driver tasks refused while the services start, and a start (and a
is gone or was not in the store; a failed install forgets it only under the same rule (and never
when it was ours before), reporting both reasons otherwise; a leftover offers removal; driver tasks refused while the services start, and a start (and a
second task) refused while one runs, also after it failed. On Linux the same window test runs on an X display (one window at the given place and
size, the bot's tab in it).