{"version":"2.1.228","anchor":"diff-sidebar-with-switchable-tabs-and-comparison-base","canonical_anchor":"diff-sidebar-with-switchable-tabs-and-comparison-base","heading":"Diff sidebar with switchable tabs and comparison base","tier":"soon","area":"Diff Panel","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.228\/e\/diff-sidebar-with-switchable-tabs-and-comparison-base","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.228","markdown":"### Diff sidebar with switchable tabs and comparison base\n\nA diff sidebar can switch tabs and cycle its comparison base, remembered in a setting.\n\n**What**\n\nNew code drives a side panel that toggles between a diff view and the conversation, and cycles what the diff is compared against: the session's starting point, uncommitted changes, or the branch. Both the tab switch and the base switch emit telemetry. Opening is gated on the `diffSidebarOpen` setting, needs a terminal at least 144 columns wide unless that setting is explicitly true, and reports a message when the directory is not a git repository. The chosen base persists as `diffSidebarBaseMode`.\n\n**Evidence**\n\n`repl_diff_base_switch`\n\n- Area: Diff Panel\n- Names: `diffSidebarOpen`, `diffSidebarBaseMode`\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 4\/5\n- Present in the build but not switched on"}