[FEATURE]: Make MAX_HISTORY_ENTRIES configurable via config #7435

Open
opened 2026-02-16 18:07:09 -05:00 by yindo · 1 comment
Owner

Originally created by @winse on GitHub (Jan 24, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The constant MAX_HISTORY_ENTRIES in packages/opencode/src/cli/cmd/tui/component/prompt/history.tsx is currently hard-coded to 50.

Request: make this value configurable via the user/config file (similar to shell HISTSIZE), and read it at runtime so users can adjust how many prompt history entries are stored.

Originally created by @winse on GitHub (Jan 24, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request The constant MAX_HISTORY_ENTRIES in packages/opencode/src/cli/cmd/tui/component/prompt/history.tsx is currently hard-coded to 50. Request: make this value configurable via the user/config file (similar to shell HISTSIZE), and read it at runtime so users can adjust how many prompt history entries are stored.
yindo added the discussion label 2026-02-16 18:07:09 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 24, 2026):

This issue might be related to existing feature requests about history configuration. Please check:

  • #9930: Add configurable scrollback/message limit to reduce TUI lag
  • #6137: Cannot scroll to beginning of long conversations (message limit hardcoded to 100)

These issues discuss making history limits configurable in the TUI config, which is similar to what you're requesting for prompt history. You may want to coordinate these efforts or consider if prompt history size should also be made configurable in a similar way.

@github-actions[bot] commented on GitHub (Jan 24, 2026): This issue might be related to existing feature requests about history configuration. Please check: - #9930: Add configurable scrollback/message limit to reduce TUI lag - #6137: Cannot scroll to beginning of long conversations (message limit hardcoded to 100) These issues discuss making history limits configurable in the TUI config, which is similar to what you're requesting for prompt history. You may want to coordinate these efforts or consider if prompt history size should also be made configurable in a similar way.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7435