Repository navigation
feat(mac): add bulk Approve All / Reject All to the pairing approval panel - #104011
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 11, 2026
…panel (openclaw#104011) * feat(mac): add bulk Approve All / Reject All to the pairing approval panel * fix(mac): resolve bulk pairing decisions against the rendered snapshot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The Mac app's pairing approval panel (#102535) lists every pending node/device pairing request as a card, but each one must be approved or rejected individually. When several devices reconnect at once (gateway restart, node + operator-device repair together), the operator has to click through the queue card by card. Fixes #104005.
Why This Change Was Made
Bulk resolution belongs in the panel footer, not per card: with more than one pending request, a "Reject All" and an "Approve All" button appear next to the existing "Not Now" snooze. Both route through a new
PairingApprovalCenter.decideAll(_:_:), which takes the footer's rendered card snapshot and reuses the existing per-carddecide(_:_:)path — so the in-flight guard, prompter ownership, and demo-card handling stay unchanged. A single-request panel keeps the current minimal footer.Design notes:
cardsarray they were rendered from instead of letting the center iterate its current queue (caught by autoreview; covered by a dedicated regression test).pairingActionStyle(prominent:)helper, which the new footer buttons reuse._testSetCardsseam seeds the center's queue without presenting the NSPanel, so the new center-level tests run headless.User Impact
Mac app operators with multiple simultaneous pairing requests can resolve the whole queue with one click. Single-request behavior, keyboard shortcuts, and snooze are unchanged.
Evidence
swift test --package-path apps/macos --filter Pairing: 17 tests in 4 suites pass, including three newPairingApprovalCenterBulkDecisionTests(decide all routes every card to its kind handler exactly once,reject all delivers reject to every handler,bulk decisions resolve only the rendered snapshot).swift test --package-path apps/macos --parallel: 945+ tests across 127 suites pass.gpt-5.5, branch vsorigin/main): one P1 finding on the first pass (bulk action read the live queue instead of the rendered snapshot) — fixed infix(mac): resolve bulk pairing decisions against the rendered snapshot; re-run clean.swiftformat --lintclean on both changed source files;native:i18n:checkclean after inventory sync.