Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

Merge remote-tracking branch 'origin/main' into feat/microsoft-calendar-graph

Chadpihabac687173ed3
diff --cc src/components/chat/useChatStreaming.ts
index eb9e3e1be,ee8277d0f..4db0b2a01
--- a/src/components/chat/useChatStreaming.ts
+++ b/src/components/chat/useChatStreaming.ts
@@@ -131,19 -158,17 +158,21 @@@ export function useChatStreaming(
let registry: ToolRegistry | null = null;
if (supportsTools) {
const scopeKey = scope ? `${scope.spaceId}:${scope.folderId ?? ""}` : "";
+ // The calendar tool reads the shared provider-deduped events table,
+ // so any connected provider enables it.
+ const calendarConnected =
+ settings.gcalConnected || settings.mcalConnected || settings.appleCalendarConnected;
- const cacheKey = `${settings.isSignedIn}-${calendarConnected}-${settings.cloudBackupEnabled}-${scopeKey}`;
+ const webSearchEnabled = isWebSearchAllowed(usePolicyStore.getState());
- const cacheKey = `${settings.isSignedIn}-${settings.gcalConnected}-${settings.cloudBackupEnabled}-${scopeKey}-${webSearchEnabled}`;
++ const cacheKey = `${settings.isSignedIn}-${calendarConnected}-${settings.cloudBackupEnabled}-${scopeKey}-${webSearchEnabled}`;
if (toolRegistryRef.current?.key === cacheKey) {
registry = toolRegistryRef.current.registry;
} else {
registry = createToolRegistry({
isSignedIn: settings.isSignedIn,
- gcalConnected: settings.gcalConnected,
+ calendarConnected,
cloudBackupEnabled: settings.cloudBackupEnabled,
searchScope: scope,
+ webSearchEnabled,
});
toolRegistryRef.current = { key: cacheKey, registry };
}