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/stream-chain.js

rUv78de72518099
diff --git a/.claude/checkpoints/1755023619.json b/.claude/checkpoints/1755023619.json
new file mode 100644
index 0000000000..5ad4f8d732
--- /dev/null
+++ b/.claude/checkpoints/1755023619.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250812-183339", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T18:33:39Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755023620.json b/.claude/checkpoints/1755023620.json
new file mode 100644
index 0000000000..079cabee10
--- /dev/null
+++ b/.claude/checkpoints/1755023620.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250812-183340", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T18:33:40Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 6 +- .claude-flow/metrics/system-metrics.json | 6110 +----------------------------- .claude-flow/metrics/task-metrics.json | 14 +- .claude/checkpoints/1755023595.json | 1 + .claude/checkpoints/1755023597.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/stream-chain.js | 1 + 7 files changed, 70 insertions(+), 6063 deletions(-) "}
diff --git a/src/cli/simple-commands/stream-chain.js b/src/cli/simple-commands/stream-chain.js
index 562a564a9c..e2c9a008ec 100644
--- a/src/cli/simple-commands/stream-chain.js
+++ b/src/cli/simple-commands/stream-chain.js
@@ -420,6 +420,13 @@ async function executeStreamStep(prompt, inputStream, isLast, flags = {}) {
claudeProcess.on('close', (code) => {
clearTimeout(timeoutId); // Clear timeout since process completed
+
+ // Don't resolve if we already timed out and started mock fallback
+ if (timedOut) {
+ console.log(' Debug: Process closed after timeout, ignoring...');
+ return;
+ }
+
const duration = Date.now() - startTime;
if (flags.verbose) {