mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:10:45 +00:00
feat(cron): add agentId filtering to cron list (#77602)
Summary: - This PR adds optional `agentId` filtering to `cron.list`, auto-fills it for agent tool calls, exposes `openclaw cron list --agent`, updates generated protocol clients, docs, changelog, tests, and prompt fixtures. - Reproducibility: yes. The motivating behavior is source-reproducible on current main because cron tool, CLI, ... e list paths do not accept or apply `agentId`; the PR diff adds that path with focused regression coverage. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Included post-review commit in the final squash: chore: regenerate protocol schema after adding agentId to CronListParams - Included post-review commit in the final squash: feat(cron): add agentId filtering to cron list Validation: - ClawSweeper review passed for head35b692bc97. - Required merge gates passed before the squash merge. Prepared head SHA:35b692bc97Review: https://github.com/openclaw/openclaw/pull/77602#issuecomment-4375631700 Co-authored-by: zhanggttry <zhanggttry@163.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
This commit is contained in:
@@ -211,12 +211,15 @@ Manual run and inspection:
|
||||
|
||||
```bash
|
||||
openclaw cron list
|
||||
openclaw cron list --agent ops
|
||||
openclaw cron show <job-id>
|
||||
openclaw cron run <job-id>
|
||||
openclaw cron run <job-id> --due
|
||||
openclaw cron runs --id <job-id> --limit 50
|
||||
```
|
||||
|
||||
`openclaw cron list` shows all matching jobs by default. Pass `--agent <id>` to show only jobs whose effective normalized agent id matches; jobs without a stored agent id count as the configured default agent.
|
||||
|
||||
`cron runs` entries include delivery diagnostics with the intended cron target, the resolved target, message-tool sends, fallback use, and delivered state.
|
||||
|
||||
Agent and session retargeting:
|
||||
|
||||
Reference in New Issue
Block a user