Repository navigation
refactor(ui): share pairing request flows - #147123
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 13, 2026, 5:49 PM ET / 21:49 UTC (Revision 5). ClawSweeper reviewWhat this changesShares approval and rejection handling within each Control UI pairing family while preserving their distinct refresh behavior and adding lifecycle coverage. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, behavior-preserving cleanup that current main does not contain. No actionable introduced defects were found, and the previous review has no outstanding findings. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI Devices page sends pairing decisions to the Gateway and refreshes its device and node inventory. These operations connect page actions and confirmation dialogs to Gateway requests and displayed results. flowchart TD
A[Devices page actions] --> B[Permission and confirmation checks]
B --> C[Device pairing operations]
B --> D[Node pairing operations]
C --> E[Gateway pairing requests]
D --> E
E --> F[Connection-scoped device refresh]
E --> G[Current inventory refresh]
F --> H[Inventory and error display]
G --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -5, Tests +183. Total +178 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain one private request owner per pairing family, preserving the existing public operations and their distinct lifecycle contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes duplicated implementation rather than repairing a reported behavioral defect. Is this the best way to solve the issue? Yes: separate private helpers remove duplication without combining the device and node lifecycle policies or changing callers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9e45a8f47175. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
ba748b6 to
85ce875
Compare
|
@clawsweeper re-review Refreshed head 85ce875 includes the landed Workboard awaited-cleanup fix landed via PR147203 and the prior UI-budget correction. Reviewed source/test blobs remain unchanged. Fresh P2 review passed; normal new-head CI is required. Please review this exact revision. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
Device and node pairing approval/rejection duplicate their request and refresh flows.
User Impact
Device responses remain fenced to the original client and request generation. Node pairing refreshes the current inventory on success or failure, with failure text retained after quiet refreshes.
Why This Change Was Made
One private async owner per pairing family retains all four public functions and their separate lifecycle policies. The public wrappers return each helper promise directly.
Production: −5 lines; tests: +183 lines. No RPC, permission, connection, dialog, queue or error-formatting policy changes.
Evidence
85ce875af06df088f40b337ebc2593b18ff0808f: 88 successful jobs and 13 planned skips. The required aggregate gate passed. Tested merge426f8e24d7b4cf43db5e2a3d977c70041a9a575fcombines201f11afefdb19a9c75e9d3542bf7425c80df7a7and the reviewed head; both changed blobs match the reviewed source.