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): disable add project button for empty path
Satyam Bansal99dbe4ff02d9
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsxindex f4e8af24f..284ed0da9 100644--- a/apps/web/src/components/Sidebar.tsx+++ b/apps/web/src/components/Sidebar.tsx@@ -550,6 +550,8 @@ export default function Sidebar() {void addProjectFromPath(newCwd);};+ const canAddProject = newCwd.trim().length > 0 && !isAddingProject;+const handlePickFolder = async () => {const api = readNativeApi();if (!api || isPickingFolder) return;@@ -1223,7 +1225,7 @@ export default function Sidebar() {type="button"className="shrink-0 rounded-md bg-primary px-2.5 py-1 text-xs font-medium text-primary-foreground transition-colors duration-150 hover:bg-primary/90 disabled:opacity-60"onClick={handleAddProject}- disabled={isAddingProject}+ disabled={!canAddProject}>{isAddingProject ? "Adding..." : "Add"}</button>