You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tapping a session on mobile doesn't close the sidebar #24577
roblem
On mobile viewports, tapping a session in the sidebar navigates to that session, but the sidebar remains open. You have to manually close the sidebar afterward, making session switching on mobile a two-step process (tap session → tap to close sidebar) instead of one.
Expected behavior
Tapping a session on mobile should navigate to the session and close the sidebar, so the user lands directly in the chat view.
Root cause
SessionItem (packages/app/src/pages/layout/sidebar-items.tsx) renders each session as an (SolidJS router link). The onClick handler only clears hover state on non-expanded sidebars:
// SessionRow onClick
onClick={() => {
if (props.sidebarOpened()) return
props.clearHoverProjectSoon()
}}
It never calls layout.mobileSidebar.hide(). By contrast, navigateWithSidebarReset() in layout.tsx does both:
const navigateWithSidebarReset = (href: string) => {
clearSidebarHoverState()
navigate(href)
layout.mobileSidebar.hide()
}
But since SessionItem uses declarative navigation, it bypasses that function entirely.
Suggested fix
Pass layout.mobileSidebar.hide (or a callback that includes it) down to SessionItem/SessionRow and call it in the onClick handler when on mobile (or unconditionally — mobileSidebar.hide() is a no-op on desktop). This aligns session-tap behavior with navigateWithSidebarReset and the NewSessionItem component, which also needs the same fix.
Plugins
No response
OpenCode version
OpenCode Desktop v1.14.21
Steps to reproduce
Open mobile code webui on mobile
Open a project with multiple sessions
Click the menu to change between sessions and note that clicking on the sesison name does not close the menu which remains full screen. Must re-click the menu button to close
Activity
github-actions commentedon Apr 27, 2026
This issue might be a duplicate of existing issues. Please check:
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.