openclaw - 💡(How to fix) Fix [Bug]: gateway 1006 disconnect loop on macOS native tied to bonjour/CIAO advertiser (2026.4.24) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#73044Fetched 2026-04-28 06:28:17
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
cross-referenced ×2labeled ×2closed ×1commented ×1

On macOS native in OpenClaw 2026.4.24, the local gateway repeatedly hits bonjour/CIAO unhandled rejections and clients intermittently disconnect with gateway closed (1006).

Error Message

Consequence: Local requests can fail with gateway closed (1006), the gateway enters repeated bonjour/CIAO error loops, and agent runs become unreliable or slower due to embedded fallback

Root Cause

On macOS native in OpenClaw 2026.4.24, the local gateway repeatedly hits bonjour/CIAO unhandled rejections and clients intermittently disconnect with gateway closed (1006).

Code Example

Attach: (1) a terminal capture of openclaw agent --agent main --message "Nozu, responde solo: operativo." --json showing intermittent gateway closed (1006), (2) the relevant lines from /tmp/openclaw/openclaw-2026-04-27.log showing bonjour watchdog re-advertise loops and CIAO PROBING CANCELLED, and (3) the stability bundles written under ~/.openclaw/logs/stability/ for the same time window.
RAW_BUFFERClick to expand / collapse

Bug type

Crash (process/app exits or hangs)

Beta release blocker

No

Summary

On macOS native in OpenClaw 2026.4.24, the local gateway repeatedly hits bonjour/CIAO unhandled rejections and clients intermittently disconnect with gateway closed (1006).

Steps to reproduce

  1. Start OpenClaw 2026.4.24 on macOS native with a local gateway and Telegram enabled.
  2. Run openclaw agent --agent main --message "Nozu, responde solo: operativo." --json or an equivalent simple local agent call.
  3. Observe intermittent gateway closed (1006) on the client side while the gateway log shows repeated bonjour/CIAO advertiser errors such as CIAO PROBING CANCELLED and watchdog re-advertise loops.

Expected behavior

The local gateway should stay stable and serve local agent requests without 1006 disconnects or advertiser-triggered restarts.

Actual behavior

Local agent calls intermittently fail with gateway closed (1006) on the client side, and the gateway log repeatedly shows bonjour/CIAO errors including CIAO PROBING CANCELLED, watchdog re-advertise loops, and repeated gateway restarts.

OpenClaw version

2026.4.24

Operating system

macOS 26.0.1 (arm64)

Install method

npm global

Model

nvidia/nvidia/nemotron-3-super-120b-a12b

Provider / routing chain

openclaw local gateway -> local loopback ws://127.0.0.1:18789 -> embedded runner fallback -> nvidia

Additional provider/model setup details

Local native OpenClaw on macOS with gateway auth mode token and Telegram enabled. Main agent uses nvidia/nvidia/nemotron-3-super-120b-a12b. The issue reproduces even on simple local agent calls and still reproduces after removing one Telegram bot route (Morfeo) and attempting to disable bonjour in ~/.openclaw/openclaw.json.

Logs, screenshots, and evidence

Attach: (1) a terminal capture of openclaw agent --agent main --message "Nozu, responde solo: operativo." --json showing intermittent gateway closed (1006), (2) the relevant lines from /tmp/openclaw/openclaw-2026-04-27.log showing bonjour watchdog re-advertise loops and CIAO PROBING CANCELLED, and (3) the stability bundles written under ~/.openclaw/logs/stability/ for the same time window.

Impact and severity

Affected: macOS native local OpenClaw users making local agent calls through the gateway Severity: Medium to high (intermittently breaks local agent execution and forces embedded fallback) Frequency: Intermittent, observed repeatedly across multiple local agent calls in the same session Consequence: Local requests can fail with gateway closed (1006), the gateway enters repeated bonjour/CIAO error loops, and agent runs become unreliable or slower due to embedded fallback

Additional information

Observed on 2026.4.24 on native macOS after local gateway startup. The issue persists even after removing one Telegram route (Morfeo) and attempting to disable bonjour in ~/.openclaw/openclaw.json; the gateway still starts with bonjour enabled and the log continues to show CIAO/bonjour advertiser failures.

extent analysis

TL;DR

Disable bonjour in the OpenClaw configuration to potentially mitigate the intermittent gateway closed (1006) errors and bonjour/CIAO unhandled rejections.

Guidance

  • Verify that the bonjour disable attempt in ~/.openclaw/openclaw.json was successful by checking the gateway logs for bonjour-related messages after restarting the gateway.
  • Investigate the stability bundles in ~/.openclaw/logs/stability/ for patterns or clues related to the intermittent disconnections and bonjour/CIAO errors.
  • Consider testing with a simplified setup, such as disabling Telegram or using a different model, to isolate the cause of the issue.
  • Review the OpenClaw documentation for any known issues or configuration recommendations related to bonjour and CIAO on macOS.

Notes

The issue seems to be related to the interaction between OpenClaw, bonjour, and CIAO on macOS, but the exact cause is unclear. Disabling bonjour may not completely resolve the issue, and further investigation may be needed.

Recommendation

Apply workaround: Disable bonjour in the OpenClaw configuration, as it may help mitigate the intermittent errors and allow for more stable local agent execution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The local gateway should stay stable and serve local agent requests without 1006 disconnects or advertiser-triggered restarts.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: gateway 1006 disconnect loop on macOS native tied to bonjour/CIAO advertiser (2026.4.24) [1 comments, 2 participants]