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 <[email protected]>
This commit is contained in:
1 parent
82253525f2
commit
e9cfe372bf
2 files changed
+12
No files matched your search
@@ -582,6 +582,17 @@ export default function ChatView() {
|
||||
<h2 className="text-sm font-medium text-foreground">
|
||||
{activeThread.title}
|
||||
</h2>
|
||||
{activeProject && (
|
||||
<span className="rounded-full bg-accent px-2 py-0.5 text-[10px] text-muted-foreground/50">
|
||||
{activeProject.name}
|
||||
</span>
|
||||
)}
|
||||
{activeThread.branch && (
|
||||
<span className="rounded-full bg-accent px-2 py-0.5 font-mono text-[10px] text-muted-foreground/50">
|
||||
{activeThread.branch}
|
||||
{activeThread.worktreePath ? " (worktree)" : ""}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex items-center gap-3">
|
||||
{/* Open in editor */}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user