authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-09 09:41:00-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-11 09:00:18-08:00
loge9cfe372bfaa35357b6c9402c5f1ff778fd72f3d
treee2406f01285f5154f50ff4e3f487e614aece734a
parent82253525f24be4b71e4e2449fa01d81f4e2d365f

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 <noreply@anthropic.com>

2 files changed, 12 insertions(+), 0 deletions(-)

apps/web/src/components/ChatView.tsx+11
......@@ -582,6 +582,17 @@ export default function ChatView() {
582582 <h2 className="text-sm font-medium text-foreground">
583583 {activeThread.title}
584584 </h2>
585 {activeProject && (
586 <span className="rounded-full bg-accent px-2 py-0.5 text-[10px] text-muted-foreground/50">
587 {activeProject.name}
588 </span>
589 )}
590 {activeThread.branch && (
591 <span className="rounded-full bg-accent px-2 py-0.5 font-mono text-[10px] text-muted-foreground/50">
592 {activeThread.branch}
593 {activeThread.worktreePath ? " (worktree)" : ""}
594 </span>
595 )}
585596 </div>
586597 <div className="flex items-center gap-3">
587598 {/* Open in editor */}
packages/contracts/src/git.ts+1
......@@ -36,6 +36,7 @@ export const gitInitInputSchema = z.object({
3636export const gitBranchSchema = z.object({
3737 name: z.string().min(1),
3838 current: z.boolean(),
39 isDefault: z.boolean(),
3940});
4041
4142export const gitWorktreeSchema = z.object({