Quick Send dialog: titlebar styling mismatch, focus/z-order issues
Description
The Quick Send dialog (Ctrl+Shift+O / tray menu -> Quick Send) has several issues compared to other windows (Hub, Canvas, Chat):
1. Titlebar styling mismatch
The Quick Send window does not extend content into the titlebar (AppWindow.TitleBar.ExtendsContentIntoTitleBar), unlike Hub, Canvas, and other windows. This results in:
- The default system titlebar appearing instead of the custom 48px standardized titlebar
- The titlebar does not respect dark mode — it shows a light/mismatched titlebar in dark theme
2. Focus stealing / z-order issues
- The Quick Send dialog stays on top of the z-order and does not light-dismiss
- If the user tries to open the tray icon right-click menu flyout while Quick Send is open, the flyout immediately dismisses because focus returns to the Quick Send dialog
- The only way to dismiss Quick Send is to manually press Escape or click Cancel
Expected behavior
- Quick Send should use the same custom titlebar treatment as Hub/Canvas windows (extend into titlebar, dark mode support)
- Quick Send should either light-dismiss when losing focus, or at minimum not interfere with the tray menu flyout
Environment
- Windows 11 ARM64
- OpenClaw Tray WinUI (WinUI 3 / Windows App SDK 2.0.3)
🤖 This is an automated response from Repo Assist.
Good report — both issues have a clear root cause.
Titlebar mismatch: QuickSendDialog was never opted into the custom titlebar model. ExtendsContentIntoTitleBar is false (the default), so it inherits the system titlebar, which doesn't honour WinUI dark-mode theming. The other windows (HubWindow, CanvasWindow, WebChatWindow) all call SetTitleBar(...) after enabling ExtendsContentIntoTitleBar = true — Quick Send just missed this step.
Focus/z-order interference: The culprit is the Activated handler calling TryBringToFront() on every activation event:
Activated += (s, e) =>
{
TryBringToFront(); // reasserts HWND_TOPMOST + SetForegroundWindow on every activation
RequestInputFocus();
};
RetryFocusMessageInputAsync then re-promotes the window three more times (at 60ms, 160ms, 320ms), so the tray flyout loses activation almost immediately after it opens.
Fix: There is already a draft PR (#285 by @Copilot) that addresses both issues:
- Enables
ExtendsContentIntoTitleBar+SetTitleBar(titleBar)to match Hub/Canvas titlebar treatment. - Removes
IsAlwaysOnTopand the repeated foreground reacquisition, replacing them with a singleOnActivatedhandler that closes the dialog on deactivation (guarded by_isSending).
Worth reviewing #285 — it looks like a clean fix for both items.
Generated by 🌈 Repo Assist, see workflow run. Learn more.
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/repo-assist.md@97143ac59cb3a13ef2a77581f929f06719c7402a