Repository navigation
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 changes before merge. What this changesThis PR retains Peekaboo’s advertised generation across descriptor reads and adds a connection-retention regression. Example: OpenClaw.app becomes active while a Mac node uses Peekaboo.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR addresses a current reconnect bug, but its process-wide generation also reuses a retired Peekaboo identity after switching providers. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe macOS coordinator builds capability descriptors into node connection options, which the shared WebSocket session compares when deciding whether to replace its connection. flowchart LR
A[App activation or settings notification] --> B[Mac node coordinator]
B --> C[Peekaboo descriptor]
C --> D[Connection options]
D --> E[Gateway node session]
E --> F[Retained or replacement WebSocket]
Technical reviewBest possible solution: Retain generation in the existing coordinator across unchanged refreshes, rotate it on provider replacement, and consolidate the overlapping repair. Do we have a high-confidence way to reproduce the issue? Current source deterministically links descriptor reconstruction to unequal options and channel replacement; the author reports a red/green regression, but this review ran no target code. Is this the best way to solve the issue? Fixing the descriptor producer is appropriate, but a process-wide constant exceeds the provider lifecycle; the existing coordinator already owns provider transitions. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ecbad2efa1d7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +81. Total +84 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
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 Reviewed November 10, 2026, 11:55 AM ET / 16:55 UTC. |
What Problem This Solves
Fixes unnecessary Mac node reconnections when an unchanged Peekaboo capability advertisement is read again.
User Impact
Mac nodes advertising Peekaboo retain their admitted connection across unchanged refreshes. Real connect-option changes still reconnect. This affects the existing WebSocket path on
main, independently of the OpenClaw ID integration; no particular released version is claimed here.Existing transport and refresh frequency
Yes: today's non-ID coordinator re-reads the descriptor whenever its connection loop consumes a refresh. This is event-driven, not steady once-per-second polling. Defaults changes, app activation and permission-change notifications call
refresh(); unchanged-control refreshes wake the loop without intentionally revoking the route. Its newest-one event buffer can coalesce bursts, so there is no fixed connected-state frequency. Disconnected recovery probes run after 30 seconds; failed connection attempts back off from 1 second to a 10-second cap.Pinned-main evidence: notification subscriptions, unchanged refresh and connection loop, descriptor preparation, and option equality replacing the channel. The red/green regression exercises this ordinary WebSocket coordinator/session boundary with existing socket fixtures.
Why This Change Was Made
Each descriptor read generated a new provider UUID.
GatewayConnectOptionsincludes that descriptor in equality, so the next coordinator connect replaced its own route. Keep the generation stable for the in-process provider lifetime instead. A new process still gets a new generation. Gateway provider-generation checks and native lifecycle-based stale-observation invalidation are unchanged; pairing and command policy are untouched.Evidence
b21829a4c85fb685888538b3bc1369bfb5b36bd4. The new ordinary-WebSocket coordinator/session regression failed on main: consecutive reads produced unequal options, a second socket, and a replacement route.git diff --checkpassed. Production delta: +4/-1 lines; one boundary regression adds 81 test lines without new production test hooks.includeDeviceIdentity: falsebefore publication. The final Studio rebuild and two affected Peekaboo tests passed; the coordinator-requested follow-up of all five runnable focused tests also passed (0.011 seconds) using that same built candidate. No production code changed after review. Review limits: the reviewer did not establish whether process-wideWindowObservationArtifactscleanup inMacNodeRuntime.shutdownis isolated from parallel tests, and did not review the frame-token lifecycle. CI and the full suite have not been run as part of this proof.