Skip to content

fix(connectors): report connectivity for iroh-next connections - #8987

Open
joschisan wants to merge 1 commit into
fedimint:masterfrom
joschisan:fix-iroh-next-connectivity-status
Open

fix(connectors): report connectivity for iroh-next connections#8987
joschisan wants to merge 1 commit into
fedimint:masterfrom
joschisan:fix-iroh-next-connectivity-status

Conversation

@joschisan

Copy link
Copy Markdown
Contributor

IrohConnector::connectivity only queried the stable (0.35) endpoint, so a peer reached over an advertised iroh 1.0 endpoint resolved to Connectivity::Unknown, which the api client maps to PeerStatus::Disconnected — a live guardian shown as offline.

Iroh 1.0 exposes path state per connection rather than per endpoint, so next-stack connections are now retained at dial time and classified from Connection::paths(), falling back to the stable endpoint when no live next connection is held.

@joschisan
joschisan force-pushed the fix-iroh-next-connectivity-status branch from 3d4e246 to 78310f6 Compare August 9, 2026 18:41
`IrohConnector::connectivity` only ever queried the stable (0.35)
endpoint, so a peer reached over an advertised iroh 1.0 endpoint
resolved to `Connectivity::Unknown`, which the api client maps to
`PeerStatus::Disconnected` — a live guardian shown as offline.

Iroh 1.0 exposes path state per connection rather than per endpoint, so
there is no `endpoint.conn_type(node_id)` to consult after the fact.
Retain next-stack connections at dial time and classify from
`Connection::paths()` instead, falling back to the stable endpoint when
no live next connection is held.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@joschisan
joschisan force-pushed the fix-iroh-next-connectivity-status branch from 78310f6 to 2786e72 Compare August 9, 2026 18:53
@joschisan
joschisan marked this pull request as ready for review August 9, 2026 19:49
@joschisan
joschisan requested a review from a team as a code owner August 9, 2026 19:49
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