Repository navigation
feat(macos): show receiver batteries in the Batteries widget - #1544
Open
flowsworld wants to merge 6 commits into
Open
flowsworld wants to merge 6 commits into
flowsworld wants to merge 6 commits into
Conversation
Open
1 of 10 tasks
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge, with no accepted new findings or outstanding previous findings.
|
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
September 20, 2026 14:29
15edffe to
4864c08
Compare
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
September 24, 2026 08:56
4864c08 to
abbc5a9
Compare
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
October 2, 2026 10:20
b0faf1a to
3f781ec
Compare
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
October 15, 2026 11:59
3f781ec to
99f11dd
Compare
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
3 times, most recently
from
October 20, 2026 10:19
cecdead to
dd62ca3
Compare
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
October 21, 2026 16:41
dd62ca3 to
79c0092
Compare
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
November 4, 2026 08:44
79c0092 to
5646b38
Compare
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
November 4, 2026 09:03
5646b38 to
66c2d1a
Compare
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
November 12, 2026 10:27
66c2d1a to
aa855f2
Compare
Upstream now names low-battery notices by the persisted product name. The widget used only the alias or the raw codename, so an unnamed device could appear under two names. Config::device_display_name now owns that precedence for the notice and the widget. Hand edits can also be reloaded with `openlogi api reload`.
flowsworld
force-pushed
the
feat/macos-battery-widget
branch
from
December 3, 2026 10:14
a90206b to
2a347c0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Optionally show Bolt/Unifying mouse and keyboard batteries in the built-in macOS Batteries widget. Enable Show batteries in macOS widget in Settings > General. It is off by default; direct Bluetooth devices remain managed by macOS.
The integration uses dynamically loaded private IOKit functions and is experimental. macOS labels these published devices as Bluetooth even though they use a receiver.
Changes
Config::device_display_namenow owns that order for both.Rebased onto
masterat0cae2818. The native control-center menu from #2455 is preserved.The screenshots predate the #2190 restyle; the card itself is unchanged.
Testing
Apple Silicon macOS, Rust 1.100.1,
RUSTFLAGS="-D warnings", rebased on0cae2818:cargo xtask ci: rustfmt, typos, ast-grep, publish closure, shell, clippy, MSRV (1.99), rustdoc, tests (macos, aarch64), cargo-deny, clippy (windows) proxy, clippy (macos) and wasm passed. 4,958 tests passed, 3 ignored./usr/lib/swifton the dyld fallback path on this host; the same happens in crates this PR does not touch.cargo test -p openlogi-ipc --test wire_format: 39 passed.PROTOCOL_VERSIONis 47.openlogi-core,openlogi-agent-coreandopenlogi-agentpassed all-target Clippy, tests and rustdoc again. A new publisher test shows an unnamed device under its persisted product name.Merge coordination with #1588: both PRs append to protocol 47 and add the identical
Config::device_display_name. The PR that lands second keeps 47 unless a release has shipped it, merges its history note into the v47 line, puts its wire items after the other's, and regenerates the shared snapshot/observation goldens before rerunningcargo test -p openlogi-ipc --test wire_format.Hardware check: enable before the first inventory completes, verify status leaves Starting, connect receiver devices, check names/charging and rename updates, then disable and quit to verify cleanup.
The
pin-project-litelock entry moves from the yanked 0.2.17 to 0.2.19, the same change as #2723, socargo-denypasses. A style-only commit ends two upstream KWin script files from #1003 with a newline. The repository's pre-push end-of-file hook checks every file changed since the old base and otherwise blocks the push.Independent review: findings verified against the source. Fixed: widget naming and the
openlogi api reloadhint. Declined as rare paths: renaming an offline device during its grace period and re-pairing into another slot.Reviewed with sol-loop: 3 rounds with gpt-6.2-sol on high. Sol verdict: approved
Fixes #669