Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(web): allow closing diff panel in non-git projects (#2413)
kp86c94b48522b
diff --git a/apps/web/src/components/chat/ChatHeader.tsx b/apps/web/src/components/chat/ChatHeader.tsxindex cda0bb136..3f2c480c5 100644--- a/apps/web/src/components/chat/ChatHeader.tsx+++ b/apps/web/src/components/chat/ChatHeader.tsx@@ -149,14 +149,14 @@ export const ChatHeader = memo(function ChatHeader({aria-label="Toggle diff panel"variant="outline"size="xs"- disabled={!isGitRepo}+ disabled={!isGitRepo && !diffOpen}><DiffIcon className="size-3" /></Toggle>}/><TooltipPopup side="bottom">- {!isGitRepo+ {!isGitRepo && !diffOpen? "Diff panel is unavailable because this project is not a git repository.": diffToggleShortcutLabel? `Toggle diff panel (${diffToggleShortcutLabel})`