{"version":"2.1.269","anchor":"diff-sidebar-refusal-now-uses-structured-reason-codes-with-d","canonical_anchor":"diff-sidebar-refusal-now-uses-structured-reason-codes-with-d","heading":"Diff sidebar refusal now uses structured reason codes with debounced file-history fetch","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269\/e\/diff-sidebar-refusal-now-uses-structured-reason-codes-with-d","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269","markdown":"### Diff sidebar refusal now uses structured reason codes with debounced file-history fetch\n\nThe diff sidebar now shows specific reasons when it can't display a diff, and debounces its file-history lookups\n\n**What**\n\nThe diff sidebar (the panel showing file changes) used to have separate hardcoded checks for cases like no git repository or a terminal window too narrow to display it. It now runs those checks through a single helper that returns a structured status, and shows a notification with a reason-specific message keyed to that reason. Separately, the sidebar's file-history lookup is now debounced (delayed slightly and cancelled if superseded) using a timer and an abort mechanism.\n\n**Why**\n\nThe reworked refusal messages should make it clearer to users exactly why the diff sidebar isn't showing, and debouncing the file-history fetch avoids firing off redundant lookups while the sidebar state is still changing.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}