Skip to content

refactor(mac): remove orphaned IPC request codec - #126267

Merged
steipete merged 1 commit into
mainfrom
refactor/remove-macos-ipc-request-codec
Aug 19, 2026
Merged

steipete merged 1 commit into
mainfrom
refactor/remove-macos-ipc-request-codec

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The macOS package still carried the legacy OpenClawIPC.Request wire codec and two tests that only round-tripped that dead codec after the Unix control socket and old mac CLI were removed in 849446ae177.

Why This Change Was Made

Delete the orphaned Request / CanvasA2UICommand types and their self-generated camera/canvas codec tests. Current camera and canvas commands continue to enter MacNodeRuntime through the Gateway BridgeInvokeRequest envelope and canonical OpenClawCamera*Params / OpenClawCanvas*Params; retained OpenClawIPC response, capability, camera-facing, placement, and canvas result/status types are unchanged.

This is an AI-assisted, maintainer-requested test-audit cleanup. Production LOC: +0/-294 (net -294). Tests: +0/-102 (net -102).

User Impact

No user-visible or runtime behavior changes. No Gateway protocol, generated type, schema, config, dependency, release, or app-state changes.

Evidence

Consumer and history proof:

  • Repository-wide exact-symbol search finds no remaining OpenClawIPC.Request or CanvasA2UICommand consumer.
  • 849446ae177 removed the only production owners: ControlSocketServer, ControlRequestHandler, and the legacy mac CLI.
  • The unrelated nested USB-control Request in CameraPTZNativeController remains intact.
  • Current owner coverage remains in CameraCaptureServiceTests, CanvasManagerVisibilityTests, CanvasWindowSmokeTests, and MacNodeRuntimeTests.

Validation:

  • ./scripts/format-swift.sh macos
  • ./scripts/lint-swift.sh macos
  • swift test --package-path apps/macos --filter 'CameraCaptureServiceTests|CanvasManagerVisibilityTests|CanvasWindowSmokeTests|MacNodeRuntimeTests' (44 tests passed)
  • swift test --package-path apps/macos --parallel (passed)
  • swift build --package-path apps/macos --product OpenClaw --configuration release (passed)
  • node scripts/check-changed.mjs -- apps/macos/Sources/OpenClawIPC/IPC.swift apps/macos/Tests/OpenClawIPCTests/CameraIPCTests.swift apps/macos/Tests/OpenClawIPCTests/CanvasIPCTests.swift (passed, including macOS CI shards and native-state schema guard)
  • git diff --check
  • .agents/skills/autoreview/scripts/autoreview --mode local (Codex, clean; no findings)

No app launch, signing, live Gateway, or operator-state mutation was used because the removed codec is unreachable and this change does not alter a running behavior path.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 19, 2026 08:48
@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: M maintainer Maintainer-authored PR labels Aug 19, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification for exact head 2674823baa7c1c2f4479c26b96f92a1fe193a351:

  • Consumer/history proof confirms OpenClawIPC.Request and CanvasA2UICommand have no remaining caller; 849446ae177 removed the Unix socket, request handler, and old mac CLI owners. Current camera/canvas dispatch remains in MacNodeRuntime through BridgeInvokeRequest and canonical command params.
  • Production LOC: +0/-294 (net -294). Tests: +0/-102 (net -102).
  • ./scripts/format-swift.sh macos
  • ./scripts/lint-swift.sh macos
  • swift test --package-path apps/macos --filter 'CameraCaptureServiceTests|CanvasManagerVisibilityTests|CanvasWindowSmokeTests|MacNodeRuntimeTests' — 44 passed
  • swift test --package-path apps/macos --parallel — passed
  • swift build --package-path apps/macos --product OpenClaw --configuration release — passed
  • node scripts/check-changed.mjs -- apps/macos/Sources/OpenClawIPC/IPC.swift apps/macos/Tests/OpenClawIPCTests/CameraIPCTests.swift apps/macos/Tests/OpenClawIPCTests/CanvasIPCTests.swift — passed
  • git diff --check — passed
  • Codex autoreview — clean, no findings
  • Exact-head CI: run 32234419804, attempt 2 — green. Attempt 1 was canceled after macos-node remained unassigned for 30 minutes; attempt 2 completed through the configured hosted fallback.
  • Native scripts/pr review artifacts validated READY FOR /prepare-pr with zero findings. OPENCLAW_TESTBOX=1 scripts/pr prepare-run 126267 passed in hosted_exact_or_recent_parent mode; exact-head hosted CI satisfied the Testbox-enforced gate, so no separate remote Testbox lease/run ID was allocated.

Known proof gap: ClawSweeper's exact-review worker remains on its review-start placeholder beyond its published lease. The latest comment contains no Rank-up moves: list to apply or skip. Per repository policy, the late publisher is not a landing blocker.

No app launch, signing, live Gateway, or operator-state mutation was used because this deletes an unreachable codec and changes no runtime behavior or protocol.

@steipete
steipete merged commit 7bf21bc into main Aug 19, 2026
125 of 128 checks passed
@steipete
steipete deleted the refactor/remove-macos-ipc-request-codec branch August 19, 2026 09:49
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant