Skip to content

Comments

feat: configurable message and session limits#177

Open
ariane-emory wants to merge 172 commits intodevfrom
feat/configurable-message-and-session-limit
Open

feat: configurable message and session limits#177
ariane-emory wants to merge 172 commits intodevfrom
feat/configurable-message-and-session-limit

Conversation

@ariane-emory
Copy link
Owner

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

What does this PR do?

Introduces new tui.messages_limit and tui.session_list_limit configuration options allowing the number of message pars 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 29 commits January 29, 2026 03:31
…ne-emory/opencode into feat/configurable-message-limit-wip
Fix race condition where messages_limit config was read before config
was loaded from server, causing the default limit of 100 to always be
used instead of the user's configured value.

The fix tracks sync.ready in the createEffect so it re-runs when the
config is fully loaded, ensuring the correct messages_limit is used.
Fix race condition where session_list_limit config was read before config
was loaded from server, causing the default limit of 150 to always be
used instead of the user's configured value.

The fix adds sync.ready check at the start of the options memo so it
re-runs when the config is fully loaded, ensuring the correct
session_list_limit is used.
The session_list_limit config was not being passed to the server when
fetching sessions, so the server always defaulted to 100 sessions.

Now fetches config first to get session_list_limit, then passes it as
the 'limit' parameter to sdk.client.session.list().

This allows users to see more (or fewer) sessions in the session list
dialog.
@ariane-emory ariane-emory changed the title Feat/configurable message and session limit feat: configurable message and session limits Feb 22, 2026
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