🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js
rUv1ce9ce407e06
diff --git a/.claude/checkpoints/task-1754356635.json b/.claude/checkpoints/task-1754356635.jsonnew file mode 100644index 0000000000..02fefafd05--- /dev/null+++ b/.claude/checkpoints/task-1754356635.json@@ -0,0 +1 @@+{"checkpoint": "task-20250805-011714", "task": "{{user_prompt}} ", "timestamp": "2025-08-05T01:17:15Z", "commit": "1f186bf5813475d3f9c357f8c5c8fd244e98e061", "github_release": "true"}diff --git a/src/cli/simple-commands/hive-mind/session-manager.js b/src/cli/simple-commands/hive-mind/session-manager.jsindex 4e7df82bcb..a7d5c8b208 100644--- a/src/cli/simple-commands/hive-mind/session-manager.js+++ b/src/cli/simple-commands/hive-mind/session-manager.js@@ -584,27 +584,44 @@ To enable persistence, see: https://github.com/ruvnet/claude-code-flow/docs/wind* Mark session as completed*/async completeSession(sessionId) {- const stmt = this.db.prepare(`- UPDATE sessions- SET status = 'completed', updated_at = CURRENT_TIMESTAMP, completion_percentage = 100- WHERE id = ?- `);+ await this.ensureInitialized();++ if (this.isInMemory) {+ // Use in-memory storage+ const session = this.memoryStore.sessions.get(sessionId);+ if (session) {+ session.status = 'completed';+ session.updated_at = new Date().toISOString();+ session.completion_percentage = 100;++ await this.logSessionEvent(sessionId, 'info', 'Session completed');+ return true;+ }+ return false;+ } else {+ // Use SQLite+ const stmt = this.db.prepare(`+ UPDATE sessions+ SET status = 'completed', updated_at = CURRENT_TIMESTAMP, completion_percentage = 100+ WHERE id = ?+ `);- const result = stmt.run(sessionId);+ const result = stmt.run(sessionId);- if (result.changes > 0) {- await this.logSessionEvent(sessionId, 'info', 'Session completed');+ if (result.changes > 0) {+ await this.logSessionEvent(sessionId, 'info', 'Session completed');- // Update swarm status- const session = this.db.prepare('SELECT swarm_id FROM sessions WHERE id = ?').get(sessionId);- if (session) {- this.db- .prepare('UPDATE swarms SET status = ? WHERE id = ?')- .run('completed', session.swarm_id);+ // Update swarm status+ const session = this.db.prepare('SELECT swarm_id FROM sessions WHERE id = ?').get(sessionId);+ if (session) {+ this.db+ .prepare('UPDATE swarms SET status = ? WHERE id = ?')+ .run('completed', session.swarm_id);+ }}- }- return result.changes > 0;+ return result.changes > 0;+ }}/**