WeKnora/frontend/src/stores
Chris Chen 86767d77e9
fix(frontend): cap concurrent status requests in upload polling (#4348)
The upload panel split every file still parsing into chunks of 40 and
sent all chunks at once on each poll. With a few thousand files in
flight that is 100+ parallel /api/v1/knowledge/batch requests every
few seconds, each holding a Postgres connection, which exhausts the
default max_connections=100 (FATAL: sorry, too many clients already).

Keep at most 4 status requests in flight per poll; the remaining chunks
are queried as earlier ones finish.

Claude-Session: https://claude.ai/code/session_014ENAekfB7Um4VUnzUWWAv1
2026-10-16 23:43:26 +08:00
..
assistant.ts feat(assistant): trial runs, session grants, page links, and MCP/model/skill management (#4375) 2026-10-16 23:36:01 +08:00
auth.ts revert: take the plugin system back out of main 2026-09-26 14:58:18 +08:00
browserConnection.test.ts feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00
browserConnection.ts feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00
browserSource.test.ts fix(chat): clear stale KB scope on session restore 2026-09-28 21:20:12 +08:00
chatResources.test.ts feat(assistant): trial runs, session grants, page links, and MCP/model/skill management (#4375) 2026-10-16 23:36:01 +08:00
chatResources.ts feat(assistant): trial runs, session grants, page links, and MCP/model/skill management (#4375) 2026-10-16 23:36:01 +08:00
commandPalette.ts fix(security): namespace command-palette recent searches per (user, tenant) 2026-05-18 17:28:58 +08:00
deploymentCapabilities.ts fix: filter menus by deployment capabilities (#2674) 2026-08-13 20:18:48 +08:00
editorResources.ts fix(agent): make agent tool selection match the tools the runtime registers (#4211) 2026-10-13 11:29:24 +08:00
knowledge.ts feat(ui): Support multi knowledgebases operation 2025-09-17 16:02:08 +08:00
localizedResourceCache.test.ts refactor(frontend): drop TTL resource caches and remove duplicate startup requests (#3562) 2026-09-25 22:22:48 +08:00
localizedResourceCache.ts refactor(frontend): drop TTL resource caches and remove duplicate startup requests (#3562) 2026-09-25 22:22:48 +08:00
menu.ts feat(toolbox): introduce toolbox feature with skills, MCP, and browser connection management 2026-09-23 17:12:19 +08:00
modelProviders.ts feat(models): add system admin model catalog console (#3662) 2026-09-24 16:31:45 +08:00
modelProvidersState.test.ts revert: take the plugin system back out of main 2026-09-26 14:58:18 +08:00
modelProvidersState.ts revert: take the plugin system back out of main 2026-09-26 14:58:18 +08:00
organization.ts refactor(frontend): drop TTL resource caches and remove duplicate startup requests (#3562) 2026-09-25 22:22:48 +08:00
organizationState.test.ts fix(frontend): correct optimistic organization state after review and detail loads 2026-07-24 10:45:12 +08:00
organizationState.ts fix(frontend): correct optimistic organization state after review and detail loads 2026-07-24 10:45:12 +08:00
resourceCache.test.ts refactor(frontend): drop TTL resource caches and remove duplicate startup requests (#3562) 2026-09-25 22:22:48 +08:00
resourceCache.ts refactor(frontend): drop TTL resource caches and remove duplicate startup requests (#3562) 2026-09-25 22:22:48 +08:00
sequencedRefresh.test.ts refactor(frontend): drop TTL resource caches and remove duplicate startup requests (#3562) 2026-09-25 22:22:48 +08:00
sequencedRefresh.ts refactor(frontend): drop TTL resource caches and remove duplicate startup requests (#3562) 2026-09-25 22:22:48 +08:00
sessionActivity.ts feat(chat): polish rewind confirm and mark sessions with unread replies (#4247) 2026-10-13 20:42:32 +08:00
sessionActivityState.test.ts feat(chat): polish rewind confirm and mark sessions with unread replies (#4247) 2026-10-13 20:42:32 +08:00
sessionActivityState.ts feat(chat): polish rewind confirm and mark sessions with unread replies (#4247) 2026-10-13 20:42:32 +08:00
sessionInputState.test.ts fix(chat): clear stale file and tool selections on session restore (#3802) 2026-10-08 01:24:43 +08:00
settings.ts fix(chat): clear stale file and tool selections on session restore (#3802) 2026-10-08 01:24:43 +08:00
settingsStorage.test.mjs fix(frontend): harden settings localStorage load after #1925 2026-07-06 10:46:34 +08:00
settingsStorage.ts refactor: remove Neo4j-based conversation memory feature 2026-07-18 23:41:48 +08:00
storageEngineAccess.test.ts fix(frontend): keep agent editor dependency loading alive for contributors 2026-09-08 12:28:44 +08:00
storageEngineAccess.ts fix(frontend): keep agent editor dependency loading alive for contributors 2026-09-08 12:28:44 +08:00
ui.ts feat(browser-connection): add sidebar connection status and localization support 2026-09-23 17:12:19 +08:00
uiSidebar.test.ts style: polish sidebar, list pages, toolbox and citation UI (#4154) 2026-10-11 15:01:12 +08:00
uploadConfirm.ts feat(knowledge): enhance folder management and upload confirmation dialog 2026-08-04 20:45:29 +08:00
uploadQueue.test.ts fix(frontend): cap concurrent status requests in upload polling (#4348) 2026-10-16 23:43:26 +08:00
uploadQueue.ts fix(frontend): cap concurrent status requests in upload polling (#4348) 2026-10-16 23:43:26 +08:00
uploadTasks.ts feat(frontend): show overall progress for knowledge file uploads (#3399) 2026-09-18 16:43:59 +08:00
uploadTasksCore.test.ts feat(frontend): show overall progress for knowledge file uploads (#3399) 2026-09-18 16:43:59 +08:00
uploadTasksCore.ts fix(frontend): cap concurrent status requests in upload polling (#4348) 2026-10-16 23:43:26 +08:00
uploadTasksState.test.ts feat(frontend): show overall progress for knowledge file uploads (#3399) 2026-09-18 16:43:59 +08:00
uploadTasksState.ts feat(frontend): show overall progress for knowledge file uploads (#3399) 2026-09-18 16:43:59 +08:00
versionedRequest.test.ts fix: synchronize organization state after writes 2026-07-24 10:40:33 +08:00
versionedRequest.ts fix: synchronize organization state after writes 2026-07-24 10:40:33 +08:00