Add a close button to thread panels
A thread opened with Open in New Panel had no way to close it from the panel itself. Its custom title line (title, chips, Share, ⋯) takes the place of the dock tab, and the tab is where the × lives. Clicking the title renames the thread, so the only ways out were right-clicking the empty part of the bar or Move to Main Panel in the sidebar.
The dock now adds a × at the end of the bar whenever a custom header replaces the tab and the panel is closable. It sits after the accessory buttons, shows "Close the tab's × does. The main panel isn't closable, so it never gets one. The guide's Open in New Panel paragraph now mentions the × and Move to Main Panel.
Validation on macOS:
cargo check -p threadbear-gpuipasses on current upstream main (f0b5f665). The cherry-pick conflicted with the newheader_fillsline; both are kept.- On Wayne's fork,
./check.sh --quickpassed with this change (1446 s).
Not yet checked by hand in the running app.
🤖 Generated with Claude Code
Summary by cubic
Adds a close button to thread panels in the dock. Threads opened via Open in New Panel replace the dock tab with a custom header, which removed the tab's ×; the only ways to close the panel were the right-click menu or Move to Main Panel in the sidebar.
The dock now appends a × at the end of the bar whenever a custom header replaces the tab and the panel is closable. It sits after the accessory buttons, shows "Close <!-- End of auto-generated description by cubic. -->