Skip to content

fix(menubar): stop popover flash by keeping WebView warm#97

Merged
prakersh merged 1 commit into
onllm-dev:mainfrom
yesme:fix/menubar-popover-flash-warm-webview
Jul 23, 2026
Merged

fix(menubar): stop popover flash by keeping WebView warm#97
prakersh merged 1 commit into
onllm-dev:mainfrom
yesme:fix/menubar-popover-flash-warm-webview

Conversation

@yesme

@yesme yesme commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Opening the macOS tray popover reloaded /menubar on every click, so WKWebView briefly showed a blank shell before the page re-initialized (visible flash).

Fix

  • Preload the menubar page when the companion starts
  • Skip full navigation when the same URL is already loaded
  • Soft-refresh snapshot data via JS (window.__onwatchMenubarRefresh) when reopening

Test plan

  • Click tray icon to open popover — no blank-page flash
  • Close and reopen — content stays warm; data still updates
  • First open after menubar start still works (preload path)
  • Dashboard open / quit still work from tray menu

Opening the tray popover reloaded /menubar every time, so WKWebView
showed a blank shell then re-painted. Preload the page at menubar
start, skip full navigation when the URL is already loaded, and soft-
refresh snapshot data via JS when reopening.

Co-authored-by: Grok 4.5 (high effort) <302482056+a-grok-build-bot[bot]@users.noreply.github.com>
@yesme
yesme force-pushed the fix/menubar-popover-flash-warm-webview branch from e5f2355 to bfcfce9 Compare July 14, 2026 21:41
@prakersh
prakersh merged commit 73ffd8e into onllm-dev:main Jul 23, 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