fix(test): use canonical memory fd repro config

This commit is contained in:
Vincent Koc 2026-07-04 13:43:09 +02:00
parent ed2eebd31d
commit d6ed2c392c
No known key found for this signature in database
2 changed files with 1 additions and 6 deletions

View file

@ -331,7 +331,6 @@ export function writeConfig({ homeDir, workspaceDir, port, token }) {
const configDir = path.join(homeDir, ".openclaw");
fs.mkdirSync(configDir, { recursive: true });
const configPath = path.join(configDir, "openclaw.json");
const indexPath = path.join(configDir, "memory", "main.sqlite");
const config = {
agents: {
defaults: {
@ -340,7 +339,6 @@ export function writeConfig({ homeDir, workspaceDir, port, token }) {
provider: "none",
model: "",
store: {
path: indexPath,
vector: { enabled: false },
},
sync: {

View file

@ -198,13 +198,10 @@ describe("check-memory-fd-repro", () => {
const config = JSON.parse(fs.readFileSync(configPath, "utf8"));
const memorySearch = config.agents.defaults.memorySearch;
expect(memorySearch.store).toEqual({ vector: { enabled: false } });
expect(memorySearch).toMatchObject({
provider: "none",
model: "",
store: {
path: path.join(homeDir, ".openclaw", "memory", "main.sqlite"),
vector: { enabled: false },
},
sync: {
onSearch: false,
onSessionStart: false,