You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bb6fc63
Browse filesBrowse the repository at this point in the historyBrowse files
fix(sessions): unify the sidebar roster page behind one define
Restores the documented bounded sessions.list default so the SDK's no-arg
sessions.list() and the TUI's `opts ?? {}` keep the 100-row page that
docs/cli/sessions.md promises, then fixes the sidebar on its own terms.
The sidebar had three separate limits: SIDEBAR_AGENT_SESSION_LIST_LIMIT (60)
in the query it actually sent, DEFAULT_SESSION_LIST_QUERY.limit (50) injected
when a caller omitted one, and a 60-row ownerFirst floor. All three collapse
into SIDEBAR_SESSION_ROSTER_LIMIT = 200, which the roster query, the roster
default, and the Gateway startup prewarm now share so the warm cache matches
what the UI asks for.
Load-more is unified. Section "Show more" only reveals rows the roster already
holds; fetching the next page is one list-level control shown whenever the
Gateway reports hasMore. That fetch used to be gated on
`section.id === "ungrouped"`, so only the catch-all could pull pages and a
starved category could never recover its own rows -- with no affordance saying
so. Because a fetched page is useless if the rows land behind a section's cap,
the roster control also advances every section by a page.
The Sessions page keeps its own SESSIONS_PAGE_DEFAULT_LIMIT: that limit is an
explicit operator-edited field, so tuning the roster never moves it.
0 commit comments