Skip to content

Feature: TUI sidebar width is not freely resizable — needs drag-to-resize support #2602

@idling11

Description

@idling11

Description

The sidebar (Work / Tasks / Agents / Context panel) width cannot be freely
adjusted by dragging the boundary between the main chat area and the sidebar.
The only way to change it is via /config sidebar_width <percent> which
requires typing a command and guessing the right percentage — there is no
interactive resize handle.

Current behavior

  • Sidebar width is computed as a fixed pixel value from sidebar_width_percent
    (default 28%, range 10–50%), with a hard min of 24 cols and max of
    chat_width - 40.
  • The layout uses Constraint::Length(sidebar_width) — a static length —
    so the split is fixed until the config is changed.
  • No mouse drag, no resize handle, no keyboard shortcut to nudge the boundary.

Relevant code

Suggested solution

Add a draggable resize handle (e.g., or ) between the chat area and
sidebar. Mouse down + drag should adjust sidebar_width_percent in real time
and persist the new value.

This is a common UX pattern in terminal apps (e.g., lazygit's side panel resize).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions