Repository navigation
Add a Reload window command to the quick palette - #5245
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: newwindow.reloadapp command ID.apps/server: desktop-only, unassigned default keybinding forwindow.reload(mainSurface, notmodalOpen). 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 auseWindowReloadCommandhook registered inAppLayout. The command is only available when the desktop bridge exposesreloadWindow, so it is hidden on web and mobile.packages/desktop-contract/apps/desktop: new optionalBbDesktopApi.reloadWindow()sent over abb-desktop:reload-windowIPC channel. Main only accepts it from an application window's main frame, then callsreloadApplicationWindow(). 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 viaprepareWindowReloadbefore reloading.No server/daemon wire changes.
How you verified
pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/desktop --filter=@bb/serverpasses.SettingsView.palette-previewanduseServerDaemonLogsCommandtests in@bb/app;menu,preload-browser-api,preload-buildanddesktop-reload-shortcutin@bb/desktop;system/app-keybindingsin@bb/server;plugin-app-commandsin the plugin SDK. All pass..bb/skills/verify-bb/scripts/inventory.pyalready fails onmain(unmappedbrowserCLI family), so the inventory was not regenerated for the new app action.🤖 Generated with Claude Code