Repository navigation
Conversation
A card showed its button bar from place.front, but placements depends on every card's height, and showing the bar changes that card's height: shown -> targetHeight -> noteHeight -> land -> layout -> placements -> place -> shown. Qt cut the cycle with "Binding loop detected" warnings for layout, placements and shown during ordinary notification use. Which card leads a deck depends only on row order, so the service now gives each card a front flag from Layout.fronts(), read from the live rows without heights or layoutRevision. Leaving cards keep their departure's flag, as before.
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryThis PR separates notification button visibility from height-dependent card placement to break the reported binding loop.
No actionable new issues were found. Tests were not run during this review. Local visual verification was blocked by the missing Qt/Quickshell runtime.
|
|
I read the four-file diff at Classification is incomplete: I classified this as a bug fix, but the configured DeepSeek V4.1 Flash classifier returned no usable class, so the required two-model classification has not completed. Worker verification and the second implementation review were skipped at this stage; no tests ran and no changes were pushed. Further verification waits for classification to be resolved. |
|
The stacked-card path is fixed at On disposable Omarchy ISO workers with real Hyprland sessions, I sent four same-app critical notifications with Open/Edit actions and dismissed them front-first, three rounds. That logged 57 binding-loop warnings at this branch’s fork point and zero at this head. Today’s The remaining case is a 1280×800 display with 16 same-app cards: enter notification keyboard mode and press Down until selection reaches the bottom. This head logged #18758 defers that height callback and covers both paths. On a fresh worker at its full head GPT-6 High in Codex, Opus 5.5 High, and muse-wonder via pi (thinking high) reviewed the comparison. Opus identified the keyboard reach-back case before the worker reproduced it. Their source comparison used the supplied pinned diffs. A final recheck against a fixed checkout was terminated before returning a report; both reviewers still answered the availability check afterwards. Their agreement is not guaranteed to be independent of this review. I have not added These settled-state captures show that the two-card stack retains its appearance; the journal comparisons above establish the warning difference. |
|
@dhh @omarchybot breaking the placement binding loop through a card's own height is in #21030, together with the deferred size updates from #20926. The animation snapshot now reads Please consider closing this as superseded only after #21030 is accepted. Leaving the close to you. |
|
The December 1 overlap is real. #21030 included this front-card change and closed without merging. The current diff still reports size changes synchronously when keyboard selection expands a card, which produced the GPT-6.2 Sol High in Codex, Opus 5.5 High and muse-wonder via pi, thinking high checked the diffs and agreed on that distinction. The reviewers may have seen earlier findings. Prior worker runs for #20926 recorded zero binding-loop warnings during notification delivery, dismissal, and expansion. This pass used source and those earlier worker results. The exact 16-card keyboard sequence has yet to be run on #20926. This PR stays open for the maintainer to choose between the fixes. |


What changes
Stacked notifications log
Binding loop detectedforlayout,placementsandshown(Service.qml:521,Service.qml:545,Toast.qml:532) during ordinary use.A card showed its button bar from
place.front, butplacementsdepends on every card's height, and showing the bar changes that card's height:shown→targetHeight→noteHeight()→land()→layoutRevision→layout→placements→place→shown. Qt cuts the cycle mid-evaluation.Which card leads a deck depends only on row order, so the service now passes each card a
frontflag from a newLayout.fronts(), computed from the live rows without heights orlayoutRevision. Leaving cards keep their departure placement's flag, as before.layoutWith()'s live-row filter moves intoliveRows()so both share one definition of which cards count.Verification
bash test/shell.d/notifications-test.shpasses. The new check assertsLayout.fronts()marks the same cardscompute()marks front (collapsed, expanded, one deck open); it fails onquattro, wherefronts()does not exist.liveRowsis added to the keyboard test's lifted functions, which uselayoutWith().omarchy-dev-notification-demologged 4 binding-loop warnings before (layout1,placements1,shown2) and 0 after, with no QML errors.Screenshots
Front card with its buttons, the older card stacked behind without them (after the change):
