From 9809d5dac1a0d47ff37cc84fb38bb358be934ab3 Mon Sep 17 00:00:00 2001 From: rUv Date: Wed, 6 Aug 2025 12:53:16 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/benchmark/src/swarm=5Fbenchmark/core/claude?= =?UTF-8?q?=5Fflow=5Freal=5Fexecutor.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/task-1754484773.json | 1 + .../core/claude_flow_real_executor.py | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 .claude/checkpoints/task-1754484773.json diff --git a/.claude/checkpoints/task-1754484773.json b/.claude/checkpoints/task-1754484773.json new file mode 100644 index 0000000000..ae4905cd2e --- /dev/null +++ b/.claude/checkpoints/task-1754484773.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250806-125252", "task": "you forgot --non-interactive ", "timestamp": "2025-08-06T12:52:53Z", "commit": "6183a5d19e89bfdb48403947b79f991dac972b3b", "github_release": "true"} diff --git a/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py b/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py index a1283631ac..33198669ad 100644 --- a/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py +++ b/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py @@ -313,18 +313,19 @@ class RealClaudeFlowExecutor: """Execute a real hive-mind command with built-in executor (non-interactive).""" # For hive-mind, we need to handle the spawn command differently if config.action == "spawn": - # Hive-mind spawn expects: hive-mind spawn "objective" + # Hive-mind spawn expects: hive-mind spawn --non-interactive "objective" command = [ self.claude_flow_path, "hive-mind", - "spawn" + "spawn", + "--non-interactive" # CRITICAL: Add non-interactive flag ] - # Add the task/objective as a quoted string + # Add the task/objective if config.task: - command.append(f'"{config.task}"') + command.append(config.task) - # These flags may not be supported, but we'll try + # Add spawn parameters command.extend(["--count", str(config.spawn_count)]) command.extend(["--coordination", config.coordination_mode]) else: @@ -332,7 +333,8 @@ class RealClaudeFlowExecutor: command = [ self.claude_flow_path, "hive-mind", - config.action + config.action, + "--non-interactive" # Add non-interactive for all commands ] if config.task: @@ -342,8 +344,8 @@ class RealClaudeFlowExecutor: if config.additional_flags: command.extend(config.additional_flags) - # Use a shorter timeout to avoid hanging - return self._execute_streaming_command(command, 30) # 30 second timeout + # Use appropriate timeout + return self._execute_streaming_command(command, 300) # 5 minute timeout def execute_sparc(self, config: SparcCommand) -> RealExecutionResult: """Execute a real SPARC command."""