[PR #6138] feat(tui): add session_list_limit for session picker (#6137) #11750

Open
opened 2026-02-16 18:16:41 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6138

State: open
Merged: No


Problem

The session picker loads all sessions by default, which can become slow with hundreds or thousands of sessions.

Solution

  • Add tui.session_list_limit config (default 150)
  • Apply the limit only when not searching (search still uses server-side limit 30)
  • Keep the current session visible even when capped (tie-safe ordering)
  • Add a TUI tip for discoverability
  • Regenerate SDK OpenAPI/types

Notes

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6138 **State:** open **Merged:** No --- ## Problem The session picker loads all sessions by default, which can become slow with hundreds or thousands of sessions. ## Solution - Add `tui.session_list_limit` config (default 150) - Apply the limit only when not searching (search still uses server-side limit 30) - Keep the current session visible even when capped (tie-safe ordering) - Add a TUI tip for discoverability - Regenerate SDK OpenAPI/types ## Notes - Closes #6137 and #4918 - Related to #8535 - Testing: `bun run --cwd packages/opencode typecheck` - **AI Assistance**: OpenCode + openai/gpt-5.2-codex (high) - Testing: Typecheck - Review: Human operator reviewed
yindo added the pull-request label 2026-02-16 18:16:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11750