Repository navigation
Conversation
|
|
Reviewed and tested at 82eb1f6. Nothing found that needs changing. The bug, reproduced. I wrote my own reproduction on a worker built from the Omarchy ISO, separate from the test in this pull request. It loads the real sampler code from The suite, on the same worker with the shell running from this branch: Review. I traced the new request-serial and pending logic, and I found no way a request is lost, stale output is applied, or a failed sample retries in a loop. If transparency is turned off during a sample, the result is discarded. The Related. #14148 fixes the same issue a different way. This pull request is older, and it covers cases that one does not: it marks the running sample stale as soon as a new request arrives, it resamples when only the bar size changes, and it keeps resampling when only the wallpaper symlink changes. #14148 adds something this one doesn't have: a background-plugin property that lets the bar sample once per theme switch, against the wallpaper actually on screen. That would make sampling cheaper but isn't needed for correctness, so it's left for the maintainer to decide on separately. Codex Medium reached the same conclusion when asked to compare the two without seeing mine. This now waits on the maintainer. |
|
Fixed the lifecycle fixture in 4bf1abe. It now qualifies the theme Color singleton for Qt 6.12 and waits for shell.toml to supply the configured bar size. The geometry extraction also stops after the two bindings it needs. All 13 lifecycle scenarios pass, including against a clean merge with current quattro (4c1b4cb). Replacing only the sampler with its pre-fix production code still fails on stale output and the missing retry. The bar contract and text-colour tests pass too.
@greptileai please re-review 4bf1abe and update the confidence score. |
|
Re-reviewed and re-tested at 4bf1abe. Nothing found that needs changing. What changed. The new commit only touches the test fixture: it waits for Tested against current Review. Codex Medium also found no defects. It checked that the merged sampler matches the one reviewed before. It also confirmed that #14148 still competes with this one, and what I said about it above still applies. This now waits on the maintainer. |
|
Independent reproduction and validation of this fix on NixOS 26.11, Omarchy 4.5.0, Qt 6.12.0 and Hyprland 0.57.0 (Framework AMD laptop, three displays). The transparent bar retained Catppuccin's pale foreground after switching to Catppuccin Latte: workspace numbers, network and other bar icons became nearly unreadable against the light wallpaper. Restarting the shell restored the correct colors. The installed Bar.qml still contains the early return that drops refresh requests while a sample is running. I ran this PR's real Quickshell Process lifecycle fixture against the installed 4.5.0 Bar.qml, using the installed Qt/Quickshell binaries. Before the patch it fails: With this PR's sampler changes applied to that same file, all 13 scenarios pass: foreground, contrast, position, orientation, size, orientation-size, background, rapid, toggle, off, failure, early and failure-latest. I also cherry-picked the three PR commits onto current quattro (3f974d0); all 13 scenarios pass there too. Existing bar-test.sh and bar-text-color-test.sh pass. The patch applies to our packaged 4.5.0 with This is validation of Szymon's existing fix, not a competing implementation. We're carrying it locally while awaiting upstream merge. The deterministic fixture establishes the dropped-request race; the original incident did not have per-sample tracing enabled. |
A theme or wallpaper refresh arriving during transparent-bar foreground sampling can be dropped, leaving the previous palette applied indefinitely. Keep the newest request pending, reject stale output when inputs change and retry after the running process exits while retaining the debounce. A failed sample without a newer request remains quiet.
Validation: the controlled real Quickshell Process fixture reproduces the baseline race and verifies the candidate discards stale output and runs a replacement sample. Offscreen lifecycle scenarios cover both palette colors, bound bar position/size, transparency and the actual wallpaper FileView/Style watcher path. Existing bar/text-color checks pass; live baseline/candidate fixtures and a recording were inspected. The full-suite runs reproduce baseline/environment failures also seen on clean
quattro; they are not fully green. Focused regressions pass.Related fix
#14148 also addresses #10289. I recommend landing this PR and then retiring the overlapping change. An independent contributor reproduced the dropped refresh on the packaged 4.5.0 shell, ran all 13 sampler scenarios against the backport and current
quattro, and verified the light/dark switch on a three-display NixOS setup. Independent verificationFixes #10289.