Skip to content

Fix network status and latency on IPv6-only links - #11302

Open
emanueleadelini wants to merge 1 commit into
omacom:quattrofrom
emanueleadelini:fix/network-ipv6-route
Open

emanueleadelini wants to merge 1 commit into
omacom:quattrofrom
emanueleadelini:fix/network-ipv6-route

Conversation

@emanueleadelini

Copy link
Copy Markdown

On a link with a usable IPv6 default route but no ordinary IPv4 route, omarchy-network-status can report disconnected or show failed IPv4 probes while IPv6 works. This addresses the status and latency portion of #11215, reported by @anomalousmouse.

The command now shares route selection between status and verbose output, preferring native IPv6 when IPv4 is absent or uses an IPv6 next hop / an IPv4 service-continuity source (192.0.0.0/29). Ordinary IPv4 and dual-stack links keep their IPv4 preference; an existing IPv4 route is retained if IPv6 is unavailable.

  • Read the selected route's source, matching prefix and gateway, including via.host.
  • Use an IPv6 Internet probe for an IPv6 route and scope link-local gateway probes to the interface.
  • Preserve empty samples when ping fails.
  • Give IPv6 address/gateway values separate rows and elide long values without changing the full text copied to the clipboard.

Related: #8683 adds separate IPv6 detail fields. This change focuses on selecting a usable route before the IPv4-only early return; it does not add parallel address fields.

Validation

  • 14 regression scenarios pass, covering IPv4, dual-stack, IPv6-only, transition routes, source/prefix selection, scoped gateways, unanswered probes and offline state. The same test fails on the unmodified base at the IPv6 connected-status check.
  • Real veth interfaces, kernel routes and ICMP replies in isolated Linux namespaces: five scenarios pass on both Linux and an Omarchy VM. Original and candidate scripts were compared against the same network setup.
  • Running Omarchy 4.0.2-1 desktop: inspected before/after screenshots, including a long IPv6 address. The candidate command and Panel.qml were exercised; packaged files were restored after capture.
  • test/all run on base b5589fa and this candidate in identical headless VM environments: CLI suite passes in both; the same four shell test files fail in both, with no added failures. The affected files are locate-test.sh, network-qr-test.sh, snapper-test.sh (missing omarchy-iso fixture), and ssh-reconnect-test.sh. This is not a claim that the full suite passes.
  • Existing network-test.sh, Bash syntax and git diff --check pass.

Reproduction harness, results and environment notes. The isolated peer owns the probe addresses locally: these checks do not validate an ISP, Wi-Fi hardware, NAT64 or a complete 464XLAT deployment. omarchy-network-speedtest is outside this patch's scope, so #11215 should remain open for the remaining work.

Desktop before / after (isolated IPv6 backend)

Before: a reachable IPv6-only link is shown as disconnected.

Before: no connection

After: connected status, IPv6 address, gateway and successful local probes; long values fit the panel. The local-peer latency is not an Internet performance measurement.

After: IPv6 connection and readable details

Prepared with AI assistance (Codex), by Emanuele Adelini · AD Next Lab.

@omarchybot omarchybot added the bug Something isn't working label Sep 27, 2026
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at a02c0967. I found no defects in the change.

Reproduced on a worker built from the Omarchy ISO. I used real veth links and kernel routes in network namespaces rather than stubs, and ran the quattro script (b5589faa) and this head against each setup:

  • IPv6-only link (global address, default route via a link-local router, no IPv4): base prints disconnected and no details; this head prints ethernet, the global IPv6 address with prefix 64, the scoped fe80:: gateway, and answered router and internet pings.
  • CLAT route (default via inet6 fe80::1, source 192.0.0.5) alongside native IPv6, the setup Network panel ping/status is IPv4-only; IPv6-only and 464XLAT Wi-Fi look down #11215 describes: base shows 192.0.0.5, no gateway and an empty internet sample, which the panel shows as Timeout / 100% loss; this head switches to the native IPv6 route and both pings answer.
  • CLAT with no native IPv6 route: this head keeps the CLAT route, now with its via gateway and a router ping.
  • IPv4-only, dual-stack and offline: output is the same as base.

Tests on the worker: ./test/cli passes. The new network-status-ipv6-test.sh passes 14/14 on this head and fails on base at the IPv6 connected-status check, so it tests the fix rather than its presence. network-qr-test.sh passes. network-test.sh and network-captive-portal-test.sh did not run, because the worker lacks node. With the shell running from this branch, the network panel loads, its IPv4 layout is unchanged, and a long IPv6 address and gateway each get a full-width row and fit. That IPv6 view was fed from a fixture, not a live IPv6 link.

Who checked it: Claude Opus 5.5 reviewed and tested it. The configured second opinion (Codex Medium) did not run, because its daily review limit was spent, so only one model has reviewed this.

Related: this deliberately leaves #11215 open for the speedtest half, so it is not linked as closing it. #8683 (IPv6 detail rows), #8741 (full-width address rows), and #7932 and #11154 (internet probe) edit the same lines and will conflict with whichever lands first, but none fixes this bug.

Next: this waits on the maintainer. It still needs the second opinion and CI before it can be marked ready. There is nothing for the author to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants