Skip to content

Commit 8373976

Browse files
committed
disable history store (fix sqlite issues with bun)
1 parent 79551c0 commit 8373976

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/ai/memory/memory-manager.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import { getAppConfigDir } from "../../utils/preferences";
1111
import { getMemoryModel } from "../model-config";
1212

1313
const MEMORY_USER_ID = "daemon_global";
14-
const MEMORY_DB_FILE = "memory.db";
15-
1614
/** Raw memory entry from mem0 API */
1715
interface Mem0RawEntry {
1816
id: string;
@@ -103,7 +101,6 @@ class MemoryManager {
103101

104102
try {
105103
const configDir = getAppConfigDir();
106-
const historyDbPath = path.join(configDir, MEMORY_DB_FILE);
107104
const vectorDbPath = path.join(configDir, "vector_store.db");
108105
const llmModel = getMemoryModel();
109106

@@ -124,12 +121,7 @@ class MemoryManager {
124121
dbPath: vectorDbPath,
125122
},
126123
},
127-
historyStore: {
128-
provider: "sqlite",
129-
config: {
130-
historyDbPath,
131-
},
132-
},
124+
disableHistory: true,
133125
llm: {
134126
provider: "openai",
135127
config: {
@@ -138,13 +130,11 @@ class MemoryManager {
138130
baseURL: "https://openrouter.ai/api/v1",
139131
},
140132
},
141-
historyDbPath,
142133
});
143134

144135
this._isAvailable = true;
145136
debug.info("memory-init", {
146137
message: `Memory system initialized`,
147-
historyDbPath,
148138
vectorDbPath,
149139
llmModel,
150140
});

0 commit comments

Comments
 (0)