Skip to content

Prefer Connect libp2p watchless mode with WatchService fallback#41

Merged
robinbraemer merged 5 commits into
mainfrom
codex/connect-libp2p-tunnel-transport
Jul 3, 2026
Merged

Prefer Connect libp2p watchless mode with WatchService fallback#41
robinbraemer merged 5 commits into
mainfrom
codex/connect-libp2p-tunnel-transport

Conversation

@robinbraemer

@robinbraemer robinbraemer commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

  • parse managed libp2p bootstrap headers from the authenticated WatchService websocket response
  • start the Connect libp2p endpoint from WatchService-provided edge/relay addresses so users do not need libp2p env vars for managed mode
  • advertise the watchless endpoint capability only when Moxy sends Connect-Libp2p-Capabilities: session,status,watchless
  • prefer watchless mode only after libp2p registration commits and the initial status report succeeds
  • keep WatchService as the compatibility and health fallback when Moxy is old, libp2p is unavailable, registration closes, or repeated status reports fail
  • keep env-based/manual libp2p startup compatible and default it to legacy session,status capabilities

Verification

  • ./gradlew --no-daemon --console=plain :core:test --tests com.minekube.connect.tunnel.p2p.Libp2pWatchlessControllerTest --tests com.minekube.connect.register.WatcherRegisterTest
  • ./gradlew --no-daemon --console=plain :core:test
  • ./gradlew --no-daemon --console=plain build
  • git diff --check

@robinbraemer
robinbraemer force-pushed the codex/connect-libp2p-tunnel-transport branch 2 times, most recently from 80d5f5a to 939be44 Compare July 1, 2026 12:38
@robinbraemer
robinbraemer force-pushed the codex/connect-libp2p-tunnel-transport branch from 939be44 to 5a71ce8 Compare July 2, 2026 12:35
@robinbraemer robinbraemer changed the title Bootstrap Connect libp2p from WatchService capabilities Prefer Connect libp2p watchless mode with WatchService fallback Jul 3, 2026
@robinbraemer
robinbraemer force-pushed the codex/connect-libp2p-tunnel-transport branch from fddc1e0 to b703bfa Compare July 3, 2026 20:21
@robinbraemer
robinbraemer merged commit fc79879 into main Jul 3, 2026
1 check passed
@robinbraemer
robinbraemer deleted the codex/connect-libp2p-tunnel-transport branch July 3, 2026 20:24
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.

1 participant