Skip to content

Fix the Bluetooth widget vanishing when the radio is turned off - #12585

Open
selfcrypto wants to merge 16 commits into
omacom:quattrofrom
selfcrypto:bluetooth-keep-widget-when-blocked
Open

selfcrypto wants to merge 16 commits into
omacom:quattrofrom
selfcrypto:bluetooth-keep-widget-when-blocked

Conversation

@selfcrypto

@selfcrypto selfcrypto commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #12494, fixes #12599, fixes #13523.

What changes

The bug

Turning Bluetooth off from the bar takes the entire widget off the bar: icon, panel and power switch. The only way to turn it back on is a terminal.

bin/omarchy-bluetooth-power off moves an rfkill soft block, deliberately, because that is the half that survives a reboot. The panel's comment assumes BlueZ rides that out:

Powered still follows the block, so the switch and icon read it as before.

It doesn't, on every machine. Where the block reaches a switch that cuts power to the controller rather than just parking it, hci0 stops existing, bluetoothd drops the adapter, and /org/bluez goes childless. Bluetooth.defaultAdapter is then null, and the widget's visible: adapter !== null takes it off the bar along with its own on switch.

Measured on a ThinkPad, where the block lands on the thinkpad_acpi platform switch:

$ busctl tree org.bluez          # before
└─ /org
  └─ /org/bluez
    └─ /org/bluez/hci0

$ omarchy-bluetooth-power off
$ busctl tree org.bluez          # after
└─ /org
  └─ /org/bluez
$ ls /sys/class/bluetooth/       # hci0 is gone from the kernel too

The reporter of #12494 sees the same on an Intel 8087:0a2b.

The fix

BlueZ cannot tell "turned off" from "no Bluetooth hardware": both arrive as an absent adapter. rfkill can, because the block itself is a listed bluetooth switch. So the panel asks it, and only when BlueZ has nothing to say:

  • omarchy-bluetooth-power is-blocked: new read-only verb, exit 0 when any bluetooth switch is soft-blocked. Soft blocks only; a hard block is a physical switch on cannot lift anyway. The rfkill query runs under LC_ALL=C, because rfkill translates the column ("gesperrt", "bloqueado").
  • radioPresent replaces the adapter in everything the widget shows: visibility, icon, hero text, the switch, the empty-list copy. It is a plain property, set to true when an adapter appears and from is-blocked when one goes away. It is never bound to the adapter, so it keeps its last value until rfkill has answered and the widget does not blink off the bar in between, whether the panel, the CLI or anything else set the block. radioEnabled stays adapter-driven.
  • Everything that needs the adapter object (discovery sessions, the sibling handoff, deviceFor) is untouched.

The query runs on exactly two edges: the adapter going away, and startup with no adapter. Turning Bluetooth back on brings the adapter with it, which sets radioPresent directly, so nothing polls.

Hardware agnostic

The signal is "rfkill lists a soft-blocked bluetooth switch", not any particular controller, driver or platform:

rfkill adapter before after
Controller-only switch, blocked hci0 blocked present, Powered: no works unchanged
Platform switch cuts power, blocked platform blocked gone widget vanishes reads "Turned Off", switch works
Blocked at boot (systemd-rfkill restores it) blocked gone widget never appears reads "Turned Off", switch works
No Bluetooth hardware no bluetooth switch none hidden hidden
Dongle unplugged its switch goes with it none hidden hidden

The last two are why the check is grep -qw and not a substring: unblocked contains blocked, and a loose match would pin the widget to the bar on every machine that has no Bluetooth at all. There's a test for it.

