mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
Three defects kept a hive task pending with its worker idle forever: 1. Nothing consumed the queue. `hive-mind task` only wrote a pending row; workers are records, not processes. New `hive-mind work` claims the oldest pending hive task, assigns it to an idle hive worker, runs it through `claude -p --output-format json`, and records the outcome via task_complete (or task_update status=failed). 2. task_assign/task_complete/task_cancel synced only `.claude-flow/agents/store.json`, but hive workers live in `.claude-flow/agents.json` (#1916). Assignment never marked a hive worker busy and completion never counted it. They now update whichever store holds the agent. task_update gains `result` and frees workers on `failed`. 3. `spawn --claude` fell back to passing `~/.claude.json` as --mcp-config. Where that file has no top-level `mcpServers` (a fresh desktop), Claude exits with "Invalid MCP configuration: mcpServers: Invalid input". The worker config is now always generated: servers are extracted from the source config, a `ruflo` server pinned to the running CLI is guaranteed, and CLAUDE_FLOW_CWD points it at the dispatcher's stores. Also fixes the "Track with: hive-mind task-status" hint, which named a subcommand that does not exist.