Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(init): stop advertising a memory path the runtime ignores (#4392)

ordinary being69f4daaec6db
diff --git a/v3/@claude-flow/cli/__tests__/init-dual-native-2636-2637.test.ts b/v3/@claude-flow/cli/__tests__/init-dual-native-2636-2637.test.ts
index 66facdfc76..b3db897e4c 100644
--- a/v3/@claude-flow/cli/__tests__/init-dual-native-2636-2637.test.ts
+++ b/v3/@claude-flow/cli/__tests__/init-dual-native-2636-2637.test.ts
@@ -82,6 +82,21 @@ describe('native dual initialization (#2636)', () => {
});
});
+describe('generated runtime config (#3193)', () => {
+ it('does not advertise a memory.persistPath that getMemoryRoot ignores', async () => {
+ const options = structuredClone(MINIMAL_INIT_OPTIONS);
+ options.targetDir = projectPath;
+ options.skipGlobalClaudeMd = true;
+
+ const result = await executeInit(options);
+
+ expect(result.success).toBe(true);
+ const cfg = readFileSync(join(projectPath, '.claude-flow', 'config.yaml'), 'utf8');
+ expect(cfg).not.toMatch(/^\s*persistPath:/m);
+ expect(cfg).toContain('claude-flow.config.json');
+ });
+});
+
describe('root secret ignore (#2637)', () => {
it('appends secret/runtime entries without replacing existing project rules', async () => {
writeFileSync(join(projectPath, '.gitignore'), 'dist/\n', 'utf8');
diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.ts
index 9dd7785046..bbe8436279 100644
--- a/v3/@claude-flow/cli/src/init/executor.ts
+++ b/v3/@claude-flow/cli/src/init/executor.ts
@@ -1587,7 +1587,8 @@ swarm:
memory:
backend: ${options.runtime.memoryBackend}
enableHNSW: ${options.runtime.enableHNSW}
- persistPath: .claude-flow/data
+ # Store location is read from claude-flow.config.json (memory.persistPath);
+ # this YAML file is runtime/daemon configuration only.
cacheSize: 100
# ADR-049: Self-Learning Memory
learningBridge: