Files
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
..