Verification

  • Rebased onto current quattro as a single commit (35528cb). test/shell.d/bluetooth-test.sh passes. It adds is-blocked against a mocked rfkill (blocked, unblocked, no hardware, localized session), and a runtime test: the real Panel.qml under quickshell with a mocked BlueZ (fixtures/bluetooth-radio-off) through turn-off, turn-on, no hardware and a blocked startup. The runtime test fails against quattro's Panel.qml (4 assertions) and passes with this change. The source-text assertions from earlier revisions are gone, matching quattro, which dropped them from this file.
  • i18n, keyboard-panel-lazy, qml-text-format and panel-open-budgets tests pass after the rebase. runtime-smoke-test.sh reports "each widget registers its IPC handler once per screen" as failing, the same on quattro without this branch.
  • is-blocked against real hardware: 1 unblocked, 0 while blocked with the adapter off D-Bus, 1 again after on.
  • Live UI on a ThinkPad, patched files over /usr/share/omarchy, full round trip with BlueZ holding no adapter throughout the middle step:
    1. On: icon lit, switch on, devices listed.
    2. Off via the panel's own toggleBluetooth IPC: /org/bluez childless, is-blocked exits 0, widget still on the bar, panel reads TURNED OFF (not No adapter), switch present and in the off position, body reads "Turn Bluetooth on to scan". No clipping or overlap.
    3. On from that same switch: adapter and devices come back, phrase rotation resumes. This is the step that was impossible before.
  • Tested by @echennells on a ThinkPad T14 Gen 2a at 51ac490 (same code as the current head before the I18n.t rebase): 0/16 hides across panel and CLI turn-offs and turn-ons, a shell started with the radio blocked shows "Turned Off" and turns back on, hidden with bluetooth.service masked or btusb unloaded.

Screenshots

screenrecording-2026-11-18_21-33-06.mp4

@selfcrypto
selfcrypto force-pushed the bluetooth-keep-widget-when-blocked branch from 4cf367a to adfd8b4 Compare September 20, 2026 00:46
@llstrk

llstrk commented Sep 21, 2026

Copy link
Copy Markdown

Translated rfkill output still hides blocked-radio controls

Reviewed adfd8b4e. The new is-blocked helper parses a translated SOFT column using the English word blocked.

A localized successful query becomes a false hardware result

Using the installed rfkill 2.42.3 with the same synthetic Bluetooth soft-block event:

Same synthetic soft-block event; query succeeds in both locales

C:      blocked  -> is-blocked exits 0 -> TURNED OFF + switch
German: gesperrt -> is-blocked exits 1 -> NO ADAPTER, no icon/switch

French and Spanish output reproduced the formatter mismatch too. The visible C/German states came from production panel logic with simulated backend state; NO ADAPTER was reported through the test opener.

Impact: with an absent BlueZ adapter and a soft-blocked radio, translated output leaves the original missing-control problem unresolved. grep -w correctly rejects unblocked, but does not address translation.

Suggested change: set LC_ALL=C on the rfkill query and add a locale-sensitive regression. Changing to raw or JSON output alone does not make these cell values locale-independent.

Verified: that query variant passed the tested blocked/unblocked, no-radio, hard-only, Wi-Fi-only and multiple-switch controls.

Verified: the C-language blocked-startup case, simulated off/on adapter round trip and no-hardware hiding behave as intended. Focused Bluetooth suites pass on both revisions.


Review information

Test scope: real rfkill formatting from private synthetic events; rendered panel logic with Bluetooth/audio provider substitutions; recorded power actions. No physical radio changes, actual BlueZ removal, reboot persistence or pairing tested.

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Automated AI review: Astra ran initial command experiments; independent Fable 5.1 and Astra reviewers added locale and QML validation. Both completed reports and material evidence, including rendered states, were read before synthesis.

@selfcrypto

Copy link
Copy Markdown
Contributor Author

Confirmed. util-linux translates the SOFT column (de "gesperrt", es "bloqueado", fr "bloqué"), so on a localized system is-blocked answered "not blocked" and the widget vanished again.

1fce0f6 pins the query to LC_ALL=C. The mock rfkill in the test now translates its output unless the caller pinned the locale, so the suite fails the way a localized machine would.

@echennells

Copy link
Copy Markdown

Tested on real affected hardware: a ThinkPad T14 Gen 2a with platform switch tpacpi_bluetooth_sw and Realtek RTL8852AU Bluetooth, on Omarchy 4.0.4-1, Quickshell 0.3.1, bluez 5.87, util-linux 2.42.3 and kernel 7.2.5. I applied this PR's Panel.qml and omarchy-bluetooth-power diffs at 1fce0f6b onto 4.0.4 (both apply cleanly) and ran them as the live shell.

Everything passed:

  • turn off and on through toggleBluetooth over IPC (the function behind right-click, the switch and b; no physical clicks)
  • the shell restarted with the block set (stands in for a reboot; I didn't reboot with the PR code)
  • bluetooth.service masked and stopped (widget hidden)
  • btusb unloaded (hidden)
  • a controller-only block (unchanged)

Turning off from the panel never touched visible (0/5, logged with millisecond timestamps): the status went straight to "Turned Off" while the adapter left D-Bus. Under the identical sequence #13204 hides the widget for 5–7 ms each time. Turning off outside the panel (omarchy-bluetooth-power off, 3/3) still hides it here for about 6 ms, because the optimistic radioBlocked is only set in toggleBluetooth(). That could be closed by setting it from the rfkill side too, if that matters. There's a side-by-side table and a trace excerpt on #13204: #13204 (comment)

Tested with help from Claude Code; every run was on my machine.

@selfcrypto
selfcrypto force-pushed the bluetooth-keep-widget-when-blocked branch from 1fce0f6 to feb25c2 Compare October 4, 2026 19:38
@greptile-apps

greptile-apps Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no actionable issues remain in the reviewed changes.

Summary

Keeps the Bluetooth widget available when a soft block removes its BlueZ adapter.

  • The Bluetooth bar stays available when a blocked radio disappears from BlueZ.
  • Bluetooth commands recognize radios that rfkill has detached from BlueZ.

No new actionable issues were found. The three earlier, unnumbered concerns are addressed by the current runtime coverage and removal-only watcher. Tests were not run during this review.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Adapter changes or shell starts] --> B{Adapter exists?}
  B -->|Yes| C[Show widget; read adapter power]
  B -->|No| D[Query Bluetooth soft blocks]
  D --> E{Soft-blocked?}
  E -->|No| F[Hide widget]
  E -->|Yes| G[Watch BlueZ ownership]
  G --> H{BlueZ owns its name?}
  H -->|Yes| I[Show off widget]
  H -->|No| F
  I --> J[Bluetooth switch removed]
  J --> D
Loading

Reviews (16) · Last reviewed commit: "Hide the blocked Bluetooth widget while ..." · Reviewed by Greptile

Comment thread test/shell.d/bluetooth-test.sh Resolved
@selfcrypto

Copy link
Copy Markdown
Contributor Author

Fixed the command-line case in feb25c2. The widget now stays on the bar until rfkill answers, no matter how Bluetooth was turned off.

Also rebased on quattro.

@echennells

Copy link
Copy Markdown

Re-tested 51ac4908 (includes feb25c21) on the same ThinkPad T14 Gen 2a, same method: the PR's Panel.qml + helper diffs applied onto 4.0.4 and run as the live shell, presses via toggleBluetooth over IPC, a debug copy logging visible/status/adapter with millisecond timestamps, and each press confirmed to have taken effect before the next.

  • 5 panel turn-offs, 5 panel turn-ons, 3 × omarchy-bluetooth-power off and 3 × on: the widget never left visible and never showed "No adapter" (0/16). Before feb25c21 the command-line turn-off hid it for about 6 ms, 3/3.
  • Shell started with the radio already blocked (the state 4.0.4 leaves you in after turning Bluetooth off): icon on the bar, "Turned Off", and the first press turned it back on.
  • bluetooth.service masked and stopped → hidden. btusb unloaded → hidden. Controller-only block → "Turned Off", on in ~140 ms.
  • No shell errors.

Not tested across a real reboot: on this ThinkPad the saved block doesn't survive boot. The radio comes back on ~4.4 s in (#13342), so the shell never starts with Bluetooth off. The shell-restart-while-blocked case above exercises the same start-up path.

I'm now running it as my bar's Bluetooth widget (omarchy plugin clone plus the PR's helper on 4.0.4), and off/on from the widget works. Thanks for the quick fix.

@selfcrypto

Copy link
Copy Markdown
Contributor Author

Thanks for testing both PRs so carefully on real hardware. Glad it's working on your bar.

@jandrusk

Copy link
Copy Markdown

Linking related work so the maintainer can pick: #13204 is a second open PR for the same panel fix and is the one linked from #12599. #15112 (filed this week) and #12599 are further ThinkPad reports of the same symptom. This PR has the most real-hardware testing (T14 Gen 2a, including the LC_ALL=C rfkill fix and the CLI turn-off case), so it may be the one to keep. The rfkill block bluetooth root cause itself is tracked separately in #7936.

@omarchybot

Copy link
Copy Markdown
Collaborator

Looked at this again at 51ac4908, to classify it before verifying anything. The classification is unsettled, so nothing was run on a worker yet and the earlier enhancement label has come off.

Two models were asked separately what this is. Claude Opus 5.5 read it as a compatibility bug: on machines where the rfkill block lands on a platform switch that cuts power to the controller (ThinkPad thinkpad_acpi, the Intel 8087:0a2b in #12494), BlueZ drops the adapter, visible: adapter !== null takes the widget off the bar, and the only way back is a terminal. Codex Medium read it as an enhancement, a deliberate change to what the widget shows plus a new is-blocked verb. Neither label goes on while they disagree.

Separately: GitHub reports this branch as conflicting with quattro, and #13204 is another open pull request for the same panel fix, as noted above. Which of the two to carry forward is the maintainer's decision.

Waiting on the maintainer to settle what this is; it is verified on a worker once that is decided.

@selfcrypto
selfcrypto force-pushed the bluetooth-keep-widget-when-blocked branch from 51ac490 to 2823a3d Compare October 15, 2026 00:26
@selfcrypto

Copy link
Copy Markdown
Contributor Author

Rebased on quattro after #15326. Only change: the three strings now use I18n.t, with the radioPresent/radioEnabled conditions kept. The other commits are unchanged from 51ac490. Bluetooth and i18n tests pass.

@omarchybot

Copy link
Copy Markdown
Collaborator

Looked at this again at 2823a3da, after the rebase onto quattro that moved the strings to I18n.t. The classification is still unsettled, so nothing was run on a worker and no class label goes on.

The two models were asked again, separately, at this head, and gave the same answers as before. Claude Opus 5.5 reads it as a compatibility bug: where the rfkill block lands on a platform switch that cuts power to the controller (ThinkPad tpacpi_bluetooth_sw, the Intel 8087:0a2b in #12494), BlueZ drops the adapter, visible: adapter !== null takes the widget off the bar, and only a terminal turns Bluetooth back on. Codex Medium reads it as an enhancement: a deliberate change to what the widget shows, plus a new is-blocked verb.

The branch now merges cleanly into quattro. #13204 is still open as a competing fix for the same widget; which one to carry forward is the maintainer's call.

Waiting on the maintainer to settle what this is; once that is decided, it gets verified on a worker.

@selfcrypto selfcrypto changed the title Keep the Bluetooth widget on the bar while the radio is off Fix the Bluetooth widget vanishing when the radio is turned off Oct 15, 2026
@paulogeyer

Copy link
Copy Markdown
Contributor

I reviewed the open PRs that keep the Bluetooth bar widget visible when the radio is off (#12494, #12599, #13523, #9724). This is code review only: #12585's runtime fixture needs a compositor, and its 62 static checks pass after merging.

PR merges cleanly / commits behind test
#12585 yes / 8 static checks plus a QML runtime fixture with a Bluetooth mock
#13204 no (conflicts) static
#10003 no (conflicts) static
#13806 no (conflicts; also changes discovery retry) static

I'd go with #12585. It's the only one that still merges, it's 8 commits behind quattro, and it uses rfkill to tell "radio off" apart from "no adapter". #13204, #10003 and #13806 duplicate it.

Suggestion for #12585: it also switches turning Bluetooth off to an rfkill soft block, which is a behaviour change beyond the widget, so call that out in the description and add Fixes #12599 and Fixes #13523.

@selfcrypto

Copy link
Copy Markdown
Contributor Author

Turning Bluetooth off already goes through the rfkill soft block on quattro since #6682. This PR only changes the property the toggle reads to choose on or off (radioEnabled instead of adapter.enabled), so there is no change to how it turns off.

Added Fixes #12599 and Fixes #13523 to the description.

@selfcrypto

selfcrypto commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

@birkskyum this has been waiting on classification since October: the two models split between compatibility and enhancement. For what it's worth, it's a bug from the user's side: on ThinkPads with tpacpi_bluetooth_sw (and the Intel 8087:0a2b in #12494), turning Bluetooth off from the bar removes the widget together with its own on switch, and the only way back is a terminal. #12494, #12599, #13523 and #15112 are four separate reports of it.

It's rebased on current quattro and all checks and Greptile pass. Tested on a T490 (recording in the description) and earlier on a T14 Gen 2a by another user. It overlaps #13204, which fixes the same symptom; this one also covers turning off from the command line, localized rfkill output, a shell started with the radio already off, and a removable radio unplugged while off.

Update (Nov 22): the missing classification was a failure of the bot's second classifier that hit many PRs from Nov 18 and has since cleared. This PR has not been classified again yet, so it is still unlabelled; quattro is merged in again (0d93973) for the bot to pick it up.

@omarchybot

Copy link
Copy Markdown
Collaborator

Rechecked 588fe290a79cce92173933e1ff655f116d50f169 against quattro, including the current diff, review comments and linked reports #12494, #12599 and #13523. I classify this as a compatibility fix: the existing off switch can remove its own way back on when a platform rfkill switch makes BlueZ drop the adapter. The base still hides the widget and returns early from its toggle when the adapter is absent.

GPT-6 in Codex reviewed the source (reasoning effort is not exposed to this session). The configured classification model, deepseek-v4p1-flash, returned no usable classification, so no second classification or code review completed. Classification remains unsettled; no class label was added and no worker tests were run. This waits on the maintainer to settle the classification before worker verification can proceed.

@selfcrypto

Copy link
Copy Markdown
Contributor Author

@omarchybot Please classify again at 578a45f (quattro merged in). The last attempt, on Nov 18, got no answer from the second classifier, and your own call was a compatibility fix. Where the rfkill block lands on a platform switch that cuts power to the controller (ThinkPad tpacpi_bluetooth_sw, the Intel 8087:0a2b in #12494), BlueZ drops the adapter, so turning Bluetooth off from the bar removes the widget together with its own on switch, and only a terminal turns it back on.

No change to this branch's own code. The missing classification on this PR came from omarchybot's second classifier returning no answer, which hit many PRs from Nov 18 to Nov 22 and now answers again; nothing in this branch caused it. Brought up to date with quattro so the bot classifies the current head.
The adapter leaving started the rfkill query directly, which does nothing while an earlier query is still running, so the widget settled for an answer taken before the adapter left. Go through requeryBlocked like the switch-removal path, which queues a second ask.
@omarchybot

Copy link
Copy Markdown
Collaborator

Rechecked 0d9397391a5501419e1e99e7d2df315f03a22da2 against quattro, including the diff, review threads and linked reports #12494, #12599 and #13523. The base still hides the widget and prevents its toggle from turning Bluetooth on when BlueZ has no adapter. I classify this as a compatibility fix because a platform rfkill switch can remove the adapter and the UI's way back on.

The second classifier answered this time: deepseek-v4p1-flash returned enhancement, so classification remains split. GPT-6 in Codex reviewed the source; reasoning effort is not exposed for this session or reported by the classifier. This was a classification pass; no second code review or worker tests ran, and no class, verified or ready label was added. The queue workflow stops here on a classification disagreement. This waits on the maintainer to settle the classification before verification can proceed.

@selfcrypto

Copy link
Copy Markdown
Contributor Author

@dhh could you take a look at this one when you have a moment? I know the queue is huge.

The bot's two classifiers disagree on it (compatibility vs enhancement), and it can't go further until a maintainer picks a class. It has been waiting there since mid October.

The fix is for laptops where turning Bluetooth off from the bar removes the widget, so the only way to turn it back on is a terminal. That happens on ThinkPads with tpacpi_bluetooth_sw and on the Intel 8087:0a2b, and #12494, #12599, #13523 and #15112 report it.

It's on current quattro and checks pass. Happy to change anything that would make it easier to merge.

#17616 is in the queue too, classified bug and tested on the machine from #10193, in case it's handy to look at both together.

Thanks for Omarchy, and for your time.

omarchybot and others added 4 commits November 27, 2026 10:16
Keep the current Bluetooth CLI as the panel power entry point and retain both the CLI and radio-off runtime checks.

Co-Authored-By: GPT-6 <noreply@openai.com>
Carry the CLI recovery from omacom#20378 into the widget fix. A blocked platform radio can have no BlueZ controller, so status and auto-power operations consult the same soft-block query as the panel. Power up before resolving device names because BlueZ cannot resolve them while the controller is absent. Keep the existing power deadline.

Co-Authored-By: David Heinemeier Hansson <david@hey.com>
Co-Authored-By: GPT-6 <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
An in-flight query can answer unblocked after the adapter has returned and disappeared again behind a new soft block. Keep the widget state until the queued refresh answers instead of briefly applying the stale result. The runtime fixture overlaps those transitions and fails before this change.

Co-Authored-By: GPT-6 <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
Co-Authored-By: muse-wonder via pi, thinking high
Run the CLI checks before the runtime fixture so a headless run still exercises them. Distinguish panel-issued power actions from fixture setup, and verify an empty name leaves a blocked radio untouched instead of checking only the exit code.

Co-Authored-By: GPT-6 <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

Classification now resolves to bug: the driver classified this as compatibility and deepseek-v4p1-flash classified it as bug, so both identify broken behavior.

I merged current quattro into this branch, retaining its omarchy-bluetooth power entry point, and folded the CLI recovery from #20378 with credit to @dhh. A radio with a soft block and no BlueZ controller now reads as off in CLI status, and scan/connect/pair/forget can power it before resolving device names. The power deadline is unchanged. I also fixed a reproduced flicker where a superseded rfkill query briefly hid the widget before its queued refresh answered.

./test/cli and test/shell.d/bluetooth-test.sh passed on a disposable ISO worker with its compositor running this tree. The CLI checks also ran without a compositor. CI passed on the final head; Greptile scored that head 5/5 with no new findings. Reverting the CLI recovery and query fix made their regressions fail; separate mutations confirmed the panel-action and empty-name checks catch the behavior they name. These checks use simulated Bluetooth/rfkill state: the worker has no Bluetooth hardware, so they do not confirm the physical disconnect, reboot persistence, or real rfkill removal events.

GPT-6 in Codex performed the driver review (session effort is not exposed). Opus 5.5 High and muse-wonder via pi, thinking high reviewed the final head and found no remaining code findings. Their reviews contributed the stale-query check and test corrections; agreement does not guarantee independence.

@wb2012sf, @alhasapi or @Fab1anBecker: please test full head 5ba21682fb93bcd828ec76635e8d314b12f00967 on affected hardware. Install this test checkout and reboot when prompted:

git clone --single-branch --branch bluetooth-keep-widget-when-blocked https://github.com/selfcrypto/omarchy.git ~/omarchy-pr-12585
git -C ~/omarchy-pr-12585 checkout --detach 5ba21682fb93bcd828ec76635e8d314b12f00967
omarchy dev link ~/omarchy-pr-12585

Confirm that off/on from the bar keeps the widget usable, a shell started with the platform radio already blocked can turn it on, and CLI status/scan/connect work while BlueZ has no controller. If available, also unplug a removable radio while it is blocked and check that the widget disappears. Please include rfkill list bluetooth, bluetoothctl list, and the rfkill event removal line. After testing, omarchy dev unlink and reboot restore the packaged installation.

The earlier hardware confirmations cover older commits, so this waits for confirmation at the full head above; verified and ready have not been added. Related panel alternatives remain #11252, #13204, #13806, #15859 and #16970; #12753 addresses which rfkill switches are blocked.

@selfcrypto

Copy link
Copy Markdown
Contributor Author

Merged current quattro (33c2f660f) into the branch. New head: b9b6a7a4130feaa1cf85b73fcd8997b3c07aeda5.

The only conflict was in test/shell.d/bluetooth-test.sh, where #20378 added its hci* cases next to the is-blocked ones. Both sets are kept, and the code is unchanged from 5ba21682f.

test/shell.d/bluetooth-test.sh and ./test/cli pass locally. CI fails on lock-appear-budget-test.sh ("lock preview appears and hides cleanly") and agent-account-test.sh. This PR touches neither, and the lock test fails the same way on #17616 and on the fix-mise-wrapper-migration branch. I can't rerun the jobs.

@wb2012sf @alhasapi @Fab1anBecker the head to test is now b9b6a7a4130feaa1cf85b73fcd8997b3c07aeda5. The steps above are the same with that SHA.

@omarchybot

Copy link
Copy Markdown
Collaborator

I checked b9b6a7a4130feaa1cf85b73fcd8997b3c07aeda5 against quattro, including the Bluetooth test merge, the linked reports and the CI logs. GPT-6 in Codex (high effort) classified this as a bug because a radio that is already soft-blocked can still lose its BlueZ adapter and leave the stock widget with no way to turn it back on. The second classifier, deepseek-v4p1-flash (effort unreported), returned enhancement. Classification is again waiting on a maintainer decision.

The merge retains both the HCI-only blocking tests from quattro and the blocked-radio recovery tests from this branch. GitHub CI reports failures in lock-appear-budget-test.sh and agent-account-test.sh. This pass stopped at classification, so I did not rerun the tests on a worker. The linked reports have no hardware confirmation at this commit yet.

@omarchybot omarchybot removed the bug Something isn't working label Nov 27, 2026
@selfcrypto

Copy link
Copy Markdown
Contributor Author

@dhh could you set the class on this one by hand? The two classifiers split again on b9b6a7a41 (bug vs enhancement), a few hours after they resolved to bug on 5ba21682f. The only change between the two heads is a merge of quattro with one conflict in the test file, so the code is the same.

While the class is split the bot stops before testing, and the bug label is gone again.

@omarchybot

Copy link
Copy Markdown
Collaborator

The merge from quattro at f04ef23bb57292744046522cd02d4ff630e2d7e6 leaves the Bluetooth files unchanged from the previous review. All six GitHub checks now pass.

GPT-6 in Codex (high effort) checked the panel source and linked reports and classified this as a compatibility bug: a platform rfkill switch can remove the BlueZ adapter, and the stock panel then hides the control needed to turn Bluetooth back on. The configured classifier, deepseek-v4p1-flash (effort unreported), returned enhancement. Classification still needs a maintainer decision before worker verification can proceed.

@omarchybot omarchybot added bug Something isn't working compatibility Make Omarchy work better on everything! labels Dec 4, 2026
A soft block can outlive bluetoothd, leaving the panel's on switch visible after the user stops the service. Check whether BlueZ owns its D-Bus name while a blocked radio has no adapter, and query rfkill again when BlueZ returns.

Co-Authored-By: GPT-6 <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

Recommend: Hold — classification at cd4573ea needs a maintainer decision.

quattro now avoids the usual platform block when an HCI switch is available. This PR restores the on switch when a soft block has already removed the adapter. I pushed cd4573ea to keep the widget hidden while BlueZ is stopped and restore it when BlueZ returns with the radio still blocked.

On an ISO worker with real BlueZ and simulated rfkill, the base and reverted panel hid the widget. The patched panel showed it and sent the unblock command. The stopped-service regression test passed with the patch and failed when reverted. The full suite had the same four failures on quattro. All seven GitHub checks passed, and Greptile scored this head 5/5.

Codex High classifies the new head as a compatibility bug. The configured classifier, deepseek-v4p1-flash (effort unreported), returned enhancement. Opus 5.5 High identified the stopped-service regression and found no further blocking defect in the patch. Muse-wonder via pi (high) agreed on the revised code. Review independence is not guaranteed. Confirmation on affected hardware at this commit is still pending.

Before on quattro with a simulated blocked radio

After on cd4573ea with the same simulated blocked radio

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

Labels

bug Something isn't working compatibility Make Omarchy work better on everything!

Projects

None yet

6 participants