Repository navigation
Conversation
[Medium impact] The changes affect what the network panel shows on dual-connected machines. The displayed connection and its details can refer to different interfaces under a VPN; fix that before merging.
|
44a048f to
987c254
Compare
|
|
||
| function finishRoute(raw) { | ||
| if (routeRequest !== routeGeneration || !dualConnected) return | ||
| routeKind = Model.parseDefaultRouteKind(raw, connectedWiredNames, connectedWifiNames) |
There was a problem hiding this comment.
With both links connected and a full-tunnel VPN active, finishRoute() selects the physical link, but detailsProc still runs omarchy-network-status --verbose without choosing an interface. That helper follows ip route get 1.1.1.1, so the hero can name Wi-Fi while the address and transfer counts belong to the VPN. The helper also reports the tunnel as Ethernet, which hides Wi-Fi sharing through canShareWifi.
Keep the winning interface from the route lookup and use it for the displayed details.
Knowledge Base Used: Captive portal and network connectivity
|
GPT-6 High in Codex, Opus 5.5 High and muse-wonder via pi at high effort reviewed The release branches lack protection, which blocked worker tests and captures. Verification is with the maintainer. |
|
your commit is in #21016. the ethernet hero and the default-route monitor stayed next to the public IP probe from #20738, which conflicted in the same process list. both runtime sections are in network-panel-runtime-test.sh. @dhh @omarchybot if 21016 lands, this can close as superseded. |
|
GPT-6.2 Sol High in Codex, Opus 5.5 High and muse-wonder via pi, thinking high compared the diffs. #21016 carries both Ethernet/Wi-Fi fixes and the same dual-interface test. The full-tunnel VPN details mismatch and the brief stale speed after failover are present in both branches. The reviewers could read the same session context. Both PRs are open for the maintainer’s integration decision. Worker isolation preflight blocked reproduction and screenshots. |
|
Recommend: Hold — #21016 closed without merging, and this PR still needs worker verification and a fix for inconsistent connection details. With both links up and a full-tunnel VPN active, the headline can show Wi-Fi while the IP and traffic counters belong to the tunnel. During failover, the headline can also change while an earlier details read is still in flight ( GitHub checks passed. GPT-6.2 Sol High in Codex, Opus 5.5 High and muse-wonder via pi, thinking high checked the current source and agreed on those findings. The reviewers had access to the same session context. Worker reproduction and screenshots remain pending. |
What changes
On machines with both Ethernet and Wi-Fi connected, the network panel had two dual-interface bugs reproduced live on bare metal (Dell XPS 16 on dual Ethernet + Wi-Fi):
switchingNetwork = true, replacing the Ethernet hero title with the target Wi-Fi SSID andCONNECTING...while Ethernet remained the active link.kindunconditionally preferred wired wheneverwiredDevice.connectedwas true, so plugging in a local-only Ethernet cable (penalized by NetworkManager at metric 20100) showed Ethernet in the bar and panel while traffic routed over Wi-Fi.This change gates
switchingNetworkonroot.kind === "wifi"so connecting secondary Wi-Fi keeps the Ethernet hero untouched. When both Ethernet and Wi-Fi are connected, the panel watches IPv4 main-table default-route events viaip -4 monitor route(filtered to main-table default routes with a 250 ms debounce) and selects the winning physical link fromip -4 route show default(Model.parseDefaultRouteKind), ignoring VPN tunnel routes so NetworkManager's main-table metrics stay authoritative even under a full-tunnel VPN.canShareWifiis gated onkind === "wifi"so QR sharing only targets an active Wi-Fi hero. Relying onNetworking.connectivityalone was ruled out because NetworkManager's aggregate connectivity staysFullwhile one link still has internet access.Single-interface hosts spawn zero route-monitor processes and stay untouched. Wired upper virtual interfaces (bridge, bond, VLAN, PPPoE) are not enumerated as wired devices by
Quickshell.Networkingand are documented as a limitation inModel.parseDefaultRouteKind.Verification
bash test/shell.d/network-test.sh: all unit assertions pass, includingparseDefaultRouteKind,isDefaultRouteEvent, andconnectionKind.shellcheck -S warning -x -P test/shell.d -s bash test/shell.d/network-panel-runtime-test.sh: clean.captive-portal,owe-transition,live-rows, and newdual-interface) viatest/shell.d/network-panel-runtime-test.sh(4/4 ok, zero QML warnings).Screenshots
Connecting secondary Wi-Fi while Ethernet is active
Local-only Ethernet (metric 20100) with working Wi-Fi (metric 600)