🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js

This commit is contained in:
rUv committed 2025-08-12 18:35:46 +00:00
1 parent 766306543d
commit 470ce0e4e9
3 files changed
+2 -2

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250812-183527", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T18:35:27Z", "type": "pre-edit", "original_branch": "alpha-89"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250812-183529", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T18:35:29Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 6 +- .claude-flow/metrics/system-metrics.json | 6116 +----------------------------- .claude-flow/metrics/task-metrics.json | 14 +- .claude/checkpoints/1755023719.json | 1 + .claude/checkpoints/1755023721.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/stream-chain.js | 1 - 7 files changed, 90 insertions(+), 6049 deletions(-) "}
-2
View File
@@ -448,12 +448,10 @@ async function executeStreamStep(prompt, inputStream, isLast, flags = {}) {
timedOut = true; // Mark as timed out
claudeProcess.kill();
console.log('⚠️ Claude CLI timed out, falling back to mock mode...');
console.log(' Debug: Calling mockStreamStep with fallback...');
// Fallback to mock implementation with a fresh start time
try {
mockStreamStep(prompt, inputStream, isLast, { ...flags, mock: true }, safeResolve, Date.now());
} catch (error) {
console.error(' Debug: Error in timeout fallback:', error);
safeResolve({
success: false,
duration: Date.now() - startTime,