Skip to content

fix(ui): prevent lost or blocked device binding edits - #149721

Merged
steipete merged 4 commits into
mainfrom
codex/qa-settings-reload-draft
Sep 16, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/qa-settings-reload-draft

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: Devices can lose a binding edit made during Reload, or block clearing a saved binding after the last execution-capable node disappears.

User Impact

Default and per-agent binding controls pause during configuration reloads, then resume when the read finishes. Failed reads retain the draft. An administrator can explicitly clear an unavailable binding with Any node or Use default, even with no eligible replacement nodes. A cleared selector with no remaining choices stays disabled.

Why This Change Was Made

The shared binding editor now follows the existing configuration-loading state. Each selector also distinguishes a stale binding that can be cleared from an empty selector with nothing to choose. The configuration coordinator still owns the writes; permission, saving, raw-mode, and execution-routing rules remain unchanged. There are no configuration or storage migrations.

Evidence

The mounted production-bundle Reload reproduction accepted a new binding and then reverted it to the disk value. Both original regression cases failed. Separately, removed-node and capability-loss cases preserved unavailable bindings but prevented explicit clearing; both new cases failed while the two existing preservation/recovery controls passed.

The combined candidate passes all six browser cases and 31 neighboring tests. It verifies failed-read recovery, the revision and exact payload of the next autosave, independent global/agent unsets, no automatic writes on capability loss or recovery, and no resurrection of explicitly cleared bindings. Both UI and UI-E2E type graphs, scoped typed lint, formatting, and diff checks pass on Node 24.20.0. Fresh independent review of the complete combined candidate found no actionable P0–P2 issues. Proof uses a synthetic Gateway; no fresh authenticated live-profile replay is claimed.

Current head: 8c9088a86fa139f345240ef9715d15cab5a79509, incorporating main ce9e8433101452bbd737fd75bdb9e029aa62ae65 and the newly merged desktop diagnostics in #148354. All five feature files and their configuration owners remain byte-identical to the reviewed and proven candidate; the main-relative patch is unchanged. Exact-head CI 35065148251 passed all 92 checks, including the real-Gateway desktop lane.

The preceding head's CI 35062487390 finished with 90 passing checks, the SSH real-Gateway desktop failure, and the failed aggregate. Node passed first. The replacement viewer lost its framebuffer after controller takeover; the upstream close cause remains unknown. This main integration supplies the new bounded diagnostics for the next run, rather than repeating the same inputs. Earlier shared planner, Goal-read, and renderer-lint failures were repaired by #149726 and #149697. The new diagnostic-enabled run passed, but a pass alone does not establish why the historical desktop stream disconnected. No failed or skipped run counts as passing evidence.

Before Reload fix: controls accept input during the pending read.

Devices bindings during reload before the fix

After Reload fix: both binding selectors and Save pause until the read finishes.

Devices bindings during reload after the fix

Before clearing fix: unavailable saved bindings cannot be cleared.

Unavailable device bindings stuck before explicit clearing is enabled

After explicit clearing: the values are Any node and Use default, with Saved confirmed.

Device bindings explicitly cleared and saved

@clawsweeper

clawsweeper Bot commented Sep 16, 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.

@steipete
steipete marked this pull request as ready for review September 16, 2026 05:08
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 2:51 AM ET / 06:51 UTC (Revision 3).

ClawSweeper review

What this changes

The Devices page pauses node-binding edits during configuration reloads and allows administrators to clear unavailable bindings, with browser regression coverage and updated documentation.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused fix: both defects persist on current main and in v2026.9.4. No actionable introduced defect was found, and the supplied browser evidence supports the changed UI behavior.

Priority: P2
Reviewed head: 8c9088a86fa139f345240ef9715d15cab5a79509

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with directly relevant visual evidence and meaningful browser regressions; no actionable patch defect was found.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the mounted Devices editor locking during Reload and displaying explicitly cleared bindings with Saved confirmation. The synthetic-Gateway browser scenarios cover failed-read recovery and exact save payloads; no authenticated live-profile replay is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots show the mounted Devices editor locking during Reload and displaying explicitly cleared bindings with Saved confirmation. The synthetic-Gateway browser scenarios cover failed-read recovery and exact save payloads; no authenticated live-profile replay is claimed.
Evidence reviewed 8 items Both fixes remain necessary on main: Current main still omits configuration loading from the editor lock and disables every selector when no eligible nodes remain. The comparison contains exactly the two proposed production changes.
Latest release retains the defects: The v2026.9.4 binding view has the same two unfixed conditions; neither repair is present in the supplied latest release.
Existing write and permission owners are preserved: Default and per-agent callbacks retain their administrator checks and use the existing patchForm/removeFormValue operations. The runtime capability publishes loading transitions; the configuration reader clears loading after success or failure, while discard reloads through the existing coordinator.
Findings None None.
Security None None.

How this fits together

The Devices page combines saved execution-node preferences with the current node inventory. Its controls send explicit edits through the shared configuration coordinator, which owns saving and reload recovery.

flowchart TD
  A[Saved configuration] --> C[Devices binding editor]
  B[Node inventory] --> C
  D[Permissions and loading state] --> C
  C --> E[Explicit selection or clear]
  E --> F[Configuration coordinator]
  F --> G[Saved configuration and status]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +4, Tests +225, Docs +2. Total +231 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 6 2 +4
Tests 2 226 1 +225
Docs 2 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 235 4 +231

Review metrics

None.

Technical review

Best possible solution:

Keep binding controls synchronized with the shared configuration lifecycle while preserving saved targets until an administrator explicitly changes or clears them.

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

Yes: source establishes that a pending discard reload can replace newly accepted input, and an empty eligible-node list disables clearing saved bindings. The supplied browser scenarios exercise both triggers; this review did not rerun them.

Is this the best way to solve the issue?

Yes: the two conditions repair the shared binding editor while retaining existing clear actions, administrator checks, saved references, and configuration-write ownership.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs two bounded Devices settings failures without changing execution policy or configuration formats.
  • 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. Sufficient (screenshot): Inspected before/after screenshots show the mounted Devices editor locking during Reload and displaying explicitly cleared bindings with Saved confirmation. The synthetic-Gateway browser scenarios cover failed-read recovery and exact save payloads; no authenticated live-profile replay is claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots show the mounted Devices editor locking during Reload and displaying explicitly cleared bindings with Saved confirmation. The synthetic-Gateway browser scenarios cover failed-read recovery and exact save payloads; no authenticated live-profile replay is claimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots show the mounted Devices editor locking during Reload and displaying explicitly cleared bindings with Saved confirmation. The synthetic-Gateway browser scenarios cover failed-read recovery and exact save payloads; no authenticated live-profile replay is claimed.

Evidence

What I checked:

  • Both fixes remain necessary on main: Current main still omits configuration loading from the editor lock and disables every selector when no eligible nodes remain. The comparison contains exactly the two proposed production changes. (ui/src/pages/devices/view.ts:52, fb59f87aa7b2)
  • Latest release retains the defects: The v2026.9.4 binding view has the same two unfixed conditions; neither repair is present in the supplied latest release. (ui/src/pages/devices/view.ts:52, 3a9d69db306c)
  • Existing write and permission owners are preserved: Default and per-agent callbacks retain their administrator checks and use the existing patchForm/removeFormValue operations. The runtime capability publishes loading transitions; the configuration reader clears loading after success or failure, while discard reloads through the existing coordinator. (ui/src/pages/devices/devices-page.ts:577, 8c9088a86fa1)
  • Regression coverage exercises the mounted page: The two complete browser test files cover successful and failed reloads, subsequent autosave revision and payload, removal and capability loss, independent clearing, and preservation without automatic writes. The captured PR body reports six browser cases and 31 neighboring tests passing; this read-only review did not execute them. (ui/src/e2e/settings-reload-devices-draft.e2e.test.ts:23, 8c9088a86fa1)
  • Inspected before and after screenshots: All four prepared images were inspected. The Reload pair shows enabled controls becoming disabled while retaining the draft selection; the clearing pair shows unavailable saved bindings becoming Any node and Use default with Saved visible. These are mounted UI captures using a synthetic Gateway, not authenticated live-Gateway proof. The captured PR body embeds all four GitHub attachments.
  • Re-review continuity: The five feature files, Devices page caller, and configuration-owner directory are byte-identical to the previous reviewed head. The supplied completed review retained no findings; later main integrations did not change this repair. (ui/src/pages/devices/view.ts:52, 8c9088a86fa1)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-16T05:15:51.704Z sha 7cfa29e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-16T06:00:28.665Z sha be9f877 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as draft September 16, 2026 05:36
@steipete steipete changed the title fix(ui): prevent lost device binding edits during reload fix(ui): prevent lost or blocked device binding edits Sep 16, 2026
@steipete
steipete marked this pull request as ready for review September 16, 2026 05:53
@steipete
steipete merged commit 25ae7a5 into main Sep 16, 2026
139 of 140 checks passed
@steipete
steipete deleted the codex/qa-settings-reload-draft branch September 16, 2026 07:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
* fix(ui): prevent lost device binding edits during reload

* fix(ui): allow clearing unavailable device bindings
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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: M 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.

1 participant