Repository navigation
fix(nodes): preserve operator rename during reapproval - #117608
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 4:20 PM ET / 20:20 UTC. ClawSweeper reviewWhat this changesThe PR keeps an operator-assigned paired-node display name during capability reapproval while refreshing the node-reported command and capability surface. Merge readinessThis PR remains necessary: current Priority: P2 Review scores
Verification
How this fits togetherA paired node submits a reported name and capability surface to the Gateway for approval. The Gateway stores the approved surface for CLI status and selection, while flowchart LR
A[Paired node reconnect] --> B[Pending reported name and capabilities]
B --> C[Gateway reapproval]
D[Operator node rename] --> E[Approved inventory label]
C --> F[Refresh approved node surface]
E --> F
F --> G[CLI node status and selection]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +34. Total +35 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Retain the operator-owned approved display name while updating the pending node-reported capability surface, then land the focused repair through normal maintainer merge review. Do we have a high-confidence way to reproduce the issue? Yes, from source: current Is this the best way to solve the issue? Yes. Preserving the existing approved-surface label at the approval owner is the narrowest fix and matches the nearby contract that reconnect metadata must not replace the operator-facing surface name. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against db49a9a565f8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready evidence for The approval owner rebuilt the full approved node surface from pending client metadata, which silently overwrote the operator-owned name written by Real behavior proof used separate temporary Gateway and node state plus port Before reapproval, pending output contained the client-reported Proof completed:
The latest ClawSweeper rank-up moves are complete: real lifecycle output is recorded and the PR body is updated. No proof gaps remain. |
|
Merged via squash.
|
Closes #117607
What Problem This Solves
Fixes an issue where operators who renamed a paired node would lose that stable label when approving a later capability or command-surface change from the same node.
Why This Change Was Made
Node reapproval now refreshes the node-declared capability surface while retaining the existing approved display name. The pending client-reported name remains the fallback for first approval, so initial pairing behavior is unchanged.
User Impact
Names assigned with
openclaw nodes renamenow survive node capability reapproval. Operators can keep stable inventory labels even when a client reports a different machine name during an upgrade or reconnect.Evidence
node.renamewrites the approvednodeSurface.displayName, butapproveNodePairingpreviously replaced the whole surface withpending.displayNameon every reapproval.d352beed78690bfac4eadb22960bb4d602f6111d: an isolated Gateway and real headless node used separate temporary state and port21467(never the operator Gateway or port18789). The node was first approved asReported iPad, renamed throughopenclaw nodes renametoLiving Room iPad, then reconnected asReported iPad (updated)with installed-app sharing enabled to force a capability reapproval. Before approval,nodes pending --jsonshowed the newdevice.appscommand whilenodes status --jsonretainedLiving Room iPadwithpending-reapproval. Afternodes approve, status still showedLiving Room iPad, includeddevice.apps, reportedapprovalState: approved, andnodes pending --jsonreturned[]. The owned node and Gateway then shut down cleanly and the isolated port closed.openclaw/ci-gate.git diff --checkpassed.+2/-1; tests:+38/-4.Release-note context: paired node rename overrides now remain stable across capability reapproval.
AI-assisted: yes. The state ownership and public node-rename contract were independently reviewed, and the final branch was remotely tested, exercised through the real CLI/Gateway/node lifecycle, and autoreviewed.