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: statusline generator always overwrites legacy copy from writeHelpers

rUvcc44cac11f99
diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.ts
index 36ea37b266..7bb0c56c41 100644
--- a/v3/@claude-flow/cli/src/init/executor.ts
+++ b/v3/@claude-flow/cli/src/init/executor.ts
@@ -1131,17 +1131,15 @@ async function writeStatusline(
}
}
- // ALWAYS generate statusline.cjs — settings.json references this path
- // regardless of whether advanced statusline files were also copied.
+ // ALWAYS generate statusline.cjs — the generated version includes AgentDB
+ // vectors/size, tests, ADRs, hooks, and integration stats that the
+ // pre-installed static copy in the npm package lacks.
+ // This must overwrite any copy from writeHelpers() which copies the legacy file.
const statuslineScript = generateStatuslineScript(options);
const statuslinePath = path.join(helpersDir, 'statusline.cjs');
- if (!fs.existsSync(statuslinePath) || options.force) {
- fs.writeFileSync(statuslinePath, statuslineScript, 'utf-8');
- result.created.files.push('.claude/helpers/statusline.cjs');
- } else {
- result.skipped.push('.claude/helpers/statusline.cjs');
- }
+ fs.writeFileSync(statuslinePath, statuslineScript, 'utf-8');
+ result.created.files.push('.claude/helpers/statusline.cjs');
}
/**