Skip to content

fix(ui): offer desktop setup instead of Retry when Host Desktop is off - #177888

Merged
RomneyDa merged 1 commit into
openclaw:mainfrom
etzelm:cui/7-desktop-setup-guidance
Oct 20, 2026
Merged

RomneyDa merged 1 commit into
openclaw:mainfrom
etzelm:cui/7-desktop-setup-guidance

Conversation

@etzelm

@etzelm etzelm commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #174368

What Problem This Solves

Fixes: the chat Desktop panel says "The requested desktop is unavailable. Retry when the machine is ready." and offers only Retry when the Gateway's Host Desktop is not set up, so retrying can never help (repro in the issue).

User Impact

User impact: opening Desktop in a local chat on a Gateway without Host Desktop now says "Desktop access is not enabled on the Gateway host." and that the panel shares the Gateway host's screen, not the screen of the device running the browser, then fixes it in place. When no screen-sharing server is running, the panel shows the steps for the Gateway host (on macOS: System Settings, General, Sharing on the Gateway host Mac) and Check again, which shows Refreshing while it re-checks. When Screen Sharing is already running, it says which account the sign-in will use (a macOS user account on the Gateway host, or the desktop server's own password elsewhere) and offers Enable desktop access in OpenClaw to connections that can change config; everyone else is told that a Gateway administrator can enable it (with Check again). Both states note that the screen-sharing or desktop server may be reachable from other devices on the network. Once Host Desktop is on, the panel re-checks and connects to the same Gateway desktop without leaving the chat. Other machines, and offline or starting targets, keep today's message.

Why This Change Was Made

For the Gateway host, the chat panel now asks the Gateway for the same Host Desktop setup check the Systems page uses and renders that setup state inside the panel, worded for the Gateway host.

The panel only accepted environments that already advertise a desktop. A Gateway with desktop.host.enabled off never advertises one, so the panel fell through to the generic notice. The setup discovery (environments.list with includeDesktopSetup), the setup state selection and the narrow desktop.host.enabled patch already existed in Systems. This change moves the state selection and the patch into one helper that Systems and the panel share, so policy and the authority check are not duplicated. The helper declares the narrow runtime-config shape it needs and imports nothing from the panel inputs, so desktop-panel-inputs.ts imports that type from the helper in one direction only. Systems keeps its own copy, which sits under the selected machine's row; the panel uses its own English keys that name the Gateway host (the browser is often on another computer), plus the account and network lines shown before consent.

Chat desktop target and state Panel shows Recovery
Gateway host, Host Desktop off, no screen-sharing server (macOS) cause line naming the Gateway host / "Turn on Screen Sharing" / "On the Gateway host Mac, open System Settings ..." / network note Check again: re-reads inventory, connects once Host Desktop is available
Same on Linux and others cause line / "Set up a desktop server" / VNC or managed desktop steps for the Gateway host / "The desktop server may be reachable from other devices on your network." Check again
Gateway host, Host Desktop off, Screen Sharing detected, connection can patch config cause line / "Screen Sharing is available" / network note / account line (macOS user account on the Gateway host, sign-in prompt follows) / "Applies without restarting the Gateway." Enable desktop access in OpenClaw: same desktop.host.enabled: true patch as Systems, then re-read and connect; a rejected patch shows the config error
Same on Linux and others cause line / "A desktop is available" / network note / account line (the desktop server's own password) Same
Same, connection cannot patch config Same, Enable disabled, "A Gateway administrator can enable desktop access." Check again
Gateway host, setup check reports unsupported cause line / "Screen sharing needs attention" / setup steps plus the Gateway's reason Check again
Gateway host, the setup check itself fails Unchanged generic notice Unchanged: Retry
Gateway host, Host Desktop on but nothing on the RFB port Unchanged: the Gateway advertises a desktop, the panel connects and shows the existing disconnect reason Unchanged
Node, worker, unknown source, or session without a desktop Unchanged: "The requested desktop is unavailable. Retry when the machine is ready." Unchanged: Retry
Target offline, starting, or inventory failure Unchanged Unchanged
Focused desktop window (document mode) and the docked picker outside chat Unchanged (picker with notice) Unchanged
Host Desktop on but the OS refuses the account Unchanged: existing credentials prompt or disconnect reason Unchanged

How the issue's Expected behavior maps to the rows above:

Expected behavior (issue) Where it is met
Explain that Host Desktop is not enabled, distinct from missing Screen Sharing, offline, startup, or auth failure Cause line on every Host-Desktop-off row; "Turn on Screen Sharing" vs "Screen Sharing is available" rows; offline/starting and OS-refuses-account rows unchanged
Actionable setup path reusing the Systems flow Same environments.list setup check, state selection and desktop.host.enabled patch helper as Systems, inside the panel
Which computer, OS permissions/account access, network exposure before consent Cause line names the Gateway host and says its screen is shared; account line before the Enable button; network note on macOS and other platforms
Enablement when supported and authorized, else platform instructions Enable row (can patch config), administrator row, needs-server rows with macOS or VNC steps
Retest and connect the selected desktop without other Settings pages Check again and post-Enable re-check, then connect to the same Gateway desktop in the chat panel

OpenClaw never turns on Screen Sharing itself or changes macOS permissions. The docs' Desktop section now mentions the chat panel path.

Evidence

All of the following ran on one machine (macOS, Apple silicon) at the staged tree, base 714a6da6196. The screenshots in Behaviour were captured one revision earlier; the only later change is the type import above (no emitted code), and the upgrade run below rendered the same text from the final tree.

Build. The Control UI e2e harness builds the UI from each checkout and serves it with Vite preview; a real Gateway runs in process from the same checkout (synthetic state, loopback, auth.mode: none, a fixture model so chat opens). BEFORE is this branch with only the production files reverted to the base (tests kept). Served bundles: BEFORE /assets/index-BeVLqI-e.js, AFTER /assets/index-BSUB8YgB.js.

Behaviour. Local chat, Layout, Toggle desktop panel. Panel text read from the DOM (innerText):

  1. No screen-sharing server (Gateway desktop.host with enabled: false and a port where nothing listens, so the setup check reports needs-server).

    • BEFORE: The requested desktop is unavailable. Retry when the machine is ready. / Retry

      before

    • AFTER: Desktop access is not enabled on the Gateway host. This panel shares the Gateway host's screen, not the screen of the device running this browser. / Turn on Screen Sharing / On the Gateway host Mac, open System Settings → General → Sharing. Turn on Screen Sharing, or allow the Gateway host account to Observe and Control in Remote Management, then check again. / Screen Sharing may also be reachable from other devices on your network. / Check again

      after

  2. Screen Sharing running, Host Desktop not enabled (no desktop config). BEFORE shows the same generic notice and Retry. AFTER: Desktop access is not enabled on the Gateway host. This panel shares the Gateway host's screen, not the screen of the device running this browser. / Screen Sharing is available / Enable desktop access to view and control the Gateway host in OpenClaw. / Screen Sharing may also be reachable from other devices on your network. / Screen Sharing signs in with a macOS user account on the Gateway host. A sign-in prompt follows after you enable access. / Enable desktop access in OpenClaw / Applies without restarting the Gateway.

    after-ready

  3. Clicking Enable desktop access in OpenClaw on that Gateway: the browser sent config.patch with raw {"desktop":{"host":{"enabled":true}}} (response ok), then environments.status {environmentId: "gateway"} returned desktop: true and the panel sent desktop.observe {source: {kind: "host"}, control: false}. The Gateway config afterwards had desktop.host.enabled: true, and the panel showed the macOS account prompt (Enter a macOS account allowed in System Settings → General → Sharing. ...). No credentials were entered.

Upgrade and existing settings. Latest stable [email protected] (npm latest) was installed in a temporary directory. Its own CLI wrote each config (openclaw config set --batch-file, meta.lastTouchedVersion: "2026.10.5") with a full desktop.host block using every key its schema accepts, and the stable Gateway booted on it ([gateway] http server listening (15 plugins: ...), then [shutdown] completed cleanly in 134ms). Then, on the same config and state, this tree's built CLI ran openclaw doctor --fix --non-interactive (this tree refuses stable-era state until doctor migrates it, as for any upgrade; doctor left desktop untouched) and openclaw gateway run (loopback, token auth). The Control UI built from this tree connected to it. Paths are shown as <arm-A> / <arm-C>; the password file holds a synthetic value.

  • Existing block with enabled: false, as stable wrote it: {"enabled": false, "managed": false, "port": 5900, "passwordFile": "<arm-A>/vnc-password-synthetic"}.
    • Boots: 2026-10-19T19:06:03.721-07:00 [gateway] http server listening (20 plugins: acpx, anthropic, bonjour, browser, canvas, cua-computer, device-pair, file-transfer, geolocation, github, google-meet, linux-node, llama-cpp, memory-core, ollama, openai, talk-voice, teams-meetings, xai, zoom-meetings; 3.2s)
    • The panel asked environments.list {includeDesktopSetup: true}, got desktopSetup: {state: "ready"}, and showed the setup state: Desktop access is not enabled on the Gateway host. ... / Screen Sharing is available / ... / Enable desktop access in OpenClaw / Applies without restarting the Gateway. (same text as case 2).
    • Enable sent config.patch raw {"desktop":{"host":{"enabled":true}}}. Gateway log, whole records:
      2026-10-19T19:07:00.752-07:00 [gateway] config.patch write actor=openclaw-control-ui device=<device-id> ip=unknown-ip conn=<conn-id> changedPaths=desktop.host.enabled restartReason=config.patch
      2026-10-19T19:07:00.851-07:00 [reload] config change detected; evaluating reload (desktop.host.enabled)
      2026-10-19T19:07:00.866-07:00 [reload] config hot reload applied (desktop.host.enabled)
      2026-10-19T19:07:00.870-07:00 [reload] config source revision 1 accepted (write)
      2026-10-19T19:07:00.979-07:00 [ws] ⇄ res ✗ desktop.observe 33ms errorCode=INVALID_REQUEST errorMessage=macOS account credentials are required to observe Screen Sharing bytes=255 conn=<conn-id> id=82:6a40401a-…6864
      
    • diff of the whole 172-line config file before and after Enable:
      54c54
      <       "enabled": false,
      ---
      >       "enabled": true,
      
      managed, port and passwordFile are byte-identical; the panel then showed the macOS account prompt.
  • Existing block with enabled: true, as stable wrote it: {"enabled": true, "managed": false, "port": 5900, "passwordFile": "<arm-C>/vnc-password-synthetic"}. The Gateway booted the same way. The panel sent no setup check: its requests were environments.status (desktop: true) and then desktop.observe {source: {kind: "host"}, control: false}, the existing connect path, which reached the same account prompt (2026-10-19T19:09:11.840-07:00 [ws] ⇄ res ✗ desktop.observe 416ms errorCode=INVALID_REQUEST errorMessage=macOS account credentials are required to observe Screen Sharing bytes=255 conn=<conn-id> id=62:7bffe6b9-…fa1d). The config file's SHA-256 was the same before and after the run.

Data-model compatibility: the change adds no stored fields and no migration. A desktop.host block written by the latest stable release loads in this tree, is shown as-is, and keeps every key: the only write is the same one-key desktop.host.enabled patch Systems already makes.

Tests (pnpm test <paths>):

  • ui/src/components/desktop/desktop-panel-host-setup.test.ts (new): Test Files 1 passed (1), Tests 6 passed (6). With --maxWorkers=1: Duration 2.00s, process wall time real 3.90 s. CI seconds will be added once CI has run.
  • ui/src/components/desktop/ + ui/src/pages/systems/: Test Files 16 passed (16), Tests 179 passed (179)
  • chat pane files that render the embedded desktop panel (chat-pane-embedded-panels, chat-pane-panel-toolbar, chat-pane-session-panel-toggle, chat-pane-sidebar-layout(.lazy), chat-pane-sidebar-view, chat-sidebar-region): Test Files 7 passed (7), Tests 79 passed (79)

Regression proof. The new file with only the production change reverted: Tests 4 failed | 2 passed (6). The four setup cases (enable then connect, Check again then connect, administrator hint on a Linux host, enable failure) fail on the generic notice, for example expected '\nThe requested desktop is unavailabl…' to contain 'Screen Sharing is available'. The two guards pass on both sides by design: a node target keeps the generic notice and never asks for setup, and a failed setup check keeps the generic notice. With the change: 6 passed (6).

Other checks

Check Result
pnpm check:madge-import-cycles Madge import cycle check: 0 cycle(s). At the previous revision it failed with 1 cycle(s): ui/src/components/desktop/desktop-panel-inputs.ts -> ui/src/components/desktop/host-desktop-setup.ts
pnpm tsgo:ui exit 0
oxfmt --check (changed files) exit 0
oxlint (changed files) 0 errors; 1 warning at desktop-panel-solid.tsx:276, same on the base
pnpm ui:i18n:verify exit 0 (English source only; locales are generated)
git diff --check clean
check:changed --base 714a6da6196 typecheck (UI and core test graphs), lint, format, i18n catalog, line-cap ratchet pass. Three failures are identical on the base and in files this PR does not touch: max-lines suppression ratchet (chat-message.test.tsx, config-page-state.ts, sessions-page-state.ts), core tsgo graph boundary (gateway-root 725 and plugins-platform 724 roots over the advisory 720), dead-export scan (src/state/openclaw-state-db-historical-fixtures.test-support.ts, same three exports from pnpm deadcode:exports on the base)
changed:lanes ui, coreTests, docs

Gaps, stated plainly

  • The full Screen Sharing loop (turning on macOS Screen Sharing, signing in with a macOS account, seeing the remote screen) needs a person at the Mac and was not run. The browser proof stops at the account prompt after enabling; the component tests cover enable, Check again and reconnect with a fake desktop client.
  • The "no server" screenshot uses a Gateway configured with an unused desktop port, because this machine has Screen Sharing on port 5900. The setup check result (needs-server) is the one the reporter's Gateway produces with nothing on 5900.
  • The panel names the computer as "the Gateway host": the environment inventory labels the Gateway entry "Gateway local" and carries no hostname, so there is no more specific name to show.
  • Linux copy (desktop server account and network lines, administrator hint) is covered by a component test; managed-desktop and unsupported states reuse the shared state selection and were not screenshotted.
  • Untested edge: if the session or target changes while Enable is in flight, the stale result is dropped (the setup generation bumps on every return to the picker), but no test covers it. If only the runtime config capability changes identity mid-enable, the button stays busy until the next return to the picker.
  • In the upgrade run, desktop.host.passwordFile was preserved, but VNC password sign-in was not exercised: this Mac's Screen Sharing asks for a macOS account, so the existing connect path showed the account prompt in both arms. managed was false because managed desktops are Linux-only. The upgrade run did not cover a Linux Gateway.
  • The proof spec is a scratch e2e file and is not committed; the committed tests are the component tests above.
  • Open PR feat(ui): refine remote desktop controls and connection states #176546 refines the same desktop panel files; whichever lands second will need a small rebase.

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: L labels Oct 20, 2026
@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The chat Desktop panel offers Host Desktop setup instructions and authorized enablement instead of an ineffective Retry action.

Example: A local macOS chat targets the Gateway host with desktop.host.enabled false and Screen Sharing running.

  • Before: The panel says the desktop is unavailable and offers only Retry.
  • After: The panel explains which screen will be shared, offers Enable desktop access in OpenClaw, and proceeds to the macOS account prompt.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful repair supported by inspected browser evidence, upgrade preservation, and reported red/green component regressions.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after images show the built chat panel's missing-server and ready-to-enable states; real-Gateway browser output exercises consent, config.patch, inventory refresh, desktop.observe, and the macOS account prompt. Latest-stable upgrade output demonstrates preserved existing desktop settings in disabled and enabled configurations; completed OS sign-in is outside the changed setup behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Opening an unconfigured Gateway desktop leaves users retrying a prerequisite that Retry cannot enable.
Reason: The MEMBER-authored linked issue explicitly requests this recovery direction, and the patch reuses existing setup and authorization owners.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it addresses a confirmed chat Desktop setup failure that remains on current main, and the prior import-cycle finding is resolved.

Priority: P0
Reviewed head: 6740158862fea6164f96c054db9549b066a5db0a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI resolves the chat's desktop target through Gateway environment inventory, displays prerequisites, and delegates enablement to the existing runtime-config owner before requesting desktop observation.

flowchart TD
  A[Chat Desktop panel] --> B[Desktop source owner]
  B --> C[Gateway environment inventory]
  C --> D[Host setup guidance]
  D --> E[Runtime config owner]
  E --> F[Gateway config patch]
  F --> B
  B --> G[Desktop observation]
Loading

Technical review

Best possible solution:

Retain the inline setup flow, shared enablement operation, and exact Gateway targeting while letting the existing config owner enforce writes.

Do we have a high-confidence way to reproduce the issue?

Current-main source establishes the disabled-host fallback, corroborated by the linked report and contributor's before-change browser reproduction; this review ran no target code.

Is this the best way to solve the issue?

Reusing setup discovery and the existing config-write owner addresses the failing entry point without changing desktop defaults, OS permissions, or unrelated target selection.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 109271a97cb3.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit dd6429f adds ui/src/components/desktop/desktop-panel-owner.ts:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dd6429f2fca7; files: ui/src/components/desktop/desktop-panel-owner.ts)

PR surface

Source +238, Tests +196, Docs +3. Total +437 across 16 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 12 281 43 +238
Tests 3 196 0 +196
Docs 1 4 1 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 481 44 +437

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #174368
Summary: This PR implements the inline recovery requested by the canonical chat Desktop setup report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P0: The confirmed first-use Desktop setup failure leaves a non-technical user with an ineffective Retry loop and no recovery through that entry point, meeting the requested UX priority override.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-20T00:56:36.818Z sha 0a3310de181462030ee6607df4f2af9ca3cc763b :: needs real behavior proof before merge. :: [P2] Break the new type-import cycle

Reviewed October 19, 2026, 10:34 PM ET / October 20, 2026, 02:34 UTC (Revision 2).

- The chat Desktop panel asks environments.list for desktopSetup only when
  its unresolved automatic target is the Gateway host.
- The panel says desktop access is not enabled on the Gateway host and that
  it shares the Gateway host's screen, shows setup steps worded for the
  Gateway host plus account and network notes, and offers Enable desktop
  access when the connection can patch config (else the administrator
  hint) or Check again, then re-reads inventory and connects the Gateway
  desktop.
- Systems and the panel share the setup state selection and the
  desktop.host.enabled patch helper; other targets, document mode and a
  failed setup check keep desktop.sourceUnavailable.
