Skip to content

fix(bonjour): also suppress CIAO PROBING CANCELLED in rejection handler#5

Open
suboss87 wants to merge 50 commits into
mainfrom
fix/bonjour-ciao-probing-cancelled
Open

fix(bonjour): also suppress CIAO PROBING CANCELLED in rejection handler#5
suboss87 wants to merge 50 commits into
mainfrom
fix/bonjour-ciao-probing-cancelled

Conversation

@suboss87
Copy link
Copy Markdown
Owner

@suboss87 suboss87 commented Apr 26, 2026

Summary

ignoreCiaoCancellationRejection only matched \"CIAO ANNOUNCEMENT CANCELLED\". The ciao library also emits \"CIAO PROBING CANCELLED\" during mDNS probing on startup. That string was not matched, so it fell through to the global unhandled rejection handler and killed the gateway process.

This extends the check to cover both variants.

Root Cause

src/infra/bonjour-ciao.ts line 6 had a single includes(\"CIAO ANNOUNCEMENT CANCELLED\") check. The ciao library has two cancellation paths:

  • Announcement phase: CIAO ANNOUNCEMENT CANCELLED
  • Probing phase: CIAO PROBING CANCELLED

Only the first was handled. On affected machines the gateway exits on startup with:

Unhandled promise rejection: CIAO PROBING CANCELLED

Fix

Added CIAO PROBING CANCELLED to the rejection check in ignoreCiaoCancellationRejection. One-line logic change.

Test Plan

  • New test file src/infra/bonjour-ciao.test.ts with 9 tests covering: ANNOUNCEMENT suppressed, PROBING suppressed, case-insensitive matching, unrelated errors not suppressed, debug log fired on suppress, debug log not fired on pass-through
  • All 9 new tests pass
  • All 7 existing src/infra/bonjour.test.ts tests pass unchanged

Closes openclaw#71869


Generated by Claude Code


Open in Devin Review

claude added 30 commits April 1, 2026 15:34
claude and others added 20 commits April 18, 2026 03:46
ignoreCiaoCancellationRejection only matched "CIAO ANNOUNCEMENT CANCELLED".
The ciao library also emits "CIAO PROBING CANCELLED" during mDNS probing
on startup, which was not matched and fell through to the global unhandled
rejection handler, causing the gateway process to exit.

Extend the check to cover both ANNOUNCEMENT and PROBING variants.
Add a dedicated test file for the function.

Closes openclaw#71869
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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.

[Bug]: Bonjour plugin does not wire Ciao cancellation rejection handler, causing unhandled rejection on CIAO PROBING CANCELLED

2 participants