openclaw - 💡(How to fix) Fix Cron job: ANNOUNCE_SKIP causes agent to skip tasks without warning [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#68561Fetched 2026-04-19 15:10:08
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Error Message

  • No error or warning is logged when ANNOUNCE_SKIP causes a skip

Root Cause

ANNOUNCE_SKIP appears to be a special control instruction that causes the agent to skip execution entirely. When it appears anywhere in the payload message (even at the end), the agent treats it as a skip signal rather than a completion signal.

Code Example

Task 1: check status
   Task 2: send report
   Reply ANNOUNCE_SKIP when done.
RAW_BUFFERClick to expand / collapse

Cron job ANNOUNCE_SKIP behavior is confusing and undocumented

Problem Description

When a cron job with sessionTarget: "main" has a payload containing ANNOUNCE_SKIP, the agent appears to skip the task entirely without any indication of why. The resulting behavior is that only partial output (e.g., just an Embedding status check) is sent, making it appear the job failed silently.

Steps to Reproduce

  1. Create a cron job with sessionTarget: "main" and delivery.mode: "channel"
  2. Set payload message to something like:
    Task 1: check status
    Task 2: send report
    Reply ANNOUNCE_SKIP when done.
  3. Trigger the cron job
  4. Expected: Full task execution → push report via Feishu
  5. Actual: Agent skips the main tasks, sends only partial output (Embedding status)

Root Cause

ANNOUNCE_SKIP appears to be a special control instruction that causes the agent to skip execution entirely. When it appears anywhere in the payload message (even at the end), the agent treats it as a skip signal rather than a completion signal.

Impact

  • Jobs configured with ANNOUNCE_SKIP in the payload appear to work (status: ok) but produce no useful output
  • No error or warning is logged when ANNOUNCE_SKIP causes a skip
  • The difference between isolated (shell script execution) and main (agent execution) is not clearly documented
  • Payload content behaves very differently depending on session type:
    • isolated: payload is executed as a shell command
    • main: payload is interpreted as agent instructions

Suggested Improvements

  1. Documentation: Clearly document the difference between isolated and main session targets, especially how the payload is interpreted in each case

  2. Warning: If ANNOUNCE_SKIP is detected in a main session payload, log a warning

  3. Dry-run mode: A cron job dry-run <id> command to test a job without waiting for its schedule

  4. Config validation: Validate that ANNOUNCE_SKIP only appears in appropriate contexts

Environment

  • OpenClaw: 2026.4.15
  • macOS: Darwin 25.4.0
  • Node: v25.8.1
  • Cron jobs affected: Any main session job with multi-step payloads

extent analysis

TL;DR

To fix the confusing behavior of cron jobs with ANNOUNCE_SKIP, clearly document the difference between isolated and main session targets and consider logging a warning when ANNOUNCE_SKIP is detected in a main session payload.

Guidance

  • Review and update documentation to clearly explain how payload content is interpreted in isolated versus main session targets.
  • Consider adding a warning log when ANNOUNCE_SKIP is detected in a main session payload to alert users of potential issues.
  • Implement a dry-run mode for cron jobs to test their configuration without waiting for their scheduled execution.
  • Validate cron job configurations to ensure ANNOUNCE_SKIP only appears in appropriate contexts.

Example

No code snippet is provided as the issue focuses on configuration and documentation rather than code changes.

Notes

The provided solution focuses on improving documentation, logging, and configuration validation. It does not directly address the skipping behavior caused by ANNOUNCE_SKIP but aims to mitigate its impact through better warnings and testing capabilities.

Recommendation

Apply workaround: Improve documentation and add warning logs for ANNOUNCE_SKIP in main session payloads to enhance user awareness and job reliability.

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

openclaw - 💡(How to fix) Fix Cron job: ANNOUNCE_SKIP causes agent to skip tasks without warning [1 participants]