Skip to content

Add configurable scrollback/message limit to reduce TUI lag #9930

Closed

Description

@shawnsw

Problem

Long chat histories cause the TUI to get slow when scrolling. There is currently no config option to cap scrollback length; docs only list scroll_speed/scroll_acceleration/diff_style.

Prior art

PR #4919 (closed, not merged) added opt-in config options like and to cap message history and sessions list. It seems to directly address this performance issue.

Proposed

Reintroduce a configurable scrollback/message limit (and optionally session list limit) via (integer or "none") in , with sensible defaults and no behavior change when unset.

Environment

macOS 26.12

References

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    perfIndicates a performance issue or need for optimization
    on Jan 22, 2026
  2. github-actions commented on Jan 22, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. github-actions commented on Mar 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentuiperfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions