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

rUv655190a0bc5c
diff --git a/.claude/checkpoints/1755024002.json b/.claude/checkpoints/1755024002.json
new file mode 100644
index 0000000000..d341010d09
--- /dev/null
+++ b/.claude/checkpoints/1755024002.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250812-184002", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T18:40:02Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755024003.json b/.claude/checkpoints/1755024003.json
new file mode 100644
index 0000000000..d5d8e261b7
--- /dev/null
+++ b/.claude/checkpoints/1755024003.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250812-184003", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T18:40:03Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/task-1755023932.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/stream-chain.js | 24 ++++++++++++++++-------- 6 files changed, 45 insertions(+), 12 deletions(-) "}
diff --git a/src/cli/simple-commands/stream-chain.js b/src/cli/simple-commands/stream-chain.js
index 31a3602a83..7f392939c1 100644
--- a/src/cli/simple-commands/stream-chain.js
+++ b/src/cli/simple-commands/stream-chain.js
@@ -375,20 +375,12 @@ async function executeStreamStep(prompt, inputStream, isLast, flags = {}) {
// Build command arguments
const args = ['-p'];
- // Add input format if we have input stream
- if (inputStream) {
- args.push('--input-format', 'stream-json');
- // When input format is stream-json, output format must also be stream-json
+ // For now, avoid stream-json input chaining due to format complexity
+ // Each step runs independently for better reliability
+ if (!isLast || flags.json) {
args.push('--output-format', 'stream-json');
// stream-json output requires --verbose
args.push('--verbose');
- } else {
- // Add output format unless it's the last step and user wants text
- if (!isLast || flags.json) {
- args.push('--output-format', 'stream-json');
- // stream-json output requires --verbose
- args.push('--verbose');
- }
}
// Add the prompt