Add up held volume-key steps instead of racing on the volume #19818
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 229 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.325
Real PR Conversation Timeline
1 comments
"Review active on #19818"
general
weight: 0.35
greptile-apps[bot]
Fixes #19085
What changes
Holding the volume keys lost steps when they went through
omarchy-audio-output-volume: key repeat starts a run every 25 ms, one run takes much longer, and each run reads the volume and writes back an absolute value, so overlapping runs overwrote each other and the OSD jumped around.Each run now adds its step to a pending total, and only the run holding an apply lock reads and writes the volume. It keeps applying until the total is empty, and gives the lock up only then, both under the pending lock, so a step that arrives while it works is never left behind. Repeats that arrive mid-run are folded into the next write instead of being queued, so the volume stops moving as soon as the key is released. The OSD is shown after every write, so it keeps counting while the key is held. The mute path is unchanged apart from sharing the OSD helper.
On
quattrothe plain raise/lower keys are handled in the shell foralsa_output.*sinks, so this matters for theALTprecise-step bindings and for any other default sink (Bluetooth, DSP/EasyEffects), which still run the script.Verification
test/shell.d/audio-pactl-test.shwith a slowpactlstub that keeps the volume in a file: ten overlapping-1runs from 50 must land on 40. It fails onquattroand passes with the change; the whole file passes.pactl, 20 runs ofomarchy-audio-output-volume -1started 25 ms / 10 ms apart from 70%:-
quattro: ended at 54% and 60% (4–10 steps lost).- This branch: 50% both times, OSD values strictly decreasing (
69 68 66 63 61 58 56 54 52 50).-1runs from 3% end at 0%.Screenshots
No visible change: the volume OSD looks the same; it now moves monotonically while a key is held.