fix(daemon): lead wait timeout surface summary with static text
Fixes #5332
Summary
The Current surface: summary on a timed-out wait ranked every labelled, non-chrome node equally and ordered them by position, so header controls (toolbar, notification button, search field, filter tabs) filled all four slots before the error or empty-state text further down. surfacePriority now ranks static text (StaticText / Android TextView) ahead of other labelled controls. Chrome and unlabelled nodes keep ranking last. This is option 1 from the issue. Toolbar/navigation bars are not added to the chrome markers, because a navigation bar often carries the screen title. Buttons are still listed in details.buttons, so modal actions stay visible.
Before / after
Using the node tree from the issue:
before: Current surface: Toolbar, Notifications, Search for Chats, All.
after: Current surface: Could not load chats, Toolbar, Notifications, Search for Chats.
Validation
New test in wait-current-surface.test.ts uses the issue's tree. It fails on main and passes with the fix. The existing "prefers content labels over chrome" test passes unchanged, so the labels order for that case is the same. oxlint, oxfmt and tsc --noEmit are clean for the touched files.
This change was prepared with AI assistance.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.