Repository navigation
fix(ui): prevent lost or blocked device binding edits - #149721
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 2:51 AM ET / 06:51 UTC (Revision 3). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +225, Docs +2. Total +231 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* fix(ui): prevent lost device binding edits during reload * fix(ui): allow clearing unavailable device bindings
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 maince9e8433101452bbd737fd75bdb9e029aa62ae65and 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.
After Reload fix: both binding selectors and Save pause until the read finishes.
Before clearing fix: unavailable saved bindings cannot be cleared.
After explicit clearing: the values are Any node and Use default, with Saved confirmed.