Skip to content

feature request: pagination for messages & sessions #4918

@ariane-emory

Description

@ariane-emory

Description

I used to be able to scroll allllll the way back to the start of sessions, even after hundreds (or thousands) of pages of interactions with the model.

This seems to have broken some time in the past week, and I can no longer scroll back to the start of long sessions, hitting home to go to the start instead seems to scroll back to some random point in the session, from which it will not let me scroll further.

I regularly have the need to scroll back by several hundred pages, and this has been making it extremely difficult to get anything done in opencode for the past day, this bug has made the program nigh unusable.

Please implement some solution to this problem. Probably, it should be configurable in opencode.jsonc with a tui.messages_limit setting that can be either a positive integer denoting how many message parts to display or "none" to display all messages.

OpenCode version

1.0.122

Steps to reproduce

  1. Launch opencode and produce a lengthy session (for example engage in several hundred turns of interaction with the model involving many tool calls).
  2. Hit home.
  3. Observe that the viewport is moved to some random point part ways through the session instead of to the beginning of the session.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions