@devries-cameron20 / t3code-1 / commits / e9cfe372bf
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

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>

Julius Marminge committed Feb 9, 2026 at 09:41 UTC e9cfe372bfaa35357b6c9402c5f1ff778fd72f3d
2 files changed +12
apps/web/src/components/ChatView.tsx
+11
@@ -582,6 +582,17 @@ export default function ChatView() {
582 <h2 className="text-sm font-medium text-foreground">
583 {activeThread.title}
584 </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 + )}
596 </div>
597 <div className="flex items-center gap-3">
598 {/* Open in editor */}
packages/contracts/src/git.ts
+1
@@ -36,6 +36,7 @@ export const gitInitInputSchema = z.object({
36 export const gitBranchSchema = z.object({
37 name: z.string().min(1),
38 current: z.boolean(),
39 + isDefault: z.boolean(),
40 });
41
42 export const gitWorktreeSchema = z.object({