Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

debug: add console.log to verify token is being passed from frontend

Louis Beaumontae56021a395c
diff --git a/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx b/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
index 585738553..c64a18f56 100644
--- a/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
+++ b/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
@@ -295,8 +295,10 @@ export function ObsidianSyncCard() {
return;
}
+ console.log("obsidian sync: token present, length:", appSettings.user.token.length);
+
try {
- await invoke("obsidian_run_sync", { settings, userToken: appSettings?.user?.token });
+ await invoke("obsidian_run_sync", { settings, userToken: appSettings.user.token });
} catch (e) {
console.error("Failed to run sync:", e);
toast({