| author | |
| committer | |
| log | e9cfe372bfaa35357b6c9402c5f1ff778fd72f3d |
| tree | e2406f01285f5154f50ff4e3f487e614aece734a |
| parent | 82253525f24be4b71e4e2449fa01d81f4e2d365f |
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() { |
| 582 | 582 | <h2 className="text-sm font-medium text-foreground"> |
| 583 | 583 | {activeThread.title} |
| 584 | 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 | )} | |
| 585 | 596 | </div> |
| 586 | 597 | <div className="flex items-center gap-3"> |
| 587 | 598 | {/* Open in editor */} |
packages/contracts/src/git.ts+1| ... | ... | @@ -36,6 +36,7 @@ export const gitInitInputSchema = z.object({ |
| 36 | 36 | export const gitBranchSchema = z.object({ |
| 37 | 37 | name: z.string().min(1), |
| 38 | 38 | current: z.boolean(), |
| 39 | isDefault: z.boolean(), | |
| 39 | 40 | }); |
| 40 | 41 | |
| 41 | 42 | export const gitWorktreeSchema = z.object({ |