Skip to content

Preserve usable thread-list space in the mobile landscape sidebar #3182

Closed

Description

@IlyaM

Summary

On a mobile viewport in landscape orientation, the left sidebar's navigation section consumes most of the available height, leaving very little room for the thread list. Moving some navigation items into More reduces the problem but does not preserve enough space for threads; the sidebar should adapt to short viewports and reserve a useful portion of its height for the thread list.

Versions and environment

  • bb 0.42.1
  • Mobile viewport in landscape orientation
  • Installation method and device/OS not provided

Steps to reproduce

  1. Open bb on a mobile device.
  2. Rotate the device to landscape orientation.
  3. Open the left sidebar.
  4. Observe the vertical space available below the navigation section for pinned threads and the rest of the thread list.
  5. Move optional navigation entries into More and observe the remaining thread-list space.

Reproduction status: unverified independently; this report is based on the reported behavior and source inspection because a mobile bb session was not available in the investigation environment.

Expected vs actual

Expected: The landscape sidebar adapts to its limited height and preserves enough visible or scrollable space to browse threads.

Actual: The navigation section occupies most of the sidebar height. Only a very small portion of the thread list is visible, even after optional navigation entries are moved into More.

Evidence

Source inspection on main at 6cdb4ba6125514b7660332cf311037bc09c82b0e shows that:

  • The navigation list is a non-shrinking block, while every visible navigation row is rendered before the thread content:
    return (
    <div
    ref={containerRef}
    className="shrink-0 space-y-0.5 px-2 py-2 group-data-[collapsible=icon]:hidden"
    data-testid="plugin-nav-sidebar-items"
    onClickCapture={onClickCapture}
    >
    <DndContext {...dndContextProps}>
    <SortableContext
    items={visibleKeys}
    strategy={verticalListSortingStrategy}
    >
    {visible.map((row) =>
    isPluginSidebarNavRow(row) ? (
    <SortableSidebarNavRow
    key={getPluginNavPanelKey(row)}
    row={row}
    reorderDisabled={reorderDisabled}
    {...rowProps}
    />
    ) : (
    <BuiltInSidebarNavRow
    key={getPluginNavPanelKey(row)}
    row={row}
    onHide={rowProps.onHide}
    onCustomize={openCustomize}
    />
    ),
    )}
    </SortableContext>
    </DndContext>
    {hidden.length > 0 ? (
    <SidebarNavigationMoreRow
    hiddenRows={hidden}
    onActivate={handleActivate}
    onCustomize={openCustomize}
    />
    ) : null}
    </div>
  • The thread list receives only the remaining flexible height after the top reserve, navigation region, divider, and footer:
    const body = (
    <>
    {showTopReserve ? (
    <div
    data-testid="app-sidebar-top-reserve-row"
    className={cn(
    CHROME_ROW_CLASS,
    "shrink-0 justify-end px-2",
    usesDesktopChrome && MACOS_WINDOW_DRAG_CLASS,
    )}
    >
    <SidebarHistoryNavigationControls
    onNavigate={closeOnMobile}
    className={cn(
    "group-data-[collapsible=icon]:hidden",
    usesDesktopChrome && MACOS_CHROME_CONTROL_NO_DRAG_CLASS,
    )}
    />
    </div>
    ) : null}
    <SidebarNavigationRegion
    compactCustomizeMode={isCompactCustomizeModeActive}
    onCompactCustomizeModeChange={setCompactCustomizeMode}
    onNavigate={closeOnMobile}
    splitEnabled
    toolsRoutePath={toolsRoutePath}
    newThreadSplit={newThreadSplit}
    onNewChat={handleNewChat}
    onSearchThreads={closeOnMobile}
    />
    <div
    aria-hidden="true"
    className={cn(
    "mx-2 my-2 shrink-0 border-t border-sidebar-border/25",
    isCompactCustomizeModeActive && "hidden",
    )}
    data-testid="app-sidebar-navigation-divider"
    />
    <SidebarContent
    className={cn(isCompactCustomizeModeActive && "hidden")}
    aria-hidden={isCompactCustomizeModeActive ? true : undefined}
    inert={isCompactCustomizeModeActive ? true : undefined}
    >
    <PluginThreadList
    replacement={threadListReplacement}
    original={originalThreadList}
    searchQuery=""
    onNavigate={closeOnMobile}
    />
    </SidebarContent>
    <SidebarFooter className="relative">
  • More is preference-driven rather than responsive to available vertical space; only Search is hidden by default:
    export const BUILT_IN_SIDEBAR_NAVIGATION_KEYS = {
    newThread: "__bb__/new-thread",
    searchThreads: "__bb__/search-threads",
    extensions: "__bb__/extensions",
    automations: "__bb__/automations",
    } as const;
    export const DEFAULT_HIDDEN_SIDEBAR_NAVIGATION_KEYS = [
    BUILT_IN_SIDEBAR_NAVIGATION_KEYS.searchThreads,
    ] as const;
    export const DEFAULT_BUILT_IN_SIDEBAR_NAVIGATION_ORDER = [
    BUILT_IN_SIDEBAR_NAVIGATION_KEYS.newThread,
    BUILT_IN_SIDEBAR_NAVIGATION_KEYS.searchThreads,
    BUILT_IN_SIDEBAR_NAVIGATION_KEYS.extensions,
    BUILT_IN_SIDEBAR_NAVIGATION_KEYS.automations,
    ] as const;

No public-safe investigation link is available.

Suggested fix

Make sidebar navigation disclosure responsive to available height, not only user visibility preferences. On short landscape viewports, automatically move enough lower-priority navigation entries into More, or otherwise cap the navigation region, so the thread list retains a defined minimum usable height.

What you ruled out

  • Not a duplicate of Optional per-project limit on visible sidebar thread rows #2731: that issue limits an individual project's unbounded thread rows; this issue is about fixed navigation chrome consuming the sidebar before the thread list begins.
  • Moving optional entries into More mitigates the problem but does not leave enough thread-list space.
  • Source inspection confirms the layout remains structurally susceptible on main at 6cdb4ba6125514b7660332cf311037bc09c82b0e; live reproduction on that commit was not available.

Suggested priority and effort

Medium — affects mobile users in landscape orientation and makes primary thread navigation difficult; rotating to portrait is a workaround, and no data or work is lost. Effort likely Medium because the responsive disclosure policy needs layout behavior and coverage for short viewports.

AGENT GENERATED

Activity

  1. added theissue type on Sep 6, 2026
  2. added
    mobile
    confirmed-repro
    on Sep 6, 2026
  3. bb-slop-cop commented on Sep 6, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Medium · Effort Medium · labels mobile, confirmed-repro
    • Report: https://get-bb.github.io/reports/issues/3182.html
    • Verdict: REPRODUCED · confidence high · reproduction label confirmed-repro
    • Root cause: the non-shrinking navigation keeps its intrinsic height while the flexible thread list receives only the remainder; at 740×360 this leaves 61 px and one visible thread row.
    • Pull request: not opened because choosing the minimum thread reserve and disclosure priority—especially for plugin-contributed and replacement navigation—requires a product decision, so the simple-fix gate did not pass.
  4. hxy91819 commented on Oct 3, 2026

    @hxy91819

    An alternative to auto-hiding: pin only New thread, scroll the rest

    On a laptop screen, and especially in the mobile landscape sidebar, the navigation block (New thread, Search, Plugins, Skills, every plugin panel, the divider) is fixed above the thread list and eats a large share of the sidebar height. I need New thread reachable at all times, but I rarely need the other rows while scanning threads, and I would rather spend that height on threads.

    What happens today

    AppSidebar renders SidebarNavigationRegion as a sibling before SidebarContent; only SidebarContent (overflow-auto, flex-1) scrolls, and it contains just the thread list:

    <SidebarNavigationRegion
    isCustomizing={isNavigationCustomizing}
    onCustomizingChange={setNavigationCustomizing}
    focusReturnTargetRef={customizeFocusReturnRef}
    onNavigate={closeOnMobile}
    />
    <SidebarContent
    className={cn(isCompactCustomizeModeActive && "hidden")}
    aria-hidden={isCompactCustomizeModeActive ? true : undefined}
    inert={isCompactCustomizeModeActive ? true : undefined}
    >
    <PluginThreadList
    replacement={threadListReplacement}
    onNavigate={closeOnMobile}
    />
    </SidebarContent>

    const SidebarContent = React.forwardRef<
    HTMLDivElement,
    React.ComponentProps<"div">
    >(({ className, ...props }, ref) => {
    return (
    <div
    ref={ref}
    data-sidebar="content"
    className={cn(
    "flex min-h-0 flex-1 flex-col gap-2 overflow-auto bg-sidebar",
    className,
    )}
    {...props}

    So every visible navigation row is permanent chrome. The only mitigation is hiding rows under More, which is a per-row preference and still leaves the remaining rows fixed. The bundled Navigation plugin renders all visible rows in one sortable list with no notion of a pinned row:

    {visible.map((item) => (
    <NavigationRow
    key={item.id}
    item={item}
    isCompactViewport={isCompactViewport}
    reorderDisabled={reorderDisabled}
    />
    ))}

    Checked against origin/main today: AppSidebar has the same structure and the SDK has no experimental_pinnedNavigationHost. This proposal addresses the space problem described here differently from auto-moving rows into More: scroll the rows away and pin only New thread. It also helps on desktop.

    What I would expect

    • The sidebar keeps a small fixed host above the scroll area that holds exactly the New thread row.
    • Search, Plugins, Skills, plugin panels, More, and the navigation divider move inside the shared scroll area together with the thread list, so they scroll out of the way.
    • Reordering, hide/show, the customize editor, the compact-viewport customize flow (which hides the pinned host while customizing), and keyboard shortcuts behave as before; New thread is still part of the same navigation model, just portaled to the host.
    • Plugins that replace the navigation slot via app.slots.experimental_sidebarNavigation receive the host as an optional prop and can render their New thread row there, or ignore it and keep everything in their own region.

    Prototype

    Fork branch, based on desktop-v0.45.0 (129f6217): desktop-v0.45.0...hxy91819:bb:feature/sidebar-pinned-new-thread

    4 commits, 10 files, +123/−24. Implementation:

    • apps/app/src/components/sidebar/AppSidebar.tsx: adds a shrink-0 empty:hidden host div (data-testid="app-sidebar-pinned-navigation") above SidebarContent, and moves SidebarNavigationRegion inside SidebarContent ahead of the thread list.
    • apps/app/src/components/sidebar/SidebarNavigationRegion.tsx: passes the host element to the slot as experimental_pinnedNavigationHost.
    • packages/plugin-sdk/src/app-contract.ts: ExperimentalSidebarNavigationProps.experimental_pinnedNavigationHost?: HTMLElement | null (documented in docs/api_to_audit.md with stabilization criteria, and in plugins/plugin-api-docs/src/surfaces.ts and the plugin authoring reference).
    • plugins/navigation/app/Navigation.tsx: the row whose action kind is new-thread is rendered through createPortal into the host when it is present; otherwise the plugin renders as today.
    • Tests: plugins/navigation/app.test.tsx checks that New thread lands in the host, the other rows and divider stay in the navigation region, and activation still calls activate for __bb__/new-thread; the sidebar anatomy manifest test checks the host is outside [data-sidebar="content"].

    CONTRIBUTING.md asks for alignment before a PR for UI changes and new plugin API. If this direction is acceptable here, I will open the PR once I am approved as a contributor.

    AGENT GENERATED

  5. added a commit that references this issue on Oct 3, 2026
  6. added a commit that references this issue on Oct 12, 2026
  7. brsbl commented on Oct 16, 2026

    @brsbl
    Collaborator

    Fixed by the navigation rail (#5229, shipped in desktop v0.46.0): the navigation rows moved out of the sidebar into the rail, so the thread list keeps its space on a phone in landscape. Screenshot from the current app in landscape:

    Phone landscape with the rail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-repromobile

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions