fix: prevent sqlite-vec duplicate id failures

This commit is contained in:
Peter Steinberger
2026-01-18 13:55:56 +00:00
parent f3ef609839
commit 20c26eb303
3 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
import os from "node:os";
import { beforeEach, describe, expect, it } from "vitest";
import type { PluginRuntime } from "clawdbot/plugin-sdk";
@@ -8,7 +10,11 @@ import { setMatrixRuntime } from "./runtime.js";
describe("matrix directory", () => {
beforeEach(() => {
setMatrixRuntime({} as PluginRuntime);
setMatrixRuntime({
state: {
resolveStateDir: () => os.tmpdir(),
},
} as PluginRuntime);
});
it("lists peers and groups from config", async () => {