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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(settings): use correct store path to match backend
louis030195b5f947d6d2c1
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsxindex f84cbf0ac..4c262705a 100644--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx@@ -1,7 +1,6 @@import { homeDir } from "@tauri-apps/api/path";import { platform } from "@tauri-apps/plugin-os";import { Store } from "@tauri-apps/plugin-store";-import { localDataDir } from "@tauri-apps/api/path";import React, { createContext, useContext, useEffect, useState } from "react";import posthog from "posthog-js";import localforage from "localforage";@@ -256,8 +255,9 @@ let _store: Promise<Store> | undefined;export const getStore = async () => {if (!_store) {- const dir = await localDataDir();- _store = Store.load(`${dir}/screenpipe/store.bin`, {+ // Use homeDir to match Rust backend's get_base_dir which uses $HOME/.screenpipe+ const dir = await homeDir();+ _store = Store.load(`${dir}/.screenpipe/store.bin`, {autoSave: false,defaults: {},});