[PR #4919] feat: configurable message and session limits (resolves #4918) #11171

Closed
opened 2026-02-16 18:15:58 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: No


Resolves #4918

This PR adds two new settings that may be used in opencode.jsonc: tui.message_limit and tui.session_limit.

message_limit controls the number of messages visible in the scrollback in the TUI.

session_limit controls the number of sessions visible in the /sessions modal window.

For both of these settings, the valid values are either a positive integer or the string "none", in which case there is no limit.

This PR merely simply adds an option for users who want to use it: it should produce no in behaviour for users who do not choose to add these settings in their opencode.jsonc file.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4919 **State:** closed **Merged:** No --- Resolves #4918 This PR adds two new settings that may be used in `opencode.jsonc`: `tui.message_limit` and `tui.session_limit`. `message_limit` controls the number of messages visible in the scrollback in the TUI. `session_limit` controls the number of sessions visible in the `/sessions` modal window. For both of these settings, the valid values are either a positive integer or the string `"none"`, in which case there is no limit. This PR merely simply adds an option for users who want to use it: it should produce no in behaviour for users who do not choose to add these settings in their `opencode.jsonc` file.
yindo added the pull-request label 2026-02-16 18:15:58 -05:00
yindo closed this issue 2026-02-16 18:15:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11171