From d968642384f672295756394ee07a536dbfdb4dfd Mon Sep 17 00:00:00 2001 From: qer Date: Sun, 28 Jun 2026 01:07:51 +0800 Subject: [PATCH] chore(web): show five sessions per workspace (#1161) --- .changeset/web-session-initial-page-size.md | 5 +++++ apps/kimi-web/src/composables/client/useWorkspaceState.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/web-session-initial-page-size.md diff --git a/.changeset/web-session-initial-page-size.md b/.changeset/web-session-initial-page-size.md new file mode 100644 index 000000000..0810387ca --- /dev/null +++ b/.changeset/web-session-initial-page-size.md @@ -0,0 +1,5 @@ +--- +"@moonshot-ai/kimi-code": patch +--- + +Show the first five sessions per workspace in the web sidebar instead of ten. diff --git a/apps/kimi-web/src/composables/client/useWorkspaceState.ts b/apps/kimi-web/src/composables/client/useWorkspaceState.ts index e9ea36207..66cf6ae8d 100644 --- a/apps/kimi-web/src/composables/client/useWorkspaceState.ts +++ b/apps/kimi-web/src/composables/client/useWorkspaceState.ts @@ -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;