Skip to content

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 cond

Julius Marmingee1ba603605a1
diff --git a/apps/web/src/lib/projectReactQuery.ts b/apps/web/src/lib/projectReactQuery.ts
index 3fa917e96..9a218d9c2 100644
--- a/apps/web/src/lib/projectReactQuery.ts
+++ b/apps/web/src/lib/projectReactQuery.ts
@@ -35,7 +35,7 @@ export function projectSearchEntriesQueryOptions(input: {
limit,
});
},
- enabled: input.enabled ?? Boolean(input.api && input.cwd),
+ enabled: (input.enabled ?? true) && Boolean(input.api && input.cwd),
staleTime: input.staleTime ?? DEFAULT_SEARCH_ENTRIES_STALE_TIME,
placeholderData: (previous) => previous ?? EMPTY_SEARCH_ENTRIES_RESULT,
});