Skip to content

fix(macos): stabilize bridge tunnels - #676

Merged
steipete merged 2 commits into
openclaw:mainfrom
ngutman:fix/macos-bridge-tunnel-health
Jan 10, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
ngutman:fix/macos-bridge-tunnel-health

Conversation

@ngutman

@ngutman ngutman commented Jan 10, 2026

Copy link
Copy Markdown
Member

What / Why

  • Fix pipe deadlock when commands emit large output by reading stdout/stderr concurrently before waitUntilExit, preventing bridge stalls on heavy commands.

    • apps/macos/Sources/Clawdbot/ShellExecutor.swift
  • Make control tunnel binding deterministic by disallowing random local ports for the gateway tunnel, preventing "connected but commands fail" when a random port is chosen.

    • apps/macos/Sources/Clawdbot/RemotePortTunnel.swift
    • apps/macos/Sources/Clawdbot/RemoteTunnelManager.swift
  • Add single-flight/backoff around control tunnel restarts to avoid rapid restart loops during flaky health checks.

    • apps/macos/Sources/Clawdbot/RemoteTunnelManager.swift
  • Prevent bridge receive loop stalls from long-running invokes by handling invoke responses on a detached task, and add clearer logging/disconnect handling.

    • apps/macos/Sources/Clawdbot/NodeMode/MacNodeBridgeSession.swift
    • apps/macos/Sources/Clawdbot/NodeMode/MacNodeModeCoordinator.swift

Testing

  • ./scripts/restart-mac.sh

AI Assistance

This PR was generated with help from both Codex and Claude and went through several refinement rounds. I understand what the code does.

(Optional) Prompts / session logs: not available.

@steipete steipete self-assigned this Jan 10, 2026
@steipete
steipete force-pushed the fix/macos-bridge-tunnel-health branch from 68d7585 to 1b7c46a Compare January 10, 2026 21:25
@steipete
steipete force-pushed the fix/macos-bridge-tunnel-health branch from 1b7c46a to 66bc003 Compare January 10, 2026 21:27
@steipete
steipete merged commit 357891a into openclaw:main Jan 10, 2026
@steipete

Copy link
Copy Markdown
Contributor

Landed via temp rebase onto main.\n\n- Gate: pnpm lint && pnpm build && pnpm test\n- Land commit: 66bc003\n- Merge commit: 357891a\n\nThanks @ngutman!

heatherstew44-maker pushed a commit to heatherstew44-maker/openclaw that referenced this pull request Mar 8, 2026
* feat(linux): add KDE Plasma 6 Wayland support via kwtype

On KDE Plasma 6 Wayland, existing input tools have limitations:
- ydotool type: cannot handle German umlauts (ö, ä, ü, ß)
- wtype: doesn't work (KDE lacks zwp_virtual_keyboard_manager_v1)
- ydotool key: key combos don't reach native Wayland apps like Kate

This adds support for kwtype, which uses the KDE Fake Input protocol:
- Properly handles Unicode characters including German umlauts
- Works with native Wayland applications (Kate, Dolphin, etc.)
- Requires kwtype to be installed: https://github.com/Sporif/KWtype

Changes:
- Add is_kde_plasma() and is_kde_wayland() detection in utils.rs
- Add kwtype integration for direct text typing on KDE Wayland
- Add wl-copy integration for clipboard operations on Wayland
- Skip wtype on KDE (known not to work)

Recommended: Use PasteMethod::Direct on KDE Wayland for best results.

* add -- to make sure input is good

---------

Co-authored-by: CJ Pais <[email protected]>
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
…health

fix(macos): stabilize bridge tunnels
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
…health

fix(macos): stabilize bridge tunnels
muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
…health

fix(macos): stabilize bridge tunnels
zeekay pushed a commit to Dream-AI-4444/bot that referenced this pull request Sep 11, 2026
zeekay pushed a commit to Dream-AI-4444/clawdbot that referenced this pull request Sep 11, 2026
…health

fix(macos): stabilize bridge tunnels
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
…health

fix(macos): stabilize bridge tunnels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants