From c17df119c72ee3e17d0c487cf2254ee404dbfa7a Mon Sep 17 00:00:00 2001 From: rUv Date: Wed, 6 Aug 2025 11:44:45 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/benchmark/src/swarm=5Fbenchmark/cli/main.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/task-1754480656.json | 1 + benchmark/src/swarm_benchmark/cli/main.py | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .claude/checkpoints/task-1754480656.json diff --git a/.claude/checkpoints/task-1754480656.json b/.claude/checkpoints/task-1754480656.json new file mode 100644 index 0000000000..80c8c03e7f --- /dev/null +++ b/.claude/checkpoints/task-1754480656.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250806-114415", "task": "@ruvnet ➜ /workspaces/claude-code-flow (alpha-88) $ swarm-benchmark real hive-mind "Design hello w", "timestamp": "2025-08-06T11:44:16Z", "commit": "1d35eb9a66a90b27540b5e7faf17eb6688921c8a", "github_release": "true"} diff --git a/benchmark/src/swarm_benchmark/cli/main.py b/benchmark/src/swarm_benchmark/cli/main.py index 070a69c7e6..99b5ef256f 100644 --- a/benchmark/src/swarm_benchmark/cli/main.py +++ b/benchmark/src/swarm_benchmark/cli/main.py @@ -380,9 +380,20 @@ def hive_mind(ctx, task, queen_type, max_workers, consensus, timeout, monitor, o click.echo(f"📊 Results saved to: {output_dir}") if ctx.obj.get('verbose'): click.echo(f"Execution time: {result.duration:.2f}s") - click.echo(f"Workers spawned: {result.metrics.get('workers_spawned', 'N/A')}") + click.echo(f"Workers spawned: {result.agents_spawned}") else: - click.echo(f"❌ Hive-mind benchmark failed: {result.error}") + error_msg = "" + if result.errors: + error_msg = "; ".join(result.errors) + elif result.exit_code == -9: + error_msg = f"Command timed out or was killed (exit code: {result.exit_code})" + elif result.exit_code != 0: + error_msg = f"Command failed with exit code: {result.exit_code}" + else: + error_msg = "Unknown error" + click.echo(f"❌ Hive-mind benchmark failed: {error_msg}") + if ctx.obj.get('verbose') and result.stderr_lines: + click.echo(f"Stderr: {' '.join(result.stderr_lines[:5])}") return 1 except Exception as e: