Repository navigation
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable new issues were found. SummaryThe PR defers notification size updates to avoid binding loops while preserving arrival sizes and instant dismissals.
No actionable new issues were found. No previous review threads were supplied. Tests were not run during this review. Reviews (2) · Last reviewed commit: "Keep a revived toast's deferred size" · Reviewed by Greptile |
|
your commit is in #21025. the placement binding loop fix is on the notification service, next to the countdown border from #20998. the notification logic checks passed here. the state-directory setup then hit chmod --, which this Mac's chmod does not accept. @dhh @omarchybot if 21025 lands, this can close as superseded. |
|
@dhh @omarchybot deferring placement updates that arrive mid-layout is in #21030. The size test loads Please consider closing this as superseded only after #21030 is accepted. Leaving the close to you. |
Hold a leaving card's latest measurement until it closes or is revived. A replacement that changes only notification metadata can then use the unhovered size without another measurement signal. Co-Authored-By: GPT-6 High in Codex <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 High <noreply@anthropic.com>
|
On an Omarchy ISO worker running Hyprland, the same notification bursts, dismissals, and deck expansion logged 62 binding-loop warnings on With animations enabled, a same-ID replacement during dismissal revived a compact toast at its old hover width. I compared the diffs with #17951 and #18758. #17951 addresses the button visibility dependency, and #18758 defers height updates on the older layout. This PR defers both dimensions on current GPT-6 High in Codex ran the worker checks. Opus 5.5 High identified the revival case, and Opus 5.5 High and muse-wonder via pi at high effort reviewed the corrected commit and found no remaining defects. They may have shared context with this review. The full suite hit the same four assertions on the final head and its fork point, in agent resume, audio panel opening, the provisioning keyboard test, and runtime smoke. The test and translation workflows on GitHub are waiting for maintainer approval. |


What changes
omarchy-shellloggedBinding loop detected for property "placements"(Service.qml:572:3),"layout"(Service.qml:547:3), and"shown"(Toast.qml:578:7) during notification waves, deck expansions, hover/sole changes, and dismissals.Toastbindsplace,drawnWidth, anddrawnHeighttoplacements(viaservice.at(...)) and calledservice.noteSize()synchronously fromonTargetWidthChanged,onTargetHeightChanged,Component.onCompleted, andonShowingNotificationsChanged. Whenevertoasts,expanded,sole,leaving, orhoveredupdatedToastsizes during an activeplacements/layoutnotification,noteSize()readplacementsinsnapshot()and incrementedlayoutRevision += 1mid-evaluation.shell/plugins/notifications/Service.qml:queueSize()/flushSizes()/applySizes()/jumpedSinceMoveso non-arrivingToastsize changes defer toQt.callLaterinstead of re-enteringsnapshot()andlayoutRevisionsynchronously. Arriving cards (key === arriving) still measure in place, queued updates for closed orleavingcards are dropped, andjumpedSinceMovekeeps instant keyboard dismissals jumping (clearing influshSizes()andlanded()so subsequent resizes animate).landinginshowRow()withservice.layoutWith(service.expanded, service.openDeck)so arriving cards snapshot their freshly measured height/width even iflayoutevaluated duringtoasts.insertbeforeComponent.onCompleted.finishClose(), removed the model row (toasts.remove(at)) beforeunmarkLeaving(key)solayoutnever briefly sees a closing card as live and front again.test/shell.d/notifications/logic.cjs: AddedlayoutWithtonewCapacityScopeand liftedService.qmlunit tests verifying zero re-entrantplacements/layoutRevisionreads duringleavingupdates, batching, instant-dismissal jump + flag clear, and dropping queued sizes for leaving cards.test/shell.d/fixtures/notifications-layout/shell.qml&test/shell.d/notifications-test.sh: Added a realquickshellfixture (behindrequire_quickshell+dbus-run-session) exercising a 4-card action wave, animated close, instant dismissal,expanded/hovered/soletransitions with dynamic-width cards, and asserting 0Binding loop detectedwarnings and settled card dimensions.Verification
536592fd0:notifications/logic.cjsfails withoutqueueSize, andtest/shell.d/fixtures/notifications-layout/shell.qmlfails witharriving card snapshots its measured height (58 vs 93)and 23Binding loop detectedwarnings (placements,layout, andshown).779b4f690:bash test/shell.d/notifications-test.sh— 6/6 pass./test/headless bash test/shell.d/notifications-test.sh— 6/6 pass (0 binding loops)bash test/shell.d/notification-send-test.sh— 30/30 passbash test/shell.d/motion-test.sh— 1/1 passbash test/shell.d/qml-text-format-test.sh— 19/19 passbash test/shell.d/qmllint-test.sh— 153/153 passScreenshots
No visible change: deferring non-arriving size updates to the next tick and reordering
toasts.removebeforeunmarkLeavingpreserves the existing notification deck layout, dynamic sizing, and animation behavior without binding loops.Assisted by Gemini 4 Hydrogen (Reasoning: XHigh)