Skip to content

Add a Reload window command to the quick palette - #5245

Merged
andrewkchan merged 1 commit into
mainfrom
add-reload-window-palette-command
Oct 9, 2026
Merged

andrewkchan merged 1 commit into
mainfrom
add-reload-window-palette-command

Conversation

@andrewkchan

@andrewkchan andrewkchan commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

This just adds the "View > Reload" button to the quick palette, I run this all the time in VSCode

What was wrong

The desktop app can reload its window from View > Reload and Cmd+R, but the quick palette had no command for it, so there was no keyboard-searchable way to reload the window.

What changed

  • packages/domain: new window.reload app command ID.
  • apps/server: desktop-only, unassigned default keybinding for window.reload (mainSurface, not modalOpen). No default shortcut, so it does not compete with Cmd+R, which already means "reload the embedded browser tab" when the browser has focus.
  • apps/app: palette metadata ("Reload window" in "Window and layout") and a useWindowReloadCommand hook registered in AppLayout. The command is only available when the desktop bridge exposes reloadWindow, so it is hidden on web and mobile.
  • packages/desktop-contract / apps/desktop: new optional BbDesktopApi.reloadWindow() sent over a bb-desktop:reload-window IPC channel. Main only accepts it from an application window's main frame, then calls reloadApplicationWindow(). That function is extracted from the existing menu and Cmd+R handlers, which now use it too, so all three reload paths hide embedded browser views via prepareWindowReload before reloading.

No server/daemon wire changes.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/desktop --filter=@bb/server passes.
  • Vitest: app keybindings, command palette, SettingsView.palette-preview and useServerDaemonLogsCommand tests in @bb/app; menu, preload-browser-api, preload-build and desktop-reload-shortcut in @bb/desktop; system/app-keybindings in @bb/server; plugin-app-commands in the plugin SDK. All pass.
  • Not yet exercised manually in the running desktop app.
  • .bb/skills/verify-bb/scripts/inventory.py already fails on main (unmapped browser CLI family), so the inventory was not regenerated for the new app action.

AGENT GENERATED

🤖 Generated with Claude Code

The desktop app can reload its window from View > Reload and Cmd+R, but
the quick palette had no entry for it. Add a desktop-only window.reload
app command that asks the main process to reload the sender's window
through the same reloadApplicationWindow path the menu and shortcut use,
so embedded browser views are still hidden before the reload.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@andrewkchan
andrewkchan merged commit 9a47d42 into main Oct 9, 2026
47 of 48 checks passed
@andrewkchan
andrewkchan deleted the add-reload-window-palette-command branch October 9, 2026 06:38
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.

1 participant