Skip to content

Keep the Wi-Fi icon steady on OWE transition-mode networks - #14133

Merged
dhh merged 2 commits into
quattrofrom
fix-owe-wifi-icon-flicker
Oct 4, 2026
Merged

dhh merged 2 commits into
quattrofrom
fix-owe-wifi-icon-flicker

Conversation

@dhh

@dhh dhh commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

On an OWE transition-mode network (an open SSID paired with a hidden _owetm_ twin on the same BSSID), the bar's Wi-Fi icon flips between the disconnected glyph and signal bars every scan cycle, even though the link never drops.

Cause

Between scans NetworkManager reports the in-use access point under the hidden _owetm_… SSID. Because no visible AP matches the profile's SSID, it also drops the active profile from the device's AvailableConnections (ao 0), and that list is the only place Quickshell builds known networks from. So wifiDevice.networks lists no connected network, connectedWifiNetwork is null, and kind falls to "disconnected". When the next scan makes the open SSID visible again, the profile comes back and the icon returns. Then the APs age out and it drops again.

Seen with Quickshell 0.3.1 debug logs: only Registered network for SSID "_owetm_Chateau Elan714029536", never the profile's SSID, while Device.connected stays true throughout.

Fix

  • Key Wi-Fi connectivity checks on the device rather than the SSID, so scan churn doesn't schedule checks. A real network switch still passes through disconnected.
  • When no listed network is connected but the Wi-Fi device itself is (NetworkDevice.connected, which is only true in the Connected state), keep kind at "wifi".
  • While the connected network has no strength of its own, read the in-use AP's strength from nmcli -t -f IN-USE,SIGNAL device wifi list ifname <dev> --rescan no. It polls every 5s, and only in that state, so normal networks pay nothing and it never triggers a scan.

Verification

  • test/shell.d/network-owe-transition-test.sh runs the real panel against a mocked device and a stubbed nmcli through the scan churn, a disconnect while a read is in flight (the stale read is discarded), and a final disconnect. It fails if the device fallback or the stale-read guard is removed.
  • New assertions in test/shell.d/network-test.sh for the device fallback, the strength fallback, and nmcli parsing. The network suites pass.
  • Live comparison on an affected network, using a throwaway Quickshell probe running this branch's Model.js against real NetworkManager state for 90s with a forced rescan at 30s:
    • between scans: old logic disconnected 󰤮, new logic wifi/63 󰤥
    • after the rescan: both wifi/74 󰤥
  • Reviewed with codex review: no actionable findings.
  • ./test/shell: 4069 pass. The 7 failures (config, elsewhen-migration, kernel-headers-migration, passwordless-grant-lifecycle, snapper, unowned-system-paths, and the network portal fixture) fail identically on a clean quattro checkout. They need an omarchy-pkgs checkout or hit a portal app-ID clash in a live session.

No before/after screen capture: I didn't swap the running desktop shell over to this branch. The probe output above shows the icon each version computes.

🤖 Generated with Claude Code

An OWE transition-mode network pairs an open SSID with a hidden "_owetm_"
twin on the same BSSID. Between scans NetworkManager reports the in-use
access point under the hidden SSID and drops the active profile from the
device's AvailableConnections, which is the only place Quickshell builds
known networks from. No listed network is then connected, so the bar fell
back to the disconnected icon until the next scan brought the open SSID
back, flickering on and off while the link stayed up.

Fall back to the Wi-Fi device's own connected state when no listed network
is connected, and read the in-use access point's strength from nmcli
(without a rescan) while the connected network has none of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Fixes Wi-Fi icon stability during OWE transition-mode network scans.

The PR appears safe to merge; no new actionable issue was established.

Summary

The PR keeps the Wi-Fi icon active when an OWE transition network temporarily disappears from the listed networks, obtains signal strength from the in-use AP when needed, and adds runtime coverage for scan churn and stale reads.

  • Since the previous review, it adds AP-read invalidation, stabilizes the connectivity-check key across scans, and introduces a Quickshell fixture.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Connected Wi-Fi device] --> B{Listed connected network has strength?}
  B -->|Yes| C[Use listed strength]
  B -->|No| D[Poll in-use AP without a scan]
  D --> E[Use AP strength]
  C --> F[Wi-Fi icon]
  E --> F
Loading

Reviews (2) · Last reviewed commit: "Discard stale in-use AP reads and key Wi..."

Comment thread shell/plugins/panels/network/Panel.qml Resolved
Comment thread shell/plugins/panels/network/Panel.qml Resolved
Comment thread test/shell.d/network-test.sh Resolved
Bump a generation whenever the cached in-use access point strength stops
describing the link (leaving Wi-Fi or a device change), and drop any nmcli
read started before it, re-reading immediately instead of a full interval
later.

Key Wi-Fi connectivity checks on the device rather than the SSID, so the
listed network coming and going with each scan on an OWE transition-mode
network no longer schedules a check. A real network switch still passes
through "disconnected".

Add a QML fixture that runs the panel against a mocked device through the
scan churn, a mid-read disconnect, and a final disconnect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit 1832855 into quattro Oct 4, 2026
1 check passed
@dhh
dhh deleted the fix-owe-wifi-icon-flicker branch October 4, 2026 00:09
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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