Skip to content

fix(bridge): match headed mode on bridge discover - #35

Merged
macieju-opera merged 1 commit into
mainfrom
wp/fix-for-headed-mode-respawning-bridge
Sep 1, 2026
Merged

fix(bridge): match headed mode on bridge discover#35
macieju-opera merged 1 commit into
mainfrom
wp/fix-for-headed-mode-respawning-bridge

Conversation

@mateuszk-opera

Copy link
Copy Markdown
Contributor

No description provided.

@mateuszk-opera
mateuszk-opera force-pushed the wp/fix-for-headed-mode-respawning-bridge branch from 2a9151c to 771dd22 Compare September 1, 2026 12:19

@macieju-opera macieju-opera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. This is a clean fix for a real bug — headed/headless mode mismatch causing bridge reuse where it shouldn't.

  • Adding headed to BridgeHealth is the right place — it's an identity property that affects bridge selection
  • Defaulting to false in parseHealth for pre-0.2.7 bridges is safe: old bridges didn't report the field, and mismatching on the safe side (restart) is better than reusing a bridge in the wrong mode
  • The dual-pass probe loop (find usable → clean up ours) correctly handles the case where a bridge exists but in the wrong mode — it gets shut down in the cleanup pass

No issues.

@macieju-opera
macieju-opera merged commit 15c7907 into main Sep 1, 2026
2 checks passed
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