- The setup helper declares its own runtime-config shape and imports
  nothing from desktop-panel-inputs.ts, so the type import runs one way.
- Docs mention the chat panel path.
@etzelm
etzelm force-pushed the cui/7-desktop-setup-guidance branch from 0a3310d to 6740158 Compare October 20, 2026 02:28
@etzelm

etzelm commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 20, 2026
@RomneyDa
RomneyDa merged commit 6f20702 into openclaw:main Oct 20, 2026
105 of 106 checks passed
RomneyDa added a commit that referenced this pull request Oct 20, 2026
#177888)

- The chat Desktop panel asks environments.list for desktopSetup only when
  its unresolved automatic target is the Gateway host.
- The panel says desktop access is not enabled on the Gateway host and that
  it shares the Gateway host's screen, shows setup steps worded for the
  Gateway host plus account and network notes, and offers Enable desktop
  access when the connection can patch config (else the administrator
  hint) or Check again, then re-reads inventory and connects the Gateway
  desktop.
- Systems and the panel share the setup state selection and the
  desktop.host.enabled patch helper; other targets, document mode and a
  failed setup check keep desktop.sourceUnavailable.
- The setup helper declares its own runtime-config shape and imports
  nothing from desktop-panel-inputs.ts, so the type import runs one way.
- Docs mention the chat panel path.

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 20, 2026
Backport the trusted translations for the eight desktop setup strings introduced by #177888 and regenerate beta-line locale metadata.

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
openclaw#177888)

- The chat Desktop panel asks environments.list for desktopSetup only when
  its unresolved automatic target is the Gateway host.
- The panel says desktop access is not enabled on the Gateway host and that
  it shares the Gateway host's screen, shows setup steps worded for the
  Gateway host plus account and network notes, and offers Enable desktop
  access when the connection can patch config (else the administrator
  hint) or Check again, then re-reads inventory and connects the Gateway
  desktop.
- Systems and the panel share the setup state selection and the
  desktop.host.enabled patch helper; other targets, document mode and a
  failed setup check keep desktop.sourceUnavailable.
- The setup helper declares its own runtime-config shape and imports
  nothing from desktop-panel-inputs.ts, so the type import runs one way.
- Docs mention the chat panel path.
@etzelm
etzelm deleted the cui/7-desktop-setup-guidance branch October 29, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Chat Desktop panel offers Retry instead of guiding users through missing desktop setup

2 participants