Skip to content

Stop fetching system stats the power panel no longer shows - #13379

Open
benwillems wants to merge 2 commits into
omacom:quattrofrom
benwillems:fix-power-panel-stale-stats
Open

benwillems wants to merge 2 commits into
omacom:quattrofrom
benwillems:fix-power-panel-stale-stats

Conversation

@benwillems

Copy link
Copy Markdown

Fixes #13374

Problem

The power panel's CPU and memory rows were removed in 74f7123 ("More tweaking"). The code feeding them stayed behind:

With the panel open, the 5-second refresh timer and every profile change start another omarchy-system-stats. On a live 4.0.4 session, opening the panel for about 11 seconds started it 6 times.

Fix

Finish the removal rather than bring the rows back, since they were dropped on purpose:

  • Drop systemProc, systemInfo, and the system branch of the key/value handler. That handler only has one caller now, so it becomes updateBatteryInfo(raw).
  • Describe the widget as "Battery and power profile" in manifest.json and in shell/plugins/bar/README.md.

omarchy-system-stats itself is left alone, since it is a public command that other plugins may call.

Testing

  • git grep finds no remaining references to systemInfo, systemProc, or updateKeyValue.
  • test/shell.d/bar-test.sh passes. ./test/shell has the same 7 failing files as a clean quattro checkout (config, kernel-headers-migration, omarchy-kernel-migration, passwordless-grant-lifecycle, screenshot-sanity, snapper, unowned-system-paths).
  • Before: on the packaged 4.0.4 shell, opening the power panel for about 11 seconds started omarchy-system-stats 6 times.
  • After: ran the shell from this branch (quickshell -n -p <checkout>/shell) and opened the power panel for the same time. It renders as before (battery details and the power-profile buttons), omarchy-battery-status and omarchy-powerprofiles-list still run, omarchy-system-stats never starts, and the shell log has no QML errors.

🤖 Generated with Claude Code

@omarchybot omarchybot added the bug Something isn't working label Sep 27, 2026
@llstrk

llstrk commented Sep 29, 2026

Copy link
Copy Markdown

Automated AI review

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

Outcome: The user manual still says the Power panel prints system info, which this PR removes from the manifest and the bar README.

Manual still promises system info

manual/05-the-top-bar.md line 55 says the Power panel "prints some system info". That is the same promise this PR removes from manifest.json and the bar README. Impact: the published user docs keep describing rows the panel does not show, the same mismatch reported in #13374.

Suggested change: change the line to - **Power** shows battery stats and switches power profiles (it remembers a separate choice for battery and AC).

Reproducer (fails at 14a81e5, passes with the suggested line)

Reproducer: the user manual still says the Power panel prints system info

Reviewed head: 14a81e57a2034ea6bf5868324af406e5e78d425d (PR #13379).

Quick check

grep -n 'system info' manual/05-the-top-bar.md

Output at the PR head:

55:- **Power** shows battery stats, switches power profiles (it remembers a separate choice for battery and AC), and prints some system info.

Test case in the style of test/shell.d/power-test.sh

Add these two lines at the end of the run_node_test block (just before the closing JS):

const manual = fs.readFileSync(root + '/manual/05-the-top-bar.md', 'utf8')
assert(!/^- \*\*Power\*\*.*system info/m.test(manual), 'manual does not promise system info in the power panel')

Run:

bash test/shell.d/power-test.sh

Actual output at the PR head (last three stdout lines, then stderr), exit status 1:

ok - power spans the open-panel mark across the painted percentage block
ok - power exposes togglePercentage over IPC
ok - power owns its IPC handler so it can extend the target methods
not ok - manual does not promise system info in the power panel

With line 55 changed to - **Power** shows battery stats and switches power profiles (it remembers a separate choice for battery and AC)., the same test ends with the following and exits 0:

ok - power exposes togglePercentage over IPC
ok - power owns its IPC handler so it can extend the target methods
ok - manual does not promise system info in the power panel
Other open PRs for this issue
  • Show CPU and memory stats in the Power panel #13653: restores CPU and memory rows fed by omarchy-system-stats into systemInfo instead of removing the fetch. Its head also carries an unrelated Windows VM setgid commit. With both merged, git reports no conflict and power-test.sh passes, but the panel reads a systemInfo property this PR deletes, so only one of the two approaches can work.

Merging both (not run in Quickshell; the runtime effect is inferred):

Reproducer: #13379 and #13653 merge cleanly together, tests pass, and the panel reads a removed property

Trees: quattro at b421b1b479ee9ea0863792282eee4ffeb50923dc, #13379 at 14a81e57a2034ea6bf5868324af406e5e78d425d, #13653 at 85b94cd28308865c8dfbf1c5c7315bf77440ec1f.

git fetch origin quattro pull/13379/head:pr-13379 pull/13653/head:pr-13653
git switch -c try-both origin/quattro
git merge --no-edit pr-13379
git merge --no-edit pr-13653
grep -n 'systemInfo\|omarchy-system-stats' shell/plugins/panels/power/Panel.qml
bash test/shell.d/power-test.sh

Actual output of the first merge:

Auto-merging shell/plugins/panels/power/Panel.qml
Merge made by the 'ort' strategy.
 shell/plugins/bar/README.md              |  2 +-
 shell/plugins/panels/power/Panel.qml     | 15 +++------------
 shell/plugins/panels/power/manifest.json |  4 ++--
 3 files changed, 6 insertions(+), 15 deletions(-)

Actual output of the second merge:

Auto-merging bin/omarchy-windows-vm
Auto-merging shell/plugins/panels/power/Panel.qml
Auto-merging test/shell.d/windows-vm-compose-test.sh
Auto-merging test/shell.d/windows-vm-mount-boundary-test.sh
Merge made by the 'ort' strategy.
 bin/omarchy-windows-vm                         |  9 +++++++--
 shell/plugins/panels/power/Panel.qml           | 21 +++++++++++++++++++++
 test/shell.d/power-test.sh                     |  3 +++
 test/shell.d/windows-vm-compose-test.sh        |  9 +++++++++
 test/shell.d/windows-vm-mount-boundary-test.sh | 12 ++++++++++++
 test/shell.d/windows-vm-test.sh                | 24 ++++++++++++++++++++++++
 6 files changed, 76 insertions(+), 2 deletions(-)

Actual grep output on the merged tree (no property var systemInfo and no omarchy-system-stats process remain; the only omarchy-system-stats match is a comment):

446:        // Fed by omarchy-system-stats into systemInfo; keep the section visible
449:          visible: root.systemInfo.cpu !== undefined || root.systemInfo.memory !== undefined
456:            InfoPair { label: "CPU"; value: root.systemInfo.cpu || "—" }
462:            InfoPair { label: "Memory"; value: root.systemInfo.memory || "—" }

bash test/shell.d/power-test.sh on the merged tree exits 0; its last lines are #13653's new assertions:

ok - power fetches system stats
ok - power renders CPU from systemInfo
ok - power renders memory from systemInfo

power fetches system stats passes because the regex /omarchy-system-stats/ matches the comment on line 446. Merging in the other order (#13653 first) gives the same Panel.qml.

Not run: loading the merged panel in Quickshell. The expected runtime effect (binding TypeErrors when root.systemInfo is undefined, and a CPU/Memory row without values) is inferred from QML semantics, not observed.

Details

Verified:

  • The removed code was dead: nothing reads systemInfo or calls updateKeyValue at the head, including the IPC handler and shell call.
  • The keep-last-good-data guard and the profile flow are unchanged.
  • The PR merges cleanly onto the current quattro, and power-test.sh, bar-test.sh and related plugin tests pass there.
  • 74f7123 removed the panel's SYSTEM section and left the fetch in place.

Overlapping PR: #8579 (battery health controls) edits the same three files and manual line 55. It adds a limit branch to updateKeyValue, which this PR renames to updateBatteryInfo(raw), and its new descriptions keep "system stats" and "system info". Git reports conflicts in all three files, so whichever lands second needs to keep the limit handling and settle the descriptions, including manual line 55.

Optional test improvement: assert(!/omarchy-system-stats/.test(panelSource), 'power does not fetch system stats it no longer shows') in power-test.sh fails at the merge-base and passes at the head, so it would catch a reversal. It is a source regex, so it also matches comments.


Review information

Test scope: Source review and sandboxed shell tests at 14a81e5, including merges with quattro and #13653; the panel was not run in Quickshell.

AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.

Opt out: To stop receiving these reviews, reply to this comment saying so.

@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 3, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed, and this is the right fix for #13374: the CPU and memory rows were deleted in 74f7123, so finishing the removal fits better than restoring them, and nothing else reads systemInfo, systemProc or updateKeyValue.

Two commits pushed to your branch:

  • 11642bc drops "prints some system info" from the Power line in manual/05-the-top-bar.md, which still promised what the manifest and bar README no longer do (also raised in the community review above).
  • 241b500 adds one assertion to test/shell.d/power-test.sh that the panel no longer references omarchy-system-stats or systemInfo, so the fetch cannot quietly come back.

Checked on a disposable Omarchy worker VM. The new assertion fails on quattro (a85e29a) and with your commit reverted, and passes at 241b500 and with the branch merged onto current quattro. power-test.sh (23 passed) and bar-test.sh (88 passed) pass on both. The shell loaded from the merged tree with no QML errors. The worker has no battery, and the panel only refreshes when one is present, so I did not watch the refresh run. ./test/cli and ./test/shell fail at this head, but every failure also fails on quattro, and none of them involve the power panel.

Codex Medium reviewed the final head and found no defects; it agreed with the conclusions here, and its independence is not guaranteed. It also claimed that the existing IpcHandler assertion fails on current quattro. That does not hold: the regex matches the word in the comment on line 13, and the test passed on the merged tree. Asked separately to compare this PR with #13653, which restores the rows instead, Codex Medium preferred this one for the same reason.

#13653 competes with this for the same issue, and #8579 (battery health controls) edits the same three files and will conflict with whichever lands second. Waiting on the maintainer.

@greptile-apps

greptile-apps Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Low impact] The PR appears safe to merge; the changed descriptions match the current panel.

Summary

The PR removes outdated system-stats descriptions from the power widget manifest, bar README, and top-bar manual. The manual’s updated description matches the current power panel.

Reviews (5) · Last reviewed commit: "Stop the manual promising system info in..." · Reviewed by Greptile

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review and removed verified Omarchy Triage has verified that this issue is ready for final review labels Oct 31, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch had stopped merging cleanly with quattro, so I merged current quattro (7eedd17) into it as 4fe5860. The only conflict was in test/shell.d/power-test.sh. quattro removed every assertion there that only reads the panel's source (#16334), including the omarchy-system-stats|systemInfo check I added to this branch earlier, so the file now matches quattro. Your change is otherwise as you wrote it.

I checked 4fe5860 on a disposable Omarchy worker VM. The worker has no battery, so I forced the panel's battery check on in a scratch copy that was never pushed, and logged every start of omarchy-system-stats. With the panel open for 11 seconds, it started 3 times on quattro, never at this head, and 3 times with your Panel.qml change reverted. The shell loaded from this tree with no power panel errors in its log. power-test.sh (20 passed), bar-test.sh (240) and i18n-test.sh (401) pass. ./test/shell fails in 5 of 413 files (agent-account-exec, ascii, branding-about-animation, first-run, runtime-smoke). Each of the 5 fails the same way on a clean quattro checkout, and none of them involve the power panel.

Codex Medium and muse-wonder (via pi, thinking high) reviewed 4fe5860 and found no defects. They agreed that dropping the source-text assertion fits quattro's test rules, and that this PR should be preferred over #13653, which restores the CPU and memory rows instead. Independence from my review is not guaranteed. The translated manuals still describe the old Power line; the translation sync updates them from the English manual.

#13653 still competes with this for #13374, and #8579 (battery health controls) edits the same panel. Choosing between them is the maintainer's call. Waiting on the maintainer.

@benwillems
benwillems force-pushed the fix-power-panel-stale-stats branch from 4fe5860 to f71fc8a Compare November 10, 2026 13:53
@benwillems

Copy link
Copy Markdown
Author

Rebased onto current quattro (replayed the two remaining commits; dropped the power-test assertion that quattro later removed in #16334). test/shell.d/power-test.sh passed.

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review and removed verified Omarchy Triage has verified that this issue is ready for final review labels Nov 11, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for the rebase, @benwillems. I checked the new head, f71fc8a, again from scratch. The change is the same one reviewed at 4fe5860, and it merges cleanly with current quattro (3b36b9e).

I ran it on a disposable Omarchy worker VM. The worker has no battery, so in scratch copies that were never pushed I forced the panel's battery check on and logged every start of omarchy-system-stats. With the panel open for 11 seconds, omarchy-system-stats started 3 times on current quattro, never at this head, and 3 times at this head with your Panel.qml change reverted. At this head omarchy-battery-status started 3 times in the same 11 seconds, which shows the panel was open and refreshing. The shell logged no power panel errors.

power-test.sh (20 passed), bar-test.sh (240) and i18n-test.sh (401) pass at this head. ./test/shell fails in 5 of 421 files. ascii, branding-about-animation, first-run and runtime-smoke fail the same way on a clean quattro checkout. network-panel-runtime fails on this branch's base, ec62d37, and passes once the branch is merged into current quattro, where the power, bar and i18n tests also pass. None of the five involve the power panel.

Codex Medium and muse-wonder (via pi, thinking high) reviewed f71fc8a and found no defects. Both confirmed that nothing else reads systemInfo, systemProc or updateKeyValue, that the empty-result guard is kept, and that the three descriptions now match the panel. Independence from my review is not guaranteed. Both also pointed out that #13374 asked for the CPU and memory rows to be shown again. This PR closes #13374 by removing the dead fetch instead, and whether that settles the issue is the maintainer's call. The translated manuals still carry the old Power line; i18n-sync updates them when manual/*.md changes on quattro.

#13653 still competes with this for #13374 by restoring the rows, and #8579 (battery health controls) edits the same panel. Choosing between them is the maintainer's call. Waiting on the maintainer.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Nov 21, 2026
@cursor
cursor Bot force-pushed the fix-power-panel-stale-stats branch from f71fc8a to 99379a0 Compare November 22, 2026 17:51
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed the rebased head 99379a038 against quattro at c79f6930. No code defects found, and nothing was pushed.

On a disposable Omarchy ISO worker, opening the power panel for 16 seconds started omarchy-system-stats four times on base, zero times at this head, and four times with the Panel.qml change reverted. The battery and profile helpers each started four times in every case, confirming the panel was refreshing. These scratch copies forced only batteryPresent and logged calls before executing the real helpers; this verifies the unused-process removal, not battery hardware. There were no power-panel QML warnings.

On the pristine head, the CLI suite passed all 136 checks, and the power (25) and bar (233) tests passed. The i18n structural checks passed, with the translation-completeness check skipped. The full shell suite failed in 4 of 438 files: ascii, branding-about-animation, provision-owner-keyboard and runtime-smoke. Each failed at the same assertion on clean quattro. Six files included skipped checks. The fix has regained verified; ready is withheld because the full suite is not green.

GPT-6 High in Codex reviewed this with Opus 5.5 High and muse-wonder via pi, thinking high. Both reviewers found no defects and agreed with the removal; independence from my review is not guaranteed. #13653 restores the CPU/memory rows this removes, so they remain alternative resolutions of #13374 for the maintainer to choose between. #8579 also changes this panel's data handler. Waiting on the maintainer.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Nov 23, 2026
benwillems and others added 2 commits December 2, 2026 11:31
The CPU/memory rows were dropped from the power panel in 74f7123, but it
kept running omarchy-system-stats on every refresh and still described
itself as showing system stats.

Fixes omacom#13374

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cursor
cursor Bot force-pushed the fix-power-panel-stale-stats branch from 99379a0 to 9d0618f Compare December 2, 2026 11:32
@omarchybot

Copy link
Copy Markdown
Collaborator

Recommend: Hold — classification is unsettled and needs a maintainer decision.

I checked the diff at 9d0618ff and the Power panel on quattro. #20126 removed the unused omarchy-system-stats polling. This revision updates the manual, bar README, and two plugin descriptions. GPT-6.2 Sol High in Codex classified the change as documentation, and DeepSeek V4.1 Flash in pi classified it as a bug. No worker tests ran for this classification.

@omarchybot omarchybot removed the bug Something isn't working label Dec 2, 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.

Power panel doesn't show CPU/memory system stats despite manifest description

3 participants