fix(streaming): batch and isolate chat updates
2 months ago
Authored
Cursor Agent# Conflicts:
# apps/desktop/src/ui/ChatView.tsx
# apps/desktop/src/ui/sidebar/SidebarThreadItem.tsx
# apps/desktop/src/ui/sidebar/SidebarWorkspaceItem.tsx
# apps/desktop/test/chat-view.stability.test.tsx
# apps/desktop/test/sidebar-ui.test.tsx
Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>
Parents848ebb2790338f
34 files changed
- apps/desktop/electron/qualityGateMain.ts+256−26
- apps/desktop/quality-gates/README.md+6−4
- apps/desktop/quality-gates/budgets.json+15−2
- apps/desktop/quality-gates/fixtures.ts+37−4
- apps/desktop/quality-gates/runtime.ts+88−2
- apps/desktop/quality-gates/specs/performance.pw.ts+145−6
- apps/desktop/src/app/store.actions/thread.ts+6−2
apps/desktop/src/app/store.feedMapping.ts
+3
−0
apps/desktop/src/app/store.helpers.ts+2−0apps/desktop/src/app/store.helpers/jsonRpcSocket.ts+14−1apps/desktop/src/app/store.helpers/persistence.ts+11−2apps/desktop/src/app/store.helpers/runtimeState.ts+15−1apps/desktop/src/app/store.helpers/threadEventReducer/feedProjection.ts+304−94apps/desktop/src/app/store.helpers/threadEventReducer/handlers/index.ts+28−9apps/desktop/src/app/store.helpers/threadEventReducer/handlers/lifecycleHandlers.ts+7−1apps/desktop/src/app/store.helpers/threadEventReducer/handlers/shared.ts+2−0apps/desktop/src/app/store.helpers/threadEventReducer/jsonRpcWorkspace.ts+4−0apps/desktop/src/app/store.helpers/threadEventReducerContext.ts+2−0apps/desktop/src/app/types.ts+5−0apps/desktop/src/ui/ChatView.tsx+40−2apps/desktop/src/ui/Sidebar.tsx+55−66apps/desktop/src/ui/chat/ChatFeed.tsx+17−54apps/desktop/src/ui/chat/FeedRow.tsx+5−0apps/desktop/src/ui/chat/feedWindow.ts+13−0apps/desktop/src/ui/markdown/DesktopMarkdown.tsx+2−0apps/desktop/src/ui/renderDiagnostics.ts+40−0apps/desktop/src/ui/sidebar/{SidebarOneOffChatItem.tsx => SidebarThreadItem.tsx}+16−18apps/desktop/src/ui/sidebar/SidebarWorkspaceItem.tsx+23−116apps/desktop/test/chat-feed-scroller.test.tsx+30−3apps/desktop/test/chat-feed-windowing.test.ts+36−0apps/desktop/test/chat-view.stability.test.tsx+21−4apps/desktop/test/feed-projection-coalescing.test.ts+411−3apps/desktop/test/jsonrpc-workspace-migration.test.ts+1−0apps/desktop/test/sidebar-ui.test.tsx+55−1