Skip to content

Stop the tray section host reading its widget after it is gone - #15320

Merged
dhh merged 1 commit into
quattrofrom
fix/tray-sectionhost-destruction
Oct 14, 2026
Merged

dhh merged 1 commit into
quattrofrom
fix/tray-sectionhost-destruction

Conversation

@dhh

@dhh dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

What

Found by the §3 shell log sweep, in every runtime-smoke log:

Tray.qml: TypeError: Cannot read property 'sectionHost' of null

The bar tears the tray's section area down in its own order on a plugin rescan, which can be after the tray widget itself is destroyed — when root is already null and the unregister handler itself faults. This only unregisters while the widget still exists, and pins that in tray-test.sh.

Verification

From plans/overnight-quality.md §3 (shell log sweep).

The smoke log carried: Tray.qml: TypeError: Cannot read property
'sectionHost' of null. The bar tears the tray section area down in
its own order on a plugin rescan, and that can be after the tray
widget itself is destroyed, when root is already null. Only
unregister while the widget still exists.
@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 null guard preserves cleanup while the widget exists.

Summary

Adds a null check before the tray section clears its widget's sectionHost.

  • Tray section cleanup skips unregistering after its widget is gone.

Reviews (1) · Last reviewed commit: "Stop the tray section host reading its w..." · Reviewed by Greptile

@dhh
dhh merged commit 5328732 into quattro Oct 14, 2026
1 check passed
@dhh
dhh deleted the fix/tray-sectionhost-destruction branch October 14, 2026 01:10
@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