zeroclaw-labs/zeroclaw · error · anyhow::Error

delivery.to is required for announce mode

Error message

delivery.to is required for announce mode

What it means

Error "delivery.to is required for announce mode" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at crates/zeroclaw-runtime/src/cron/mod.rs:159

    if delivery.mode.eq_ignore_ascii_case("none") {
        return Ok(());
    }
    if !delivery.mode.eq_ignore_ascii_case("announce") {
        bail!("unsupported delivery mode: {}", delivery.mode);
    }

    let channel = delivery.channel.as_deref().map(str::trim);
    if channel.filter(|value| !value.is_empty()).is_none() {
        bail!("delivery.channel is required for announce mode");
    }

    let has_target = delivery
        .to
        .as_deref()
        .map(str::trim)
        .is_some_and(|value| !value.is_empty());
    if !has_target {
        bail!("delivery.to is required for announce mode");
    }

    Ok(())
}

pub fn add_shell_job_with_approval(
    config: &Config,
    agent_alias: &str,
    name: Option<String>,
    schedule: Schedule,
    command: &str,
    delivery: Option<DeliveryConfig>,
    approved: bool,
) -> Result<CronJob> {
    add_shell_job_with_approval_and_format(
        config,
        agent_alias,
        name,

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Set delivery.to (channel/target) for the cron job when using announce mode.

When it happens

Trigger: Thrown at crates/zeroclaw-runtime/src/cron/mod.rs:159 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23). Data as JSON: /api/errors/e2c3e67524068f90. Report an issue: GitHub.