Skip to content

Bug: Control UI '立即更新' (Update Now) button does nothing when clicked #84808

Closed as not planned

Description

@sztianlangzi-dev

Bug: Control UI "立即更新" (Update Now) button not responding

Environment

  • OpenClaw Version: v2026.5.12 → v2026.5.19
  • Channel: stable
  • Install Method: pnpm
  • UI Context: WebChat (Control UI)

Description

When the Control UI displays an update notification (e.g., "v2026.5.19 available, currently running v2026.5.12"), clicking the "立即更新" (Update Now) button produces no visible response. The button appears clickable but nothing happens — no loading state, no error message, no progress indicator.

Expected Behavior

Clicking the update button should either:

  • Trigger the update process and show progress
  • Or display an error message explaining why the update cannot proceed (e.g., permission issues, dirty git state, etc.)

Actual Behavior

The button click does nothing. No UI feedback of any kind.

Workaround

Running openclaw update --yes via CLI works perfectly.

Additional Notes

  • The issue may be related to the Control UI's update handler not having the proper shell/PTY context to execute the update script
  • Could be a missing permission check or error handling in the frontend update flow
  • Browser cache / stale state might also play a role

Impact

Users who primarily interact through the WebChat/Control UI cannot reliably update without switching to the CLI.

Activity

  1. clawsweeper commented on May 21, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

    Close as superseded: the broad Control UI update-button no-feedback report overlaps two already-open, more actionable updater issues, and this thread does not add logs or environment data that point to a third distinct root cause.

    Canonical path: #78481 is open and specifically tracks the Control UI update button silently returning to the update-available state when update.run is coalesced.

    So I’m closing this here and keeping the remaining discussion on #78481 and #84068.

    Review details

    Best possible solution:

    Keep the actionable updater work concentrated in the open canonical no-feedback and managed-service handoff issues, and ask for a new report only if fresh logs prove a distinct pnpm-specific failure.

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

    No for this exact reporter environment; the issue lacks logs or RPC details. The same observable no-feedback symptom is source-reproducible in the canonical coalesced update path, and the shell/supervisor handoff concern is already concretely tracked elsewhere.

    Is this the best way to solve the issue?

    Yes; closing as superseded is the best cleanup path because existing open issues already isolate the actionable UI coalescing and managed-service handoff failures without keeping a third broad duplicate open.

    Security review:

    Security review: This is an issue triage review, not a PR security review.

    What I checked:

    • Current UI click path is wired: Current main renders the update status banner and wires the update-available button to runUpdate(state), so the remaining problem is not a missing click handler. (ui/src/ui/app-render.ts:1840, 0a4de3de5761)
    • Controller handles known non-success update outcomes: runUpdate calls update.run, maps non-ok/non-success result payloads into updateStatusBanner, but returns through the normal success path without inspecting restart metadata such as restart.coalesced. (ui/src/ui/controllers/config.ts:254, 0a4de3de5761)
    • Gateway returns restart coalescing metadata: The update.run handler logs restart.coalesced and includes the restart object in its response payload, matching the open canonical no-feedback issue's source-reproducible path. (src/gateway/server-methods/update.ts:239, 0a4de3de5761)
    • Canonical no-feedback issue: Update button silently no-ops when update.run is coalesced #78481 is open and specifically tracks the Control UI update button silently returning to the update-available state when update.run is coalesced.
    • Canonical managed-service handoff issue: Update button no-op on systemd-supervised installs: handoff helper killed by unit cgroup before it runs #84068 is open and specifically tracks the shell/supervisor-style no-op update path where the managed-service handoff helper is killed before running under Linux user-systemd.
    • Duplicate search: Searches for Control UI update-button failures found the current issue plus the open canonical no-feedback, handoff, and broader update-manager threads; no separate open issue with unique pnpm-specific evidence was found.

    Likely related people:

    • IAMSamuelRodda: Authored the merged update restart verification work that touched runUpdate, update status banners, expected-version tracking, and focused controller tests. (role: update UI/status behavior author; confidence: high; commits: 6c252cc54c3c; files: ui/src/ui/controllers/config.ts, ui/src/ui/controllers/config.test.ts, ui/src/ui/app-gateway.ts)
    • orlyjamie: Introduced the Control UI update warning banner and wired the banner action to the existing runUpdate(state) path. (role: Control UI update surface introducer; confidence: high; commits: 2ddc13cdb7cc; files: ui/src/ui/app-render.ts, ui/src/ui/app-gateway.ts, src/infra/update-startup.ts)
    • steipete: Introduced the original gateway config/update restart flow and later worked on package update handoff and restart cooldown behavior in the backend path. (role: gateway update flow and handoff contributor; confidence: high; commits: 71c31266a1db, e131eaecb502, 88da533714e5; files: src/gateway/server-methods/update.ts, src/infra/restart.ts, ui/src/ui/controllers/config.ts)

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 0a4de3de5761.

  2. added
    P2Normal backlog priority with limited blast radius.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    on May 21, 2026
  3. xieetudousi commented on May 21, 2026

    @xieetudousi

    I ran into this exact same issue. The root cause is that the Control UI update handler lacks the proper shell/PTY context to execute the update script.

    Quick troubleshooting steps:

    1. Check how your gateway is launched (LaunchAgent / systemd / Docker / direct CLI)? If it's managed by a process manager, the TTY context may be missing.
    2. Temporary workaround: openclaw update --yes works fine - use that and then manually restart the gateway.
    3. For a permanent fix, you can set auto-update in your openclaw.json:

    json { "update": { "autoUpdate": true, "autoUpdateInterval": "24h" } }

    This way the gateway automatically checks for updates without needing the UI button.

    1. Also check the browser console (F12 -> Console) for any errors. If you see CORS or WebSocket disconnect errors, that points to the frontend losing connection to the gateway's signaling channel.

    If you need help getting this fully configured, I offer deployment & configuration services that cover the complete setup including auto-update policies, multi-agent tuning, etc. Feel free to reach out if interested!

  4. locked as resolved and limited conversation to collaborators on May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions