diff --git a/frontend/src/components/navigation/MoreDrawer.tsx b/frontend/src/components/navigation/MoreDrawer.tsx index 84046b1a..77b3d4e4 100644 --- a/frontend/src/components/navigation/MoreDrawer.tsx +++ b/frontend/src/components/navigation/MoreDrawer.tsx @@ -30,7 +30,7 @@ export function MoreDrawer({ isOpen, onClose }: MoreDrawerProps) { const [commandsOpen, setCommandsOpen] = useState(false) const [mentionFileBrowserOpen, setMentionFileBrowserOpen] = useState(false) const swipeRef = useRef(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) diff --git a/frontend/src/components/navigation/moreDrawerItems.ts b/frontend/src/components/navigation/moreDrawerItems.ts index 0f58509b..72f55eac 100644 --- a/frontend/src/components/navigation/moreDrawerItems.ts +++ b/frontend/src/components/navigation/moreDrawerItems.ts @@ -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' },