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