mirror of
https://github.com/stablyai/orca.git
synced 2026-10-03 08:02:12 +00:00
fix(sidebar): guard kanban worktree sort against undefined displayName (crash 99657ab1) A worktree reached the sidebar with an undefined displayName, so the Manual-sort comparator ran `a.displayName.localeCompare(...)` and threw `TypeError: Cannot read properties of undefined (reading localeCompare)`, unmounting the sidebar.worktrees error boundary. Route both kanban comparators through a null-safe compareDisplayName so a missing name only affects tie-break order instead of crashing. Behavior is unchanged when displayName is present. Adds regression tests for both the manual and recent sort paths. @