Skip to content

The agent that grows with you

fix(updates/win): click-session poll, Intel-Mac installer docs, cua-driver opt-in autostart

Brooklyn Nicholson959c7649fd80
diff --git a/apps/desktop/README.md b/apps/desktop/README.md
index efff5407727..5ccd6ead8b8 100644
--- a/apps/desktop/README.md
+++ b/apps/desktop/README.md
@@ -9,6 +9,13 @@
**The native desktop app for [Hermes Agent](../../README.md) — the self-improving AI agent from [Nous Research](https://nousresearch.com).** Same agent, same skills, same memory as the CLI and gateway, in a polished native window — chat with streaming tool output, side-by-side previews, a file browser, voice, and settings, no terminal required. Available for **macOS, Windows, and Linux**.
+> **Intel Macs:** the `Hermes-Setup.dmg` bootstrap installer is built for
+> Apple Silicon (arm64) only, so on an Intel Mac it reports "not supported on
+> this Mac". The desktop release pipeline also builds a native `darwin-x64`
+> bundle (signed, notarized, with its own update feed); use that build, or
+> install the [CLI](../../README.md) and run `hermes desktop`. See
+> [Platform Support](../../website/docs/getting-started/platform-support.md#build-targets-and-support-priority).
+
<table>
<tr><td><b>Chat with the full agent</b></td><td>Streaming responses, live tool activity, structured tool summaries, and the same conversation history as every other Hermes surface.</td></tr>
<tr><td><b>Side-by-side previews</b></td><td>Render web pages, files, and tool outputs in a right-hand pane while you keep chatting.</td></tr>
diff --git a/apps/desktop/scripts/click-session-helpers.mjs b/apps/desktop/scripts/click-session-helpers.mjs
new file mode 100644
index 00000000000..b6c433cd67d
--- /dev/null
+++ b/apps/desktop/scripts/click-session-helpers.mjs
@@ -0,0 +1,88 @@
+/**
+ * click-session-helpers.mjs
+ *
+ * Shared logic for scripts/click-session.mjs — the interactive CDP helper that
+ * clicks a sidebar session by partial title and reads the post-click state.
+ *
+ * The macOS check-suite flake (#97982): the old script did a bare
+ * `scrollIntoView()` (smooth-scroll default on some surfaces; scroll can be
+ * dropped entirely under load) followed by a fixed `setTimeout(3000)` before
+ * reading state — a dropped scroll silently missed the click, and the fixed
+ * sleep both raced fast loads and wasted time on slow ones. The helpers here
+ * make the two steps deterministic:
+ *
+ * - buildFindClickExpression: instant scroll (`behavior: 'auto'`,
+ * `block: 'center'`) so the element is where we clicked it.
+ * - pollUntil: bounded visibility/readiness polling instead of a fixed
+ * sleep — it returns as soon as the predicate expression is true.
+ * - evaluateJsonValue: unwraps the nested CDP envelope
+ * ({ result: { result: { value } } }) the old script read one level short,
+ * so the post-click state log printed `undefined`.
+ *
+ * Dependency-free (plain node) so it runs under the vitest electron project.
+ */
+
+export const CLICK_POLL_INTERVAL_MS = 100
+export const CLICK_POLL_TIMEOUT_MS = 3000
+
+/**
+ * Runtime.evaluate expression: find the first button-ish element whose text
+ * contains `titleMatch`, instantly scroll it into view (center of the
+ * viewport, no smooth animation to drop), and click it. Returns JSON:
+ * { found, tried? } when there is no match, { found: true, tag, text }
+ * when the click was issued.
+ */
+export function buildFindClickExpression(titleMatch) {
+ return `
+ (() => {
+ const titleMatch = ${JSON.stringify(titleMatch)}
+ const all = document.querySelectorAll('button, a, div[role="button"]')
+ const found = [...all].find(el => (el.textContent || '').includes(titleMatch))
+ if (!found) return JSON.stringify({ found: false, tried: titleMatch })
+ found.scrollIntoView({ behavior: 'auto', block: 'center' })
+ found.click()
+ return JSON.stringify({ found: true, tag: found.tagName, text: (found.textContent || '').slice(0, 80) })
+ })()
+ `
+}
+
+/** Runtime.evaluate expression answering `true` once the session view is live
+ * (the composer for the clicked session has mounted). */
+export const POST_CLICK_READY_EXPRESSION =
+ 'JSON.stringify(!!document.querySelector(\'[data-slot="composer-rich-input"]\'))'
+
+/**
+ * Unwrap the nested CDP envelope. `send()` resolves with the whole WebSocket
+ * message: `{ id, result: { result: { type, value } } }`. Returns the parsed
+ * JSON of `message.result.result.value`, or null when any level is missing.
+ */
+export function evaluateJsonValue(message) {
+ const raw = message?.result?.result?.value ?? message?.result?.value ?? null
+ if (raw == null) return null
+ try {
+ return JSON.parse(raw)
+ } catch {
+ return null
+ }
+}
+
+/**
+ * Poll `predicate(send)` (a Runtime.evaluate expression that JSON-encodes a
+ * boolean) until it answers true or `timeoutMs` elapses. Resolves true/false —
+ * never throws on timeout — so a slow session surfaces as `ready: false`
+ * state instead of a hung script.
+ */
+export async function pollUntil(send, expression, {
+ timeoutMs = CLICK_POLL_TIMEOUT_MS,
+ intervalMs = CLICK_POLL_INTERVAL_MS
+} = {}) {
+ const deadline = Date.now() + timeoutMs
+
+ for (;;) {
+ const message = await send('Runtime.evaluate', { expression, returnByValue: true })
+ const value = evaluateJsonValue(message)
+ if (value === true) return true
+ if (Date.now() + intervalMs >= deadline) return false
+ await new Promise(resolve => setTimeout(resolve, intervalMs))
+ }
+}
diff --git a/apps/desktop/scripts/click-session-helpers.test.mjs b/apps/desktop/scripts/click-session-helpers.test.mjs
new file mode 100644
index 00000000000..a19b1e2ff73
--- /dev/null
+++ b/apps/desktop/scripts/click-session-helpers.test.mjs
@@ -0,0 +1,74 @@
+import assert from 'node:assert/strict'
+
+import { test } from 'vitest'
+
+import {
+ buildFindClickExpression,
+ CLICK_POLL_TIMEOUT_MS,
+ evaluateJsonValue,
+ pollUntil,
+ POST_CLICK_READY_EXPRESSION
+} from './click-session-helpers.mjs'
+
+function cdpMessage(value) {
+ // The shape send() resolves with: the whole CDP WebSocket message.
+ return { id: 1, result: { result: { type: 'string', value } } }
+}
+
+test('buildFindClickExpression scrolls instantly and centered, then clicks', () => {
+ const expr = buildFindClickExpression('Phaser particle')
+
+ assert.ok(expr.includes("scrollIntoView({ behavior: 'auto', block: 'center' })"),
+ 'must use an instant, centered scroll (no default smooth scroll to drop)')
+ assert.ok(expr.includes('found.click()'))
+ assert.ok(expr.includes('JSON.stringify'))
+ // The title must be embedded as JSON, so quotes/newlines in it cannot break
+ // the expression.
+ assert.ok(expr.includes(JSON.stringify('Phaser particle')))
+})
+
+test('evaluateJsonValue unwraps the nested CDP envelope', () => {
+ assert.deepEqual(evaluateJsonValue(cdpMessage('{"found":true}')), { found: true })
+})
+
+test('evaluateJsonValue returns null on a truncated envelope, not undefined', () => {
+ // The old script read `message.result.value` — one level short — and logged
+ // undefined. Any missing level must yield null.
+ assert.equal(evaluateJsonValue({}), null)
+ assert.equal(evaluateJsonValue({ result: {} }), null)
+ assert.equal(evaluateJsonValue({ result: { result: {} } }), null)
+ assert.equal(evaluateJsonValue(cdpMessage('not-json')), null)
+})
+
+function fakeSend(answers) {
+ let i = 0
+
+ return async () => cdpMessage(answers[Math.min(i++, answers.length - 1)])
+}
+
+test('pollUntil resolves true as soon as the predicate answers true (no fixed sleep)', async () => {
+ const send = fakeSend(['false', 'false', 'true'])
+
+ const started = Date.now()
+ assert.equal(await pollUntil(send, POST_CLICK_READY_EXPRESSION, { intervalMs: 5 }), true)
+ // Three polls at 5ms apart: bounded by readiness, not a fixed 3000ms sleep.
+ assert.ok(Date.now() - started < 500)
+})
+
+test('pollUntil returns false at the bound instead of hanging when never ready', async () => {
+ const send = fakeSend(['false'])
+
+ const started = Date.now()
+ assert.equal(
+ await pollUntil(send, POST_CLICK_READY_EXPRESSION, { timeoutMs: 200, intervalMs: 50 }),
+ false
+ )
+ assert.ok(Date.now() - started >= 150, 'waited for the full bound')
+ assert.ok(Date.now() - started < 3000, 'did not fall back to a fixed sleep')
+})
+
+test('default poll bound matches the old sleep ceiling', () => {
+ // The readiness poll replaces the fixed 3000ms sleep: same ceiling, but it
+ // exits early when the session is ready.
+ assert.equal(CLICK_POLL_TIMEOUT_MS, 3000)
+})
diff --git a/apps/desktop/scripts/click-session.mjs b/apps/desktop/scripts/click-session.mjs
index 77983f51d68..944d57e9fdc 100644
--- a/apps/desktop/scripts/click-session.mjs
+++ b/apps/desktop/scripts/click-session.mjs
@@ -1,4 +1,17 @@
// Click on a session by partial title match.
+//
+// Two flake sources fixed (#97982): a bare scrollIntoView() whose smooth
+// scroll could be dropped under load, and a fixed 3000ms post-click sleep
+// that raced fast loads and wasted slow ones. The click now scrolls instantly
+// ({ behavior: 'auto', block: 'center' }) and the post-click wait polls for
+// the session's composer to mount — see click-session-helpers.mjs.
+import {
+ buildFindClickExpression,
+ evaluateJsonValue,
+ pollUntil,
+ POST_CLICK_READY_EXPRESSION
+} from './click-session-helpers.mjs'
+
const list = await (await fetch('http://127.0.0.1:9222/json/list')).json()
const tgt = list.find(t => t.type === 'page' && t.url.startsWith('http'))
const ws = new WebSocket(tgt.webSocketDebuggerUrl)
@@ -21,21 +34,16 @@ const send = (method, params = {}) =>
const title = process.argv[2] || 'Phaser particle'
const r = await send('Runtime.evaluate', {
- expression: `
- (() => {
- const titleMatch = ${JSON.stringify(title)}
- const all = document.querySelectorAll('button, a, div[role="button"]')
- const found = [...all].find(el => (el.textContent || '').includes(titleMatch))
- if (!found) return JSON.stringify({ found: false, tried: titleMatch })
- found.scrollIntoView()
- found.click()
- return JSON.stringify({ found: true, tag: found.tagName, text: (found.textContent || '').slice(0, 80) })
- })()
- `,
+ expression: buildFindClickExpression(title),
returnByValue: true
})
console.log('click raw:', JSON.stringify(r, null, 2))
-await new Promise(r => setTimeout(r, 3000))
+
+// Wait for the clicked session's composer to mount — bounded polling, not a
+// fixed sleep. `false` here means the session view never came up within the
+// bound; the state read below then shows what the page actually looks like.
+const ready = await pollUntil(send, POST_CLICK_READY_EXPRESSION)
+console.log('post-click ready:', ready)
const status = await send('Runtime.evaluate', {
expression: `JSON.stringify({
@@ -47,5 +55,7 @@ const status = await send('Runtime.evaluate', {
})`,
returnByValue: true
})
-console.log('after click:', status.result.value)
+// Nested CDP envelope: message.result.result.value — evaluateJsonValue unwraps
+// and parses it (the old `status.result.value` read logged undefined).
+console.log('after click:', evaluateJsonValue(status))
ws.close()
diff --git a/hermes_cli/config_defaults.py b/hermes_cli/config_defaults.py
index fd3e9180c36..098c7322be9 100644
--- a/hermes_cli/config_defaults.py
+++ b/hermes_cli/config_defaults.py
@@ -2500,6 +2500,12 @@ DEFAULT_CONFIG = {
# cua-driver's upstream PostHog telemetry defaults ON; Hermes sets
# CUA_DRIVER_RS_TELEMETRY_ENABLED=0 in every child env unless this is true.
"cua_telemetry": False,
+ # Windows only: opt IN to the per-boot cua-driver-serve logon task. False (default)
+ # keeps the driver on-demand — Computer Use starts it per session, exactly as on
+ # macOS/Linux, and install/enable flows register no scheduled task (#97389). True
+ # registers (or repairs) the task at install time — needed to drive Windows over SSH,
+ # where Session 0 has no interactive desktop (see the computer-use guide).
+ "autostart": False,
"native_wayland": False,
# Cap driver screenshot longest edge (pixels) via set_config at session start; shrinks SOM
# multimodal payloads. 0 disables.
diff --git a/hermes_cli/tools_config_cua.py b/hermes_cli/tools_config_cua.py
index 5a960195bac..2f938a0fc00 100644
--- a/hermes_cli/tools_config_cua.py
+++ b/hermes_cli/tools_config_cua.py
@@ -2,6 +2,7 @@
from __future__ import annotations
+import contextlib
import os
import shutil
import subprocess
@@ -93,7 +94,12 @@ def _cua_driver_install_ready() -> bool:
if sys.platform == "darwin":
from tools.computer_use.cua_backend_daemon import _resolve_cua_driver_app_path
return bool(_resolve_cua_driver_app_path(state["binary"]))
- return sys.platform != "win32" or _cua_driver_autostart_registered_windows()
+ # On-demand default (#97389): with computer_use.autostart off, a missing
+ # cua-driver-serve logon task is intentional, not a repair condition —
+ # requiring it here biased every enable flow toward registering it.
+ return (sys.platform != "win32"
+ or _cua_driver_autostart_registered_windows()
+ or not _cua_autostart_opt_in())
def install_cua_driver(upgrade: bool = False, show_installer_progress: bool = True) -> bool:
@@ -186,19 +192,51 @@ def _cua_driver_autostart_registered_windows(binary: Optional[str] = None) -> bo
return False
+def _cua_autostart_opt_in() -> bool:
+ """``computer_use.autostart`` — opt IN to the Windows per-boot ``cua-driver-serve`` logon
+ task. The default (absent/False) is on-demand (#97389): Computer Use starts the driver per
+ session exactly as macOS and Linux do, install/enable flows register no scheduled task, and
+ a missing task is not a repair condition. True registers (or repairs) the logon task at
+ install/enable time — needed when driving Windows over SSH (Session 0 has no interactive
+ desktop). Unreadable config fails closed to the on-demand default."""
+ with contextlib.suppress(Exception):
+ from hermes_cli.config import load_config
+ return bool(((load_config() or {}).get("computer_use") or {}).get("autostart", False))
+ return False
+
+
+def _cua_autostart_registration_ps_command(binary: str) -> str:
+ """PowerShell body for the elevated registration: Start-Process with a STRUCTURED
+ ``-FilePath`` / ``-ArgumentList`` (older install.ps1 builds interpolated the binary path
+ into a command string, which split at the first space) and ``-Verb RunAs -Wait -PassThru``
+ so the exit code propagates."""
+ return (f"$exe = {_ps_single_quote(binary)}; "
+ "$proc = Start-Process -FilePath $exe -ArgumentList @('autostart','enable') "
+ "-Verb RunAs -Wait -PassThru -ErrorAction Stop; exit $proc.ExitCode")
+
+
def _repair_cua_driver_autostart_windows(driver_cmd: str, *, verbose: bool) -> bool:
- """Register autostart using structured arguments, including paths with spaces."""
+ """Register autostart using structured arguments, including paths with spaces.
+
+ Only registers when the user opted into the per-boot task via
+ ``computer_use.autostart`` (#97389): the on-demand default registers
+ nothing, silently — returning True (nothing to repair) keeps callers from
+ printing "auto-start was not registered" warnings for an intentional
+ absence."""
if sys.platform != "win32":
return True
+ if not _cua_autostart_opt_in():
+ # On-demand default (#97389): the per-boot cua-driver-serve task is opt-in
+ # via computer_use.autostart. Registering here would recreate, on every
+ # enable/install, exactly the silent boot-time task the issue reports.
+ return True
binary = shutil.which(driver_cmd)
if not binary:
return False
if _cua_driver_autostart_registered_windows(binary):
return True
ps = shutil.which("powershell") or shutil.which("powershell.exe") or "powershell"
- ps_cmd = (f"$exe = {_ps_single_quote(binary)}; "
- "$proc = Start-Process -FilePath $exe -ArgumentList @('autostart','enable') "
- "-Verb RunAs -Wait -PassThru -ErrorAction Stop; exit $proc.ExitCode")
+ ps_cmd = _cua_autostart_registration_ps_command(binary)
_print_info(" Registering cua-driver auto-start..." if verbose
else " Repairing cua-driver auto-start registration...")
try:
diff --git a/tests/hermes_cli/test_install_cua_driver.py b/tests/hermes_cli/test_install_cua_driver.py
index b48b98f579f..af3798f3b35 100644
--- a/tests/hermes_cli/test_install_cua_driver.py
+++ b/tests/hermes_cli/test_install_cua_driver.py
@@ -73,6 +73,8 @@ def test_broken_override_never_acquires_standard_driver(tmp_path, monkeypatch, u
@pytest.mark.platforms("windows")
@pytest.mark.parametrize("old_target", [False, True])
def test_autostart_uses_selected_binary_and_verifies_registration(tmp_path, monkeypatch, old_target):
+ """``computer_use.autostart`` is opt-in (#97389): the default is on-demand,
+ so exercising the registration path here requires arming the opt-in first."""
from hermes_cli import tools_config_cua as cua
binary = str(tmp_path / "User's driver directory" / "cua-driver.exe")
@@ -93,6 +95,7 @@ def test_autostart_uses_selected_binary_and_verifies_registration(tmp_path, monk
selected = binary
return SimpleNamespace(returncode=0, stdout="", stderr="")
+ monkeypatch.setattr(cua, "_cua_autostart_opt_in", lambda: True)
monkeypatch.setattr(cua.subprocess, "run", run)
monkeypatch.setattr(cua.shutil, "which", lambda command: command)
assert cua._repair_cua_driver_autostart_windows(binary, verbose=False)
@@ -104,12 +107,87 @@ def test_autostart_uses_selected_binary_and_verifies_registration(tmp_path, monk
def test_autostart_does_not_claim_success_without_registered_task(monkeypatch):
from hermes_cli import tools_config_cua as cua
+ monkeypatch.setattr(cua, "_cua_autostart_opt_in", lambda: True)
monkeypatch.setattr(cua, "_cua_driver_autostart_registered_windows", lambda binary=None: False)
monkeypatch.setattr(cua.shutil, "which", lambda command: command)
monkeypatch.setattr(cua, "_run_text", lambda *a, **kw: SimpleNamespace(returncode=0))
assert not cua._repair_cua_driver_autostart_windows("cua-driver.exe", verbose=False)
+def test_repair_without_opt_in_spawns_no_powershell(monkeypatch):
+ """``computer_use.autostart`` defaults to on-demand (#97389): without the
+ opt-in the repair degrades to a no-op — returns True (nothing to repair)
+ and spawns no PowerShell at all."""
+ from hermes_cli import tools_config_cua as cua
+
+ monkeypatch.setattr(cua, "_cua_driver_autostart_registered_windows", lambda binary=None: False)
+ monkeypatch.setattr(cua.shutil, "which", lambda command: AssertionError("resolved a binary"))
+ with patch("hermes_cli.config.load_config", return_value={}), \
+ patch.object(cua.subprocess, "run", side_effect=AssertionError("spawned PowerShell")), \
+ patch.object(cua, "_run_text", side_effect=AssertionError("spawned PowerShell")):
+ assert cua._repair_cua_driver_autostart_windows("cua-driver.exe", verbose=False)
+
+
[email protected]("config", [
+ {},
+ {"computer_use": {}},
+ {"computer_use": {"autostart": False}},
+])
+def test_autostart_opt_in_defaults_to_on_demand(config):
+ from hermes_cli import tools_config_cua as cua
+
+ with patch("hermes_cli.config.load_config", return_value=config):
+ assert cua._cua_autostart_opt_in() is False
+
+
+def test_autostart_opt_in_explicit_true_registers():
+ from hermes_cli import tools_config_cua as cua
+
+ with patch("hermes_cli.config.load_config",
+ return_value={"computer_use": {"autostart": True}}):
+ assert cua._cua_autostart_opt_in() is True
+
+
+def test_autostart_opt_in_unreadable_config_fails_closed():
+ from hermes_cli import tools_config_cua as cua
+
+ with patch("hermes_cli.config.load_config", side_effect=OSError("unreadable")):
+ assert cua._cua_autostart_opt_in() is False
+
+
+def test_autostart_registration_ps_command_quotes_paths_with_spaces():
+ """Start-Process structured ``-FilePath`` / ``-ArgumentList``: older
+ install.ps1 builds interpolated the binary path into a command string,
+ which split at the first space."""
+ from hermes_cli import tools_config_cua as cua
+
+ path = "C:\\Program Files\\cua driver\\cua-driver.exe"
+ ps = cua._cua_autostart_registration_ps_command(path)
+ assert "Start-Process -FilePath $exe" in ps
+ assert "@('autostart','enable')" in ps
+ assert "-Verb RunAs -Wait -PassThru" in ps
+ # The path is single-quoted (never interpolated bare into the command
+ # string), so spaces cannot split it.
+ assert f"$exe = '{path}'" in ps
+
+
[email protected]("opt_in,expected", [(False, True), (True, False)])
+def test_install_ready_task_requirement_follows_the_opt_in(monkeypatch, opt_in, expected):
+ """With ``computer_use.autostart`` off (#97389) a missing cua-driver-serve
+ logon task is not a repair condition; opted in, it still is."""
+ from hermes_cli import tools_config_cua as cua
+
+ monkeypatch.setattr(cua, "_cua_driver_contract_status",
+ lambda *a: {"ready": True, "version": "0.20.0",
+ "binary": "/x/cua-driver", "reason": ""})
+ monkeypatch.setattr(cua, "_cua_driver_autostart_registered_windows",
+ lambda binary=None: False)
+ monkeypatch.setattr(cua, "_cua_autostart_opt_in", lambda: opt_in)
+ assert cua._cua_driver_install_ready() is expected
+
+
@pytest.mark.platforms("windows")
@pytest.mark.parametrize("registered", [False, True])
def test_setup_preserves_host_registration_failure(monkeypatch, registered):
diff --git a/website/docs/getting-started/platform-support.md b/website/docs/getting-started/platform-support.md
index 895fbc29430..973d747d9a1 100644
--- a/website/docs/getting-started/platform-support.md
+++ b/website/docs/getting-started/platform-support.md
@@ -40,6 +40,11 @@ PRs will be accepted to fix issues with them, but they will take precedence belo
The native bundle pipeline includes Intel macOS (`x64`) as well as Apple Silicon.
It also defines signed-package update acceptance for both architectures.
That coverage does not change the Tier 1 priority assigned to Apple Silicon.
+The `Hermes-Setup.dmg` bootstrap installer is the exception: it is built for
+Apple Silicon (`arm64`) only, so on an Intel Mac it reports "not supported on
+this Mac". Intel Macs use the `darwin-x64` desktop bundle instead, or install
+the [CLI](./installation.md#linux--macos--wsl2--android-termux) and run
+`hermes desktop`.
Linux desktop packaging is disabled in the release workflow, although local
AppImage builds and native Linux PM bundle checks exist.
diff --git a/website/docs/user-guide/features/computer-use.md b/website/docs/user-guide/features/computer-use.md
index 357a5540e2e..9a09d504c31 100644
--- a/website/docs/user-guide/features/computer-use.md
+++ b/website/docs/user-guide/features/computer-use.md
@@ -482,6 +482,30 @@ Override the driver binary path (tests / CI / local builds):
HERMES_CUA_DRIVER_CMD=/path/to/your/cua-driver
```
+### Windows auto-start (opt-in)
+
+On Windows, cua-driver can run from a per-boot Scheduled Task
+(`cua-driver-serve`) so it is already listening when Hermes needs it. This
+task is **opt-in**: by default Computer Use starts the driver on demand,
+per session — exactly as on macOS and Linux — and no scheduled task is
+registered when you install or enable the toolset (#97389).
+
+Set this in `config.yaml` to opt in (the task is registered — or repaired —
+the next time the driver is installed or the toolset is enabled):
+
+```yaml
+computer_use:
+ autostart: true # default: false (on-demand; no scheduled task)
+```
+
+You need this when driving Windows over SSH: Session 0 has no interactive
+desktop, so an on-demand driver cannot reach one
+([windows-ssh](https://cua.ai/docs/how-to-guides/driver/windows-ssh) has the
+recipe). If the task exists but you want it gone, remove it with
+`cua-driver autostart disable` (or `schtasks /Delete /TN cua-driver-serve`)
+from an elevated shell — Hermes does not re-register it once
+`computer_use.autostart` is false.
+
Swap the backend entirely (for testing):
```
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/computer-use.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/computer-use.md
index 6101a8bd631..ac979fb145d 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/computer-use.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/computer-use.md
@@ -127,6 +127,25 @@ HERMES_CUA_DRIVER_CMD=/opt/homebrew/bin/cua-driver
HERMES_COMPUTER_USE_BACKEND=noop # records calls, no side effects
```
+### Windows 自动启动(可选)
+
+在 Windows 上,cua-driver 可以通过开机计划任务(`cua-driver-serve`)常驻运行。该任务为
+**可选项**:默认情况下 Computer Use 按需、按会话启动驱动——与 macOS 和 Linux 完全一致,
+安装或启用工具集时不会注册任何计划任务(#97389)。
+
+在 `config.yaml` 中设置以下内容即可启用(下次安装驱动或启用工具集时会注册或修复该任务):
+
+```yaml
+computer_use:
+ autostart: true # 默认:false(按需启动;不注册计划任务)
+```
+
+通过 SSH 远程驱动 Windows 时需要它:Session 0 没有交互式桌面,按需启动的驱动无法访问
+(参见 [windows-ssh](https://cua.ai/docs/how-to-guides/driver/windows-ssh))。如果任务已
+存在但你不再需要它,可从管理员终端运行 `cua-driver autostart disable`(或
+`schtasks /Delete /TN cua-driver-serve`)删除——`computer_use.autostart` 为 false 时
+Hermes 不会重新注册。
+
## 故障排查
**`computer_use backend unavailable: cua-driver is not installed`** — 运行 `hermes computer-use install` 获取 cua-driver 二进制文件,或运行 `hermes tools` 并启用 Computer Use 工具集。