Skip to content

feat: configurable message and session_list limits - #177

Open
ariane-emory wants to merge 200 commits into
devfrom
feat/configurable-message-and-session-limit
Open

ariane-emory wants to merge 200 commits into
devfrom
feat/configurable-message-and-session-limit

Conversation

@ariane-emory

@ariane-emory ariane-emory commented Feb 16, 2026 •

Copy link
Copy Markdown
Owner

What does this PR do?

Introduces new experimental.messages_limit and experimental.session_list_limit configuration options allowing the number of message parts displayed in the scrollback and the number of sessions displayed in the session_list dialogue to be configured using either integral values or the string "none" to display an unlimited number of same.

ariane-emory and others added 30 commits November 30, 2025 14:45
…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
ariane-emory and others added 17 commits March 20, 2026 03:40
# 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
@ariane-emory ariane-emory changed the title feat: configurable message and session limits feat: configurable message and session_list limits May 28, 2026
# Conflicts:
#	packages/opencode/test/config/config.test.ts
# 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants