Repository navigation
feat: configurable message and session_list limits - #177
Open
ariane-emory wants to merge 200 commits into
Open
ariane-emory wants to merge 200 commits into
ariane-emory wants to merge 200 commits into
Conversation
…roper defaults - Add messages_limit (default: 100) and sessions_list_limit (default: 150) to TUI config - Maintain backward compatibility with existing behavior - Regenerate SDK to include new fields
…onfig documentation
Avoid conflicts with TUI settings migration by moving these settings from the tui group (which is being migrated to tui.json) to experimental.
1 task done
# Conflicts: # packages/opencode/src/session/index.ts # packages/opencode/test/config/config.test.ts
Restore the older SDK v2 behavior for GET requests so repo-level session history remains visible in the TUI during dev runs from packages/opencode.
# Conflicts: # packages/opencode/src/cli/cmd/tui/context/sync.tsx # packages/opencode/src/session/session.ts
# Conflicts: # packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsx
session_list limits
# Conflicts: # packages/opencode/test/config/config.test.ts
ariane-emory
added a commit
that referenced
this pull request
May 31, 2026
# Conflicts: # packages/tui/src/context/sync.tsx
listSessions() hardcoded a 30-day window, ignoring the session_list_limit config. When session.refresh() replaced the store, older sessions were lost. Now mirrors sessionListPromise logic: "none" fetches all, otherwise applies limit + 30-day start.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Introduces new
experimental.messages_limitandexperimental.session_list_limitconfiguration options allowing the number of message parts displayed in the scrollback and the number of sessions displayed in thesession_listdialogue to be configured using either integral values or the string "none" to display an unlimited number of same.