openclaw - 💡(How to fix) Fix Bug: openclaw cron edit --tools fails with agentTurn payload (isolated sessions cannot get exec permission) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#60447Fetched 2026-04-08 02:51:06
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Error Message

GatewayClientRequestError: invalid cron.update params: at /patch/payload: unexpected property 'message'; at /patch/payload: unexpected property 'toolsAllow'; at /patch/payload/kind: must be equal to constant; at /patch/payload: must match a schema in anyOf; must have required property 'jobId'; at root: unexpected property 'id'; must match a schema in anyOf

Fix Action

Fix / Workaround

Actual Behavior

GatewayClientRequestError: invalid cron.update params: at /patch/payload: unexpected property 'message'; at /patch/payload: unexpected property 'toolsAllow'; at /patch/payload/kind: must be equal to constant; at /patch/payload: must match a schema in anyOf; must have required property 'jobId'; at root: unexpected property 'id'; must match a schema in anyOf

Additional Notes

  • --session isolated alone errors: isolated/current/session cron jobs require payload.kind="agentTurn"
  • --message alone succeeds (auto-sets payload kind to agentTurn and session to isolated)
  • --message + --tools together → schema error
  • --tools + any other payload flag → schema error
  • Isolated sessions currently have NO exec permission and no way to grant it via CLI
  • exec-approvals.json defaults.security: "full" does NOT apply to isolated sessions
  • Workaround: use --session main with --system-event

Code Example

# 1. Create a cron job with systemEvent payload
openclaw cron add --name test --cron "0 16 * * *" --session main --system-event "test"

# 2. Try to edit it: change session to isolated + set tools + change to agentTurn
openclaw cron edit <id> --session isolated --tools exec,read,write --message "选题"

---

GatewayClientRequestError: invalid cron.update params: at /patch/payload: unexpected property 'message'; at /patch/payload: unexpected property 'toolsAllow'; at /patch/payload/kind: must be equal to constant; at /patch/payload: must match a schema in anyOf; must have required property 'jobId'; at root: unexpected property 'id'; must match a schema in anyOf
RAW_BUFFERClick to expand / collapse

Bug: openclaw cron edit --tools fails with agentTurn payload

Environment

  • OpenClaw version: 2026.4.1 (da64a97)
  • OS: Darwin 25.3.0 (arm64)

Steps to Reproduce

# 1. Create a cron job with systemEvent payload
openclaw cron add --name test --cron "0 16 * * *" --session main --system-event "test"

# 2. Try to edit it: change session to isolated + set tools + change to agentTurn
openclaw cron edit <id> --session isolated --tools exec,read,write --message "选题"

Expected Behavior

Cron job updated to isolated session with toolsAllow: ["exec","read","write"] and agentTurn payload.

Actual Behavior

GatewayClientRequestError: invalid cron.update params: at /patch/payload: unexpected property 'message'; at /patch/payload: unexpected property 'toolsAllow'; at /patch/payload/kind: must be equal to constant; at /patch/payload: must match a schema in anyOf; must have required property 'jobId'; at root: unexpected property 'id'; must match a schema in anyOf

Additional Notes

  • --session isolated alone errors: isolated/current/session cron jobs require payload.kind="agentTurn"
  • --message alone succeeds (auto-sets payload kind to agentTurn and session to isolated)
  • --message + --tools together → schema error
  • --tools + any other payload flag → schema error
  • Isolated sessions currently have NO exec permission and no way to grant it via CLI
  • exec-approvals.json defaults.security: "full" does NOT apply to isolated sessions
  • Workaround: use --session main with --system-event

extent analysis

TL;DR

The openclaw cron edit command fails with an agentTurn payload when trying to set tools, likely due to schema validation errors.

Guidance

  • The error message indicates that the --message and --tools flags together cause a schema error, suggesting that the combination of these flags is not supported.
  • Try using the --message flag alone to auto-set the payload kind to agentTurn and session to isolated, and then edit the cron job separately to add tools.
  • Consider using the workaround mentioned in the additional notes: use --session main with --system-event instead of isolated sessions.
  • Verify that the isolated session's lack of exec permission is the root cause of the issue, and explore alternative solutions that do not require exec permission.

Example

No code snippet is provided as the issue does not require a code-level fix.

Notes

The issue is specific to the OpenClaw version 2026.4.1 and Darwin OS, and may not apply to other versions or environments. The lack of exec permission in isolated sessions and the inability to grant it via CLI may be a contributing factor to the issue.

Recommendation

Apply workaround: use --session main with --system-event instead of isolated sessions, as this is a known working alternative.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING