Skip to content

fix(setup): name the cron owner on a multi-agent OpenClaw host - #6

Merged
slue merged 1 commit into
mainfrom
fix/setup-openclaw-agent
Nov 10, 2026
Merged

slue merged 1 commit into
mainfrom
fix/setup-openclaw-agent

Conversation

@slue

@slue slue commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Found in the Clawdia pilot of the plugin → gc switch (GC https://groundcontrol.makerslab.ai/tasks/c680a4fa-6c5c-49eb-982e-596d8c6c061d).

Bug: On Clawdia's Mac (Clawdia + Herbert on one gateway, OpenClaw 2026.10.10), gc setup openclaw failed to create both spawn crons:
invalid cron.add params: Multiple agents are configured, but this operation has no explicit owner … pass --agent <id>.

Fix: ownerAgent() reads agents.entries (10.x map) or agents.list (9.x array). With more than one agent, both cron add calls (spawn and nightly crons) get --agent, chosen in this order: GC_OPENCLAW_AGENT, then main, then the agent marked default, then the first one. A single-agent host gets no --agent, so fleet VPS tenants are unaffected.

Tests: multi-agent host → --agent main on all four crons; single agent → no flag; default agent and env override covered. go vet, go test ./... and validate-skills.sh are green.

Verified live: a darwin/arm64 build of this branch (0.3.1-dev.agentfix) on Clawdia created gc-worker-spawn-ai-makers-lab and gc-worker-spawn-team-philipp with agent main.

Please release as v0.3.1. Clawdia currently runs the dev build; the fleet image pins the release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RKSbCZZYkipdDF4AueeXC9

`openclaw cron add` refuses on a host with several agents ("Multiple agents
are configured, but this operation has no explicit owner") — found in the
Clawdia pilot (Clawdia + Herbert on one gateway, OpenClaw 2026.10.10): both
spawn crons failed. gc now passes --agent when agents.entries (10.x) or
agents.list (9.x) has more than one agent: GC_OPENCLAW_AGENT, else main, else
the default agent, else the first. Single-agent hosts are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKSbCZZYkipdDF4AueeXC9
@slue
slue merged commit 30545d3 into main Nov 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant