Skip to content

bug: clean picker has no viewport — long worktree lists overflow the terminal #65

Description

@sauravpanda

Problem

The bonsai clean picker (internal/tui/picker.go) renders every item unconditionally. With more worktrees than terminal rows, bubbletea's inline renderer cannot repaint cleanly: rows scroll out of view, the header/help line disappears, and redraws garble.

Suggested fix

  • Add a scrolling viewport to the picker (window of N items that follows the cursor), or switch to bubbles/list.
  • Keep the title, help line, and selection summary pinned.

Notes

Only reproducible with many worktrees (roughly > terminal height / 2, since each item renders two lines).

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions