fix: enable swipe-back suspension on more drawer and remove unused variable (#215)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-05-02 22:21:55 -04:00
1 parent c3d6549f01
commit 358e0f18aa
2 files changed
+1 -2

No files matched your search

@@ -30,7 +30,7 @@ export function MoreDrawer({ isOpen, onClose }: MoreDrawerProps) {
const [commandsOpen, setCommandsOpen] = useState(false)
const [mentionFileBrowserOpen, setMentionFileBrowserOpen] = useState(false)
const swipeRef = useRef<HTMLDivElement>(null)
const { bind } = useSwipeBack(onClose, { enabled: true, suspendsRouteSwipe: false })
const { bind } = useSwipeBack(onClose, { enabled: true, suspendsRouteSwipe: true })
const { logout } = useAuth()
const { data: health } = useServerHealth()
const isSessionDetail = /^\/repos\/\d+\/sessions\/[^/]+$/.test(location.pathname)
@@ -70,7 +70,6 @@ export function buildNavModel(pathname: string): NavModel {
const sessionDetailMatch = /^\/repos\/(\d+)\/sessions\/[^/]+$/.exec(pathname)
if (sessionDetailMatch) {
const id = sessionDetailMatch[1]
const items: MoreDrawerItem[] = [
{ key: 'files', label: 'Files', icon: Folder, dialog: 'files' },
{ key: 'mcp', label: 'MCP', icon: Plug, dialog: 'mcp' },