fix(web): diff panel opens on all branch changes, not just uncommitted (#15005)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Theo BrowneandClaude Opus 5.5 authored and GitHub committed 2026-10-02 22:52:42 -07:00
1 parent 8283b481a3
commit d1034d62b2
18 files changed
+611 -176

No files matched your search

+2 -1
View File
@@ -10,7 +10,8 @@ export type DiffPanelSelection =
| { kind: "unstaged" }
| { kind: "turn"; turnId: RunId; filePath: string | null; revealRequestId: number };
const DEFAULT_SELECTION: DiffPanelSelection = { kind: "unstaged" };
// "branch" is the Changes view: everything this checkout changed since its base.
const DEFAULT_SELECTION: DiffPanelSelection = { kind: "branch", baseRef: null };
interface DiffPanelStoreState {
byThreadKey: Record<string, DiffPanelSelection>;