From fa58fd3812e2194d15ef65efc7fa328547c69efd Mon Sep 17 00:00:00 2001 From: Bil0000 <62337003+Bil0000@users.noreply.github.com> Date: Fri, 11 Sep 2026 22:15:39 +0200 Subject: [PATCH 1/2] fix(web): honor the right panel shortcut on the PR page --- apps/web/src/routes/_chat.pull-requests.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/web/src/routes/_chat.pull-requests.tsx b/apps/web/src/routes/_chat.pull-requests.tsx index 5a21a2cc37ff..22120691dc57 100644 --- a/apps/web/src/routes/_chat.pull-requests.tsx +++ b/apps/web/src/routes/_chat.pull-requests.tsx @@ -114,7 +114,7 @@ import { WorkspacePageContainer } from "../components/WorkspacePageContainer"; import { WorkspacePageHeader } from "../components/WorkspacePageHeader"; import { isCommandPaletteOpen } from "../commandPaletteBus"; import { isElectron } from "../env"; -import { resolveShortcutCommand } from "../keybindings"; +import { resolveShortcutCommand, shortcutLabelForCommand } from "../keybindings"; import { isTerminalFocused } from "../lib/terminalFocus"; import { PanelLayoutControls } from "../components/chat/PanelLayoutControls"; import { Button } from "../components/ui/button"; @@ -1577,7 +1577,7 @@ function PullRequestsRouteView() { terminalShortcutLabel={null} rightPanelAvailable={rightPanelAvailable} rightPanelOpen={rightPanelState.isOpen} - rightPanelShortcutLabel={null} + rightPanelShortcutLabel={shortcutLabelForCommand(keybindings, "rightPanel.toggle")} rightPanelUnavailableLabel="Select a pull request first" liveAgentCount={0} onToggleTerminal={() => undefined} @@ -1914,6 +1914,12 @@ function PullRequestsRouteView() { event.stopPropagation(); if (!event.repeat) closeSurface(activePullRequestSurface); }); + const toggleRightPanelFromShortcut = useEffectEvent((event: KeyboardEvent) => { + if (!rightPanelAvailable) return; + event.preventDefault(); + event.stopPropagation(); + toggleRightPanel(); + }); useEffect(() => { const onKeyDown = (event: KeyboardEvent) => { if (event.defaultPrevented || isCommandPaletteOpen()) return; @@ -1921,6 +1927,7 @@ function PullRequestsRouteView() { context: { terminalFocus: isTerminalFocused() }, }); if (command === "rightPanel.close") closeActiveSurfaceFromShortcut(event); + if (command === "rightPanel.toggle") toggleRightPanelFromShortcut(event); if (command === "thread.copyReference") copyPullRequestFromShortcut(event); }; window.addEventListener("keydown", onKeyDown); From b1bb899865c1b34ac39e4095a11b9d9fd9ce1170 Mon Sep 17 00:00:00 2001 From: Bil0000 <62337003+Bil0000@users.noreply.github.com> Date: Fri, 11 Sep 2026 22:24:58 +0200 Subject: [PATCH 2/2] fix(web): ignore held PR panel toggle shortcuts --- apps/web/src/routes/_chat.pull-requests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/routes/_chat.pull-requests.tsx b/apps/web/src/routes/_chat.pull-requests.tsx index 22120691dc57..2b5586a6e8e5 100644 --- a/apps/web/src/routes/_chat.pull-requests.tsx +++ b/apps/web/src/routes/_chat.pull-requests.tsx @@ -1918,7 +1918,7 @@ function PullRequestsRouteView() { if (!rightPanelAvailable) return; event.preventDefault(); event.stopPropagation(); - toggleRightPanel(); + if (!event.repeat) toggleRightPanel(); }); useEffect(() => { const onKeyDown = (event: KeyboardEvent) => {