Repository navigation
fix(nodes): show paired-device launch approvals in the requesting browser - #130573
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 9:40 PM ET / August 27, 2026, 01:40 UTC. ClawSweeper reviewWhat this changesThe PR lets a synthetic paired-device node invocation send its required plugin approval to the initiating Control UI browser while retaining ordinary requester exclusion. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. The patch directly repairs the approval-recipient exclusion at the Gateway owner, preserves approval visibility and decision authorization, and remains subject to explicit maintainer review and exact-head CI. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherControl UI starts paired-node work through the Gateway’s plugin node-invocation policy. The policy records requester metadata, finds authorized approval clients, sends the approval event, and waits before node dispatch continues. flowchart LR
A[Control UI browser] --> B[Internal node invocation]
B --> C[Gateway node policy]
C --> D[Approval recipient filter]
D --> E[Browser approval inbox]
E --> F[Paired node dispatch]
Decision needed
Why: The patch changes delivery of an authorization-relevant approval event, and the protected maintainer label requires explicit human handling despite the preserved visibility gate. Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +1. Total +3 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared visibility filter and requester metadata, while passing no transport-recipient exclusion only for the server-constructed synthetic caller path. Do we have a high-confidence way to reproduce the issue? Yes: source establishes the omission on current main and the focused table test reproduces the ordinary versus synthetic recipient difference; the PR body also supplies linked browser evidence. Is this the best way to solve the issue? Yes: the repair changes the node-policy approval owner while leaving shared authorization, approval resolution, requester provenance, and node dispatch checks intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c6fa27aea68b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Closes #130556
What Problem This Solves
Fixes an issue where users starting Codex work on a paired device from Control UI would wait for a node-launch approval that was never delivered to their browser. A separate authorized reviewer could see it, but the initiating browser showed neither the approval event nor its attention badge.
Why This Change Was Made
The internal duplex invocation retains the browser connection ID as requester provenance. The node-policy adapter incorrectly also used that ID to exclude the transport requester from approval delivery. Internal calls now retain their identity binding without excluding the operator's connection; ordinary transport requesters remain excluded.
Pairing, command allowlisting, approval visibility/scopes, live authority checks, and one-time decision consumption are unchanged. This does not waive Codex's separate node-wide per-attempt launch approval in Full Access.
The fix stays at the node-policy approval owner. Clearing the inherited connection ID globally would discard valid requester ownership; changing shared approval visibility would unnecessarily broaden the repair. No config, protocol, schema, or dependency changes.
Production LOC: +3/-1 (net +2, entirely the explanatory comment; executable LOC neutral). Tests: +13/-12 (net +1). The existing ownership regression is table-driven for ordinary versus internal callers, with unrelated-device exclusion and requester metadata retained.
User Impact
The requesting Control UI receives the required launch approval in its inbox, can approve it without reloading, and continues remote native execution. Full Access still suppresses native-command approvals; the documented separate node-launch approval remains required.
Provenance: the interaction was made visible by duplex support in #126961, authored and merged by @steipete on August 21, 2026 (
d17bbfc31a8f). The requester-exclusion path predates that change.Evidence
64f30c70d797e29beb4f081a4b873643aa457924passed three Docker-network rounds and three browser rounds: 300 container creates/starts/exits/removals, zero approval events or leftover containers, plus the paired-node lifecycle suite.The provider is a deterministic HTTP Responses fixture. Its unsupported WebSocket upgrade produces the visible HTTP-fallback diagnostic in the recording; that is not an approval or a live-provider failure.
Before: initiating browser waits, without an approval badge.
After: the same requesting browser receives and displays the required approval.
After approving: native execution finishes in the remote session.
Real browser flow, including the inbox approval around eight seconds:
codex-approval-browser-proof.mp4
AI-assisted; focused source, dependency-contract inspection, runtime proof, and Codex autoreview performed. Temporary stress drivers and recordings are not committed.
Final review and landing evidence
ClawSweeper found no actionable correctness or security findings and agreed with the owner-bound fix. Its pending-CI item is now satisfied: CI run 33030537821 and CodeQL passed on
c9d208a1f84cc0ba53efe57717572e04c2ece205. No additional Rank-up moves were listed. This is a maintainer-directed native landing, not an automatic ClawSweeper merge; approval authority and the separate launch policy remain unchanged.Maintainer-tooling follow-up: after successfully merging and removing its worktree, the native landing wrapper's exit cleanup encountered a deleted-current-directory error and retained its operation lock. The exact stale lock was safely recovered after verifying no PR tools remained. This did not affect the landed code or checks.