Skip to content

Load platform FileViews without binding loops - #15298

Merged
dhh merged 2 commits into
quattrofrom
fix/binding-loops-fileview
Oct 14, 2026
Merged

dhh merged 2 commits into
quattrofrom
fix/binding-loops-fileview

Conversation

@dhh

@dhh dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

What

Every shell start warned:

Binding loop detected for property "hints"        (Commons/AudioNodes.qml)
Binding loop detected for property "displayCutouts" (plugins/bar/Bar.qml)

Both were readonly bindings reading text() and the missing flag their own FileView load handlers write. This keeps the synchronous startup read (blockLoading: true, so the bar still knows its cutouts before it maps) but drops the missing ternary from the binding, and keeps both properties current imperatively from onLoaded/onLoadFailed — a removed file still describes/hides nothing.

Adds a runtime-smoke check that shell start has no binding loop for either property, so new ones fail. Source-wiring asserts in bar-notch-test.sh/audio-test.sh updated to the imperative form at the same strength.

Verification

  • Smoke log before: both loops present. After: neither; ok - shell start has no platform FileView binding loops.
  • bar-notch-test.sh (95 checks) and audio-test.sh pass.
  • Codex review: first pass caught that an onLoaded-only load would defer the cutout read past bar mapping on fractionally scaled notched displays; fixed by restoring the synchronous initial read. Second pass: no actionable regressions.
  • Note: the smoke file still fails its later bar put check on this branch — that is the separate test-side fault fixed in Fix runtime-smoke bar put by putting a widget the default bar lacks #15297. A third loop (Panel.opened, power panel) also remains in the log and is left for its own PR.

From plans/overnight-quality.md §3 (binding loops).

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous finding is fixed and no new actionable issues were found.

Summary

The PR removes the platform FileView binding loops while keeping synchronous startup reads and updates when files change.

  • Audio hints and bar cutouts load without startup binding loops.

Reviews (2) · Last reviewed commit: "Assert the synchronous platform FileView..." · Reviewed by Greptile

Comment thread test/shell.d/bar-notch-test.sh Resolved
@dhh

dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Greptile P2 addressed in the latest commit: the source-wiring checks now also assert the synchronous startup initializers (property var displayCutouts: BarModel.parseCutouts(displayCutoutsFile.text()) and the matching hints initializer), so replacing them with an empty/late value fails. bar-notch and audio tests pass.

dhh added 2 commits October 14, 2026 03:34
AudioNodes.hints and Bar.displayCutouts were readonly bindings reading
text() and the missing flag their own load handlers write, which QML
reports as a binding loop on every shell start. Follow the Color.qml
loader pattern instead: plain properties updated from onLoaded /
onLoadFailed (a removed file still describes nothing).

Add a runtime-smoke check that shell start has no binding loop for
either property, and update the source-wiring asserts in bar-notch and
audio tests to the imperative form at the same strength.
Greptile: the handler checks alone would still pass if the startup
initializer were replaced with an empty value, supplying cutouts too
late for the first bar mapping. Pin the synchronous initializers
too.
@dhh
dhh force-pushed the fix/binding-loops-fileview branch from 75b0774 to 8f12424 Compare October 14, 2026 01:34
@dhh
dhh merged commit 00a8a63 into quattro Oct 14, 2026
@dhh
dhh deleted the fix/binding-loops-fileview branch October 14, 2026 06:03
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants