Skip to content

Feat/configurable message and session limit#177

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

Feat/configurable message and session limit#177
ariane-emory wants to merge 167 commits intodevfrom
feat/configurable-message-and-session-limit

Conversation

@ariane-emory
Copy link
Owner

DUMMY PR, IGNORE.

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
…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.
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