Commit Graph
7 Commits
Author SHA1 Message Date
Cursor Agent d87b49e12b Fix O(n²) turn diff re-derivation and deduplicate useTurnDiffSummaries hook
- Skip deriveTurnDiffSummaries in APPLY_EVENT reducer when the incoming
  event cannot affect the result (only turn/completed and item/completed
  with agentMessage type can change turn diff summaries). This avoids
  copying, reversing, and scanning the entire events array on every
  single event dispatch.

- Extract duplicated turnDiffSummaries + inferredCheckpointTurnCountByTurnId
  derivation logic from ChatView.tsx and DiffPanel.tsx into a shared
  useTurnDiffSummaries hook.
2026-02-18 08:11:35 +00:00
Julius Marminge 4a686f863e Add checkpoint diff API and hydrate turn diffs in UI
- add server support to diff filesystem checkpoints, including root/HEAD fallbacks and lazy checkpoint initialization
- wire new `providers.getCheckpointDiff` WebSocket route through provider manager and contracts
- update web app to load per-turn diffs from checkpoints and improve diff panel behavior on narrow screens
2026-02-17 23:54:49 -08:00
Julius Marminge 4eba7ac088 Add per-turn diff viewer with file targeting
- Replace placeholder diff sidebar with real turn/file patch rendering
- Link assistant messages to changed-file summaries and open targeted diffs
- Persist diff selection state in the store and cover parsing/reducer behavior with tests
- Lazy-load `DiffPanel` to reduce initial bundle cost
2026-02-17 20:03:56 -08:00
Julius Marminge d3c93752e5 Adopt Base UI components and improve editor open behavior
- migrate web UI to shared Base UI primitives (alerts, buttons, combobox, toast, etc.)
- refactor chat and branch toolbars to use new components and cleaner interactions
- add cross-platform file-manager fallback in `openInEditor` server handling
- update model contracts/tests and web dependencies to support new UI flow
2026-02-14 23:35:48 -08:00
Julius Marminge 86e7bd000c Align Electron drag headers and sidebar branding spacing
- Update `ChatView` so Electron uses a fixed 52px drag titlebar, including empty-thread state.
- Make `DiffPanel` header use the same Electron drag-region sizing.
- Consolidate Sidebar drag-region into branding row and remove separate spacer div.
- Co-authored-by: codex <[email protected]>
2026-02-12 15:43:05 -08:00
Julius MarmingeandClaude Opus 4.6 807e3d18de Add react-query, refactor BranchToolbar async state, and fix stale deps
- Add @tanstack/react-query and wire up QueryClientProvider in App.tsx
- Refactor BranchToolbar to use useQuery for branch listing and
  useMutation for checkout, create branch, and git init, replacing
  manual useState/useCallback/useEffect async patterns
- Fix branch sync effect and ChatView envMode effect to use stable
  primitive deps instead of full object references, preventing
  unnecessary re-runs on unrelated store dispatches

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-11 14:26:24 -08:00
Theo Browne 5120f7fec7 renames 2026-02-09 22:19:49 -08:00