Skip to content

gnome: adaptive refresh cadence parity with the menubar - #1754

Open
notlakshitha wants to merge 1 commit into
getagentseal:mainfrom
notlakshitha:feat/gnome-adaptive-refresh
Open

notlakshitha wants to merge 1 commit into
getagentseal:mainfrom
notlakshitha:feat/gnome-adaptive-refresh

Conversation

@notlakshitha

Copy link
Copy Markdown

Summary

  • The GNOME panel no longer polls on a fixed timer. It uses the macOS menubar intervals: 30s while the menu is open or a live session is still working, 120s when idle on AC, 150s on battery, and 300s in power saver.
  • The Refresh Interval setting still applies. It caps the active poll (a shorter value is kept) and is kept when it is already slower than the idle floor.
  • Opening the menu fetches immediately. The 5-minute payload cache still covers period and provider switches. A machine that does not answer UPower stays on the AC intervals, and the panel keeps polling while the session is locked. The macOS App Nap backstop (180s, 60s tolerance) is not armed, because GNOME Shell does not nap the extension.
  • The cadence is documented in gnome/README.md.

Closes #892

Testing / Verification

  • I have tested this locally against real data (not just unit tests)
  • npm test passes
  • `npm run build succeeds
  • Not a UI change
  • UI change: before and after screenshots attached below

npm test: 5203 tests passed, 24 skipped. npx tsc --noEmit passed. npm run build (CLI bundle and dashboard) succeeded. The new cadence cases are in tests/gnome-refresh-cadence.test.ts`. I have not run it in a live GNOME Shell session yet, so a check against the macOS behaviour would be appreciated.

Poll quickly while the menu is open or a session is working, and stretch
the interval when idle, on battery, and in power saver, using the same
numbers as the macOS menubar. The App Nap backstop is not armed, because
GNOME Shell does not nap the extension.

Co-authored-by: Lakshitha Deshan (ReadY) <notlakshitha@gmail.com>
@ozymandiashh ozymandiashh added area: docs README and docs/ content area: gnome The GNOME Shell extension enhancement New feature or request needs-real-data-proof PR needs screenshot or output proving it works against real data needs-validation PR requires validation against real-world usage before review labels Oct 13, 2026

This branch has not been deployed

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

Labels

area: docs README and docs/ content area: gnome The GNOME Shell extension enhancement New feature or request needs-real-data-proof PR needs screenshot or output proving it works against real data needs-validation PR requires validation against real-world usage before review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gnome: adaptive refresh cadence parity with CLI and macOS menubar

2 participants