Repository navigation
fix: prevent agents right panel from covering chat on mobile - #22744
Merged
Merged
Conversation
On mobile, the right panel (git diff/changes) auto-opens and renders at 100vw, completely covering the chat with no way to dismiss it. Changes: - AgentDetail: skip auto-opening the right panel on mobile (<768px) - AgentDetail: hide the chat column on mobile when the panel is open (max-md:hidden) so it's a clean swap, not a squished layout - SidebarTabView: add onClose prop; on mobile show an X close button in the panel header (md:hidden) and hide the expand/fullscreen toggle (hidden md:inline-flex) since it's useless on small screens - AgentDetail: pass onClose to SidebarTabView Mobile flow: chat shows normally → tap the existing toggle button in the top bar → right panel takes over the screen with an X to close → tap X → back to chat.
kylecarbs
force-pushed
the
fix-agents-mobile-right-panel
branch
from
March 7, 2026 00:36
af529f4 to
c3038ff
Compare
mattvollmer
approved these changes
Mar 7, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
On mobile, the right panel (git diff / repo changes) auto-opens at
100vw, completely covering the chat with no way to dismiss it.Mobile flow after this fix
The left sidebar is already hidden on mobile (existing
hidden md:block), so this isn't touched — the back arrow button already takes you home.Changes
AgentDetail.tsx
<768px). The auto-open when diff/git status appears is great on desktop but immediately hides the chat on mobile.max-md:hidden), so it's a clean swap instead of the chat getting squished to 0 width.onClosetoSidebarTabView.SidebarTabView.tsx
onCloseprop.md:hidden). On desktop: keep the existing expand/fullscreen toggle (hidden md:inline-flex). The expand toggle is useless on mobile since both states cover the full viewport.