chore(web): show five sessions per workspace (#1161)

This commit is contained in:
qer 2026-06-28 01:07:51 +08:00 committed by GitHub
parent 23a553bb91
commit d968642384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---
Show the first five sessions per workspace in the web sidebar instead of ten.

View file

@ -287,7 +287,7 @@ export function useWorkspaceState(rawState: ExtendedState, deps: UseWorkspaceSta
const SESSION_PAGE_SIZE = 100;
// Sessions fetched per workspace on first load — keeps the initial request
// count at (number of workspaces) and each response small.
const SESSIONS_INITIAL_PAGE_SIZE = 10;
const SESSIONS_INITIAL_PAGE_SIZE = 5;
// Sessions fetched per "load more" click within a workspace.
const SESSIONS_LOAD_MORE_SIZE = 30;