fix: stabilize tests and logging
This commit is contained in:
1 parent
57dd0505a3
commit
ab340c82fb
46 files changed
+700
-335
No files matched your search
@@ -697,9 +697,7 @@ export class MemoryIndexManager {
|
||||
|
||||
private async removeIndexFiles(basePath: string): Promise<void> {
|
||||
const suffixes = ["", "-wal", "-shm"];
|
||||
await Promise.all(
|
||||
suffixes.map((suffix) => fs.rm(`${basePath}${suffix}`, { force: true })),
|
||||
);
|
||||
await Promise.all(suffixes.map((suffix) => fs.rm(`${basePath}${suffix}`, { force: true })));
|
||||
}
|
||||
|
||||
private ensureSchema() {
|
||||
@@ -1064,8 +1062,8 @@ export class MemoryIndexManager {
|
||||
const batch = this.settings.remote?.batch;
|
||||
const enabled = Boolean(
|
||||
batch?.enabled &&
|
||||
((this.openAi && this.provider.id === "openai") ||
|
||||
(this.gemini && this.provider.id === "gemini")),
|
||||
((this.openAi && this.provider.id === "openai") ||
|
||||
(this.gemini && this.provider.id === "gemini")),
|
||||
);
|
||||
return {
|
||||
enabled,
|
||||
|
||||
Reference in new issue
Block a user