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

🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js

rUvdd990f168c6c
diff --git a/.claude/checkpoints/1754356668.json b/.claude/checkpoints/1754356668.json
new file mode 100644
index 0000000000..69f117f10d
--- /dev/null
+++ b/.claude/checkpoints/1754356668.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250805-011748", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js", "timestamp": "2025-08-05T01:17:48Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754356669.json b/.claude/checkpoints/1754356669.json
new file mode 100644
index 0000000000..fcca4d1d90
--- /dev/null
+++ b/.claude/checkpoints/1754356669.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250805-011749", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js", "timestamp": "2025-08-05T01:17:49Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 12 +++++++ .claude-flow/metrics/task-metrics.json | 6 ++-- .claude/checkpoints/1754356649.json | 1 + .claude/checkpoints/1754356651.json | 1 + claude-flow-wiki | 0 .../simple-commands/hive-mind/session-manager.js | 37 ++++++++++++++++++++++ 7 files changed, 55 insertions(+), 4 deletions(-) "}
diff --git a/src/cli/simple-commands/hive-mind/session-manager.js b/src/cli/simple-commands/hive-mind/session-manager.js
index bb64cb5b10..2aa1fe1652 100644
--- a/src/cli/simple-commands/hive-mind/session-manager.js
+++ b/src/cli/simple-commands/hive-mind/session-manager.js
@@ -1056,6 +1056,13 @@ To enable persistence, see: https://github.com/ruvnet/claude-code-flow/docs/wind
* Clean up orphaned processes
*/
async cleanupOrphanedProcesses() {
+ await this.ensureInitialized();
+
+ if (this.isInMemory) {
+ // In-memory mode doesn't track orphaned processes
+ return 0;
+ }
+
const sessions = this.db
.prepare(
`