From e9cfe372bfaa35357b6c9402c5f1ff778fd72f3d Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 9 Feb 2026 09:41:00 -0800 Subject: [PATCH] Add light mode support for git branch picker and default branch label Replace hardcoded dark-mode colors with theme-aware semantic classes (bg-popover, text-foreground, bg-accent, etc.) so the branch picker works in both light and dark mode. Detect the real default branch via git symbolic-ref and show a "default" label (with "current" taking precedence when both apply). Co-Authored-By: Claude Opus 4.6 --- apps/web/src/components/ChatView.tsx | 11 +++++++++++ packages/contracts/src/git.ts | 1 + 2 files changed, 12 insertions(+) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 3c28c7da551713933e03debef0d306ea76c1c8b0..128e3f2e9188db21e06a53b3ef081c1b2951f7ad 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -582,6 +582,17 @@ export default function ChatView() {

{activeThread.title}

+ {activeProject && ( + + {activeProject.name} + + )} + {activeThread.branch && ( + + {activeThread.branch} + {activeThread.worktreePath ? " (worktree)" : ""} + + )}
{/* Open in editor */} diff --git a/packages/contracts/src/git.ts b/packages/contracts/src/git.ts index 8d1f22d1d8dd915d527dc8bd673f82857c3a43d3..4f312de47ccd0867beb0aaf0c7d15a6efc06f68e 100644 --- a/packages/contracts/src/git.ts +++ b/packages/contracts/src/git.ts @@ -36,6 +36,7 @@ export const gitInitInputSchema = z.object({ export const gitBranchSchema = z.object({ name: z.string().min(1), current: z.boolean(), + isDefault: z.boolean(), }); export const gitWorktreeSchema = z.object({ -- 2.54.0