Files
Cursor Agent 14124ed7e3 Fix fallback selecting first turn when selectedDiffTurnId is null
When selectedDiffTurnId is null (diff panel closed), the find() returns
undefined and the ?? fallback incorrectly selects turnDiffSummaries[0].
This can cause selectedTurnMissingPatchBody to be true after persistence
restore, triggering an unwanted auto-session-start for diff hydration.

Guard against null the same way DiffPanel already does: return undefined
when selectedDiffTurnId is null instead of falling through to the
fallback.
2026-02-18 09:44:16 +00:00
..