Repository navigation
fix(setup): name the cron owner on a multi-agent OpenClaw host - #6
Merged
Merged
Conversation
`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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 openclawfailed 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()readsagents.entries(10.x map) oragents.list(9.x array). With more than one agent, bothcron addcalls (spawn and nightly crons) get--agent, chosen in this order:GC_OPENCLAW_AGENT, thenmain, then the agent markeddefault, then the first one. A single-agent host gets no--agent, so fleet VPS tenants are unaffected.Tests: multi-agent host →
--agent mainon all four crons; single agent → no flag; default agent and env override covered.go vet,go test ./...andvalidate-skills.share green.Verified live: a darwin/arm64 build of this branch (
0.3.1-dev.agentfix) on Clawdia createdgc-worker-spawn-ai-makers-labandgc-worker-spawn-team-philippwithagent 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