Repository navigation
fix(gateway): route system-agent approvals off the exec channel bus - #118960
harjothkhara wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. What this changesThe PR adds the macOS app to system-agent approval recipients while preserving channel publication and other approval audiences. Example: An authorized openclaw-macos connection receives a pending system-agent configuration approval.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: it contains a distinct macOS approval-routing repair still absent from current main, and unresolved same-author companion work triggers the keep-open guard. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Gateway selects connected approval presenters, filters requests by visibility, and sends operator decisions to the canonical approval resolver. flowchart TD
A[System agent proposal] --> B[Gateway approval manager]
B --> C[Recipient eligibility and visibility]
C --> D[macOS approval presenter]
D --> E[Gateway decision resolver]
E --> F[Apply or deny proposal]
Technical reviewBest possible solution: Deliver system-agent requests to the existing compatible macOS presenter through the canonical Gateway routing and authorization owners. Do we have a high-confidence way to reproduce the issue? Source establishes the exclusion: macOS has a system-agent handler, lacks generic approval capability, and current main admits its stable ID only for exec approvals; no native run was performed. Is this the best way to solve the issue? The narrow eligibility change matches the existing native handler and preserves shared delivery, visibility, and resolution ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 03da25412dc1. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +8, Tests +6. Total +14 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed October 17, 2026, 1:53 PM ET / 17:53 UTC (Revision 6). |
b63af82 to
ad7438e
Compare
ad7438e to
7e808bb
Compare
7e808bb to
adfa208
Compare
473a713 to
6ab42b9
Compare
6ab42b9 to
15999e5
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Refs: #118899
What Problem This Solves
The OpenClaw macOS app can miss system-agent approval prompts from the Gateway even though it implements the system-agent approval handler.
Why This Change Was Made
Adds the macOS app's stable client ID to the system-agent approval recipient audience. iOS and Android remain exec-only because they do not handle this event; channel publication is unchanged.
User Impact
After this change, the macOS app can receive system-agent approval requests through its existing Gateway handler instead of silently missing them because recipient selection excluded the app.
Evidence
Current
mainalready fixes the original exec/plugin-only bus mislabeling: system-agent approvals have an explicit kind, and Telegram and Discord subscribe to it. This PR addresses the remaining macOS recipient-selection gap: the app handlesopenclaw.approval.requestedassystem-agent, but its stable client ID was excluded from the recipient audience.feb5da209114a961f79190153a767f8a48c58a4a9491d5a5a3372a04416e0317f3040c41bad670d5oxfmt --check, exact-fileoxlint, andgit diff --check HEAD^ HEAD: passed.AI assistance: Codex reconciled the historical branch with the current three-kind approval architecture.