Skip to content

fix(app:macos): 【 OpenClaw ⇄ clawdbot 】- Peekaboo Bridge discovery after the OpenClaw rename#6033

Merged
vincentkoc merged 35 commits intoopenclaw:mainfrom
lumpinif:fix/peekaboo-bridge-symlink
Mar 2, 2026
Merged

fix(app:macos): 【 OpenClaw ⇄ clawdbot 】- Peekaboo Bridge discovery after the OpenClaw rename#6033
vincentkoc merged 35 commits intoopenclaw:mainfrom
lumpinif:fix/peekaboo-bridge-symlink

Conversation

@lumpinif
Copy link
Contributor

@lumpinif lumpinif commented Feb 1, 2026

Summary

  • Fix Peekaboo Bridge discovery after the OpenClaw rename by keeping the canonical socket at ~/Library/Application Support/OpenClaw/bridge.sock.
  • Create/repair legacy compatibility symlinks at ~/Library/Application Support/clawdbot/bridge.sock and ~/Library/Application Support/clawdis/bridge.sock so older Peekaboo CLI builds keep connecting.
  • Harden legacy paths by replacing stale entries and enforcing 0700 permissions.

Testing

  • pnpm lint

AI assistance

  • AI-assisted (Codex).

@openclaw-barnacle openclaw-barnacle bot added the app: macos App: macos label Feb 1, 2026
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0ea25ac1f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lumpinif lumpinif changed the title mac: keep OpenClaw bridge socket and add legacy symlink fix(mac): keep OpenClaw bridge socket and add legacy symlink Feb 1, 2026
@lumpinif lumpinif force-pushed the fix/peekaboo-bridge-symlink branch 2 times, most recently from d3613da to 3e310ee Compare February 1, 2026 06:42
@lumpinif
Copy link
Contributor Author

lumpinif commented Feb 1, 2026

Short update: this fixes a real-world Peekaboo Bridge discovery issue. It keeps OpenClaw as the primary socket path and now repairs the legacy clawdbot symlink if a stale file/dir/wrong link exists. Lint passes (pnpm lint).

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

@lumpinif lumpinif force-pushed the fix/peekaboo-bridge-symlink branch from d111003 to d7a7b8e Compare February 1, 2026 06:56
@lumpinif
Copy link
Contributor Author

lumpinif commented Feb 1, 2026

@greptile-apps I addressed both points: the legacy directory now sets explicit 0700 permissions, and symlink target comparison is normalized to avoid repeated recreation. Please take another look.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 1, 2026

Pull Request Summary

This PR fixes a compatibility issue caused by the OpenClaw rename from "clawdbot". The main problem was that older clients still look for the Peekaboo Bridge socket at the legacy path ~/Library/Application Support/clawdbot/bridge.sock.

What this PR does:

File changed: apps/macos/Sources/OpenClaw/PeekabooBridgeHostCoordinator.swift

Key changes:

  1. Adds legacy socket path support

    • Maintains the new socket at ~/Library/Application Support/OpenClaw/bridge.sock
    • Creates a symlink at the old location ~/Library/Application Support/clawdbot/bridge.sock pointing to the new socket
  2. Robust legacy path handling

    • Creates the legacy directory structure with 0700 permissions
    • Replaces any existing files or broken symlinks at the legacy path
    • Validates existing symlinks point to the correct target before keeping them
  3. Graceful error handling

    • Logs failures but doesn't crash if symlink creation fails
    • Uses debug-level logging to avoid noise

Impact:

  • Ensures backward compatibility for older clients during the transition period
  • Allows seamless discovery of the Peekaboo Bridge regardless of client version
  • Hardens the path handling to prevent issues with stale files or incorrect permissions

The implementation is clean and follows Swift best practices with proper error handling and resource management.

@lumpinif lumpinif changed the title fix(mac): keep OpenClaw bridge socket and add legacy symlink fix(mac): bridge socket legacy rename compatibility (OpenClaw ⇄ clawdbot) Feb 1, 2026
@lumpinif lumpinif changed the title fix(mac): bridge socket legacy rename compatibility (OpenClaw ⇄ clawdbot) fix(mac): (OpenClaw ⇄ clawdbot) bridge socket legacy rename compatibility Feb 1, 2026
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 1, 2026

Here's an updated PR description that better reflects the actual implementation:

Summary

This PR ensures backward compatibility for the Peekaboo Bridge socket after the OpenClaw rename by implementing automatic legacy symlink management.

What Changed

  • Primary socket location: Maintains the socket at ~/Library/Application Support/OpenClaw/bridge.sock
  • Legacy compatibility: Automatically creates and manages a symlink at ~/Library/Application Support/clawdbot/bridge.sock
  • Robust symlink handling:
    • Creates the legacy directory structure with proper 0700 permissions
    • Validates existing symlinks point to the correct destination
    • Removes stale files or incorrect symlinks before creating new ones
    • Gracefully handles errors without breaking the bridge startup

Implementation Details

  • Added legacySocketPath computed property for the old clawdbot socket path
  • Added ensureLegacySocketSymlink() method called during bridge startup
  • Uses FileManager APIs for directory creation, symlink validation, and cleanup
  • Includes error handling with debug logging for troubleshooting

Backwards Compatibility

This ensures older clients that still reference the clawdbot socket path can continue working without modification while the app uses its new OpenClaw branding.

Testing

  • pnpm lint

AI assistance

  • AI-assisted (Codex)

@lumpinif lumpinif changed the title fix(mac): (OpenClaw ⇄ clawdbot) bridge socket legacy rename compatibility fix(mac): 「 OpenClaw ⇄ clawdbot 」- bridge socket legacy rename compatibility Feb 1, 2026
@lumpinif lumpinif changed the title fix(mac): 「 OpenClaw ⇄ clawdbot 」- bridge socket legacy rename compatibility fix(mac): 【 OpenClaw ⇄ clawdbot 】- bridge socket legacy rename compatibility Feb 1, 2026
@lumpinif lumpinif changed the title fix(mac): 【 OpenClaw ⇄ clawdbot 】- bridge socket legacy rename compatibility fix(mac): 【 OpenClaw ⇄ clawdbot 】- Peekaboo Bridge discovery after the OpenClaw rename Feb 1, 2026
@lumpinif lumpinif changed the title fix(mac): 【 OpenClaw ⇄ clawdbot 】- Peekaboo Bridge discovery after the OpenClaw rename fix(app:macos): 【 OpenClaw ⇄ clawdbot 】- Peekaboo Bridge discovery after the OpenClaw rename Feb 1, 2026
@openclaw-barnacle
Copy link

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle bot added the stale Marked as stale due to inactivity label Feb 15, 2026
@openclaw-barnacle openclaw-barnacle bot removed the stale Marked as stale due to inactivity label Feb 16, 2026
@mudrii

This comment was marked as spam.

@vincentkoc vincentkoc merged commit f1cd3ea into openclaw:main Mar 2, 2026
9 checks passed
obviyus pushed a commit that referenced this pull request Mar 2, 2026
…ter the OpenClaw rename (#6033)

* fix(mac): keep OpenClaw bridge socket and harden legacy symlink

* fix(mac): add clawdis legacy Peekaboo bridge symlink

* macos: include moltbot in PeekabooBridge legacy socket paths

* changelog: note peekaboo legacy socket compatibility paths

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
Linux2010 pushed a commit to Linux2010/openclaw that referenced this pull request Mar 2, 2026
…ter the OpenClaw rename (openclaw#6033)

* fix(mac): keep OpenClaw bridge socket and harden legacy symlink

* fix(mac): add clawdis legacy Peekaboo bridge symlink

* macos: include moltbot in PeekabooBridge legacy socket paths

* changelog: note peekaboo legacy socket compatibility paths

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
execute008 pushed a commit to execute008/openclaw that referenced this pull request Mar 2, 2026
…ter the OpenClaw rename (openclaw#6033)

* fix(mac): keep OpenClaw bridge socket and harden legacy symlink

* fix(mac): add clawdis legacy Peekaboo bridge symlink

* macos: include moltbot in PeekabooBridge legacy socket paths

* changelog: note peekaboo legacy socket compatibility paths

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
dawi369 pushed a commit to dawi369/davis that referenced this pull request Mar 3, 2026
…ter the OpenClaw rename (openclaw#6033)

* fix(mac): keep OpenClaw bridge socket and harden legacy symlink

* fix(mac): add clawdis legacy Peekaboo bridge symlink

* macos: include moltbot in PeekabooBridge legacy socket paths

* changelog: note peekaboo legacy socket compatibility paths

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
OWALabuy pushed a commit to kcinzgg/openclaw that referenced this pull request Mar 4, 2026
…ter the OpenClaw rename (openclaw#6033)

* fix(mac): keep OpenClaw bridge socket and harden legacy symlink

* fix(mac): add clawdis legacy Peekaboo bridge symlink

* macos: include moltbot in PeekabooBridge legacy socket paths

* changelog: note peekaboo legacy socket compatibility paths

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
…ter the OpenClaw rename (openclaw#6033)

* fix(mac): keep OpenClaw bridge socket and harden legacy symlink

* fix(mac): add clawdis legacy Peekaboo bridge symlink

* macos: include moltbot in PeekabooBridge legacy socket paths

* changelog: note peekaboo legacy socket compatibility paths

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants