Skip to content

fix(cli): cron --channel help names a channel plugin id - #124655

Merged
vincentkoc merged 1 commit into
openclaw:mainfrom
MaheshBhushan:fix/issue-124646
Aug 20, 2026
Merged

vincentkoc merged 1 commit into
openclaw:mainfrom
MaheshBhushan:fix/issue-124646

Conversation

@MaheshBhushan

@MaheshBhushan MaheshBhushan commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #124646

AI-assisted PR (per CONTRIBUTING).

What Problem This Solves

Fixes an issue where openclaw cron add --help and openclaw cron edit --help
described --channel as last|<channel-id>. Operators can reasonably read
that as a per-conversation Slack, Discord, or Telegram identifier, but this
option selects a channel plugin such as slack, discord, or telegram.

Current main already rejects unknown explicit channel values before creating
the job. The remaining bug is misleading operator guidance, not delayed
delivery failure.

Why This Change Was Made

The unloaded-registry fallback now says last|<channel-plugin-id>. The existing
listChannelPlugins() behavior is unchanged, so a loaded registry still renders
the concrete plugin ids. The automation guide now uses the same wording.

This does not change runtime validation, channel resolution, configuration,
protocols, or the startup metadata/catalog surface.

User Impact

Cron add/edit help now names the value space operators must supply. The same
shared helper also corrects --failure-alert-channel.

Evidence

  • Sanitized direct AWS Crabbox, exact public source head
    006d0b1ebdb3ead19c4be51c9e7e29642f89efb3:
    https://crabbox.openclaw.ai/portal/runs/run_2bf043313968
  • pnpm test src/cli/cron-cli/shared.test.ts: 79 passed
  • pnpm openclaw cron add --help:
    Delivery channel (last|<channel-plugin-id>)
  • pnpm openclaw cron edit --help:
    Delivery channel (last|<channel-plugin-id>) and
    Failure alert channel (last|<channel-plugin-id>)
  • The proof asserted the old last|<channel-id> text was absent from both
    command outputs.
  • Autoreview on the final three-file rewrite: no P0/P1 findings.
  • Final surface: production +3/-2 (net +1), tests +2/-2, docs +1/-1.

Exact-head CI and ClawSweeper review are pending on
5d565b3f25e61cd4280731bff8294650d69ab1e0.

Punchcard-Session: clear-timber-orchard-n1

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Aug 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 4:10 AM ET / 08:10 UTC.

ClawSweeper review

What this changes

The PR changes the cron --channel fallback help and automation guide to say that the value is a channel plugin identifier, with a focused helper regression test.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

The patch correctly fixes misleading cron help on current main; keep this PR open to finish exact-head CI rather than closing it as obsolete.

Priority: P2
Reviewed head: 5d565b3f25e61cd4280731bff8294650d69ab1e0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned CLI wording repair with credible terminal proof; exact-head CI is the remaining merge gate.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body provides sanitized Crabbox terminal output for both affected commands after the wording change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides sanitized Crabbox terminal output for both affected commands after the wording change.
Evidence reviewed 7 items Current-main defect: Current main still returns last|&lt;channel-id> when no plugins are loaded, so the central operator-facing problem is not already implemented.
Runtime contract and callers: The channel normalizer resolves input through registered channel-plugin entries, while both cron add/edit help surfaces consume the same shared helper; the renamed placeholder matches that value space.
Focused regression coverage: The changed test covers unloaded-registry fallback text and preserves the distinct loaded-registry behavior that lists concrete plugin IDs.
Findings None None.
Security None None.

Live Verification

Command: pnpm openclaw cron edit --help

Result: PASS (completed)

  --command-cwd ‹path›                 Set command payload working directory
  --command-env ‹KEY=VALUE›            Set command payload environment overrides (repeatable)
  --command-input ‹text›               Set command payload stdin
  --cron ‹expr›                        Set cron expression
  --delete-after-run                   Delete one-shot job after it succeeds (default: false)
  --deliver                            Deprecated (use --announce). Fallback-delivers final text to a chat.
  --description ‹text›                 Set description
  --disable                            Disable job (default: false)
  --display-name ‹name›                Set human-readable display name
  --enable                             Enable job (default: false)
  --every ‹duration›                   Set interval duration like 10m
  --exact                              Disable cron staggering (set stagger to 0)
  --expect-final                       Wait for final response (agent) (default: false)
  --failure-alert                      Enable failure alerts for this job
  --failure-alert-account-id ‹id›      Account ID for failure alert channel (multi-account setups)
  --failure-alert-after ‹n›            Alert after N consecutive job errors
  --failure-alert-channel ‹channel›    Failure alert channel (last|‹channel-plugin-id›)
  --failure-alert-cooldown ‹duration›  Minimum time between alerts (e.g. 1h, 30m)
  --failure-alert-exclude-skipped      Alert only on execution errors
  --failure-alert-include-skipped      Count consecutive skipped runs toward alerts
  --failure-alert-mode ‹mode›          Failure alert delivery mode (announce or webhook)
  --failure-alert-to ‹dest›            Failure alert destination
  --fallbacks ‹list›                   Fallback model list for agent jobs
  -h, --help                           Display help for command
  --json                               Explicit machine-output spelling (command results are JSON by default)
  --keep-after-run                     Keep one-shot job after it succeeds (default: false)
  --light-context                      Enable lightweight bootstrap context for agent jobs
  --message ‹text›                     Set agentTurn payload message
  --model ‹model›                      Model override for agent jobs
  --name ‹name›                        Set name
  --no-best-effort-deliver             Fail job when delivery fails
  --no-deliver                         Disable runner fallback delivery
  --no-failure-alert                   Disable failure alerts for this job
  --no-light-context                   Disable lightweight bootstrap context for agent jobs
  --no-output-timeout-seconds ‹n›      No-output timeout seconds for command jobs
  --output-max-bytes ‹n›               Maximum captured stdout/stderr bytes for command jobs
  --pacing-max ‹duration›              Set maximum delay for a dynamic next check
  --pacing-min ‹duration›              Set minimum delay for a dynamic next check
  --password ‹password›                Gateway password (if required)
  --port ‹port›                        Local Gateway port
  --script ‹file|-›                    Set headless script payload from file, or - for stdin
  --script-timeout-seconds ‹n›         Set script wall-clock timeout seconds
  --script-tool-budget ‹n›             Set maximum script tool calls
  --session ‹target›                   Session target (main|isolated)
  --session-key ‹key›                  Set session key for job routing
  --stagger ‹duration›                 Cron stagger window (e.g. 30s, 5m)
  --stream-batch-ms ‹n›                Set stream quiet-window delay in milliseconds
  --stream-command ‹json›              Set stream source argv as a JSON array of strings
  --stream-cwd ‹path›                  Set stream source working directory
  --stream-match ‹regex›               Set stream match regex source
  --stream-max-batch-bytes ‹n›         Set maximum UTF-8 bytes per stream batch
  --stre
… output truncated …

Assertions:

  • PASS expect_output: Delivery channel (last|‹channel-plugin-id›)
  • PASS expect_output: Failure alert channel (last|‹channel-plugin-id›)

How this fits together

Cron add and edit commands build their help text from the loaded channel-plugin registry. When that registry is unavailable, a shared fallback placeholder guides operators before cron delivery validation and routing use the selected plugin.

flowchart LR
  A[Operator runs cron help] --> B[Cron add or edit command]
  B --> C[Shared channel option helper]
  C --> D{Plugin registry loaded?}
  D -->|yes| E[Listed plugin IDs]
  D -->|no| F[Plugin-ID placeholder]
  E --> G[CLI help for delivery and alerts]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head CI is not complete: the supplied check digest includes one failed Node shard without a failure log and several pending shards, so merge readiness remains unproven.
  • Complete next step (P2) - No narrow code repair is evidenced from the available failed-check summary; a reviewer should inspect or rerun that shard and let exact-head CI determine merge readiness.
Agent review details

Security

None.

PR surface

Source +1, Tests 0, Docs 0. Total +1 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 3 2 +1
Tests 1 2 2 0
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 6 5 +1

Review metrics

Metric Value Why it matters
Production versus test delta runtime +3/-2; tests +2/-2; docs +1/-1 The one-line runtime increase is explanatory contract context for the fallback; behavior remains a single shared literal used by all affected help surfaces.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #124646
Summary: This PR is the focused candidate fix for the linked report's unloaded-registry cron-help wording defect.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land this narrow shared-helper and documentation correction once the failed exact-head check is explained or repaired and the required head checks are green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land this narrow shared-helper and documentation correction once the failed exact-head check is explained or repaired and the required head checks are green.

Do we have a high-confidence way to reproduce the issue?

Yes, source-reproducible: current main returns the ambiguous fallback from src/cli/cron-cli/shared.ts:85, and the PR body records the affected add/edit help output.

Is this the best way to solve the issue?

Yes. Updating the one shared fallback and its matching guide fixes every consumer of the unloaded-registry help without changing delivery validation or plugin routing.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4fd208fc6064.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides sanitized Crabbox terminal output for both affected commands after the wording change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides sanitized Crabbox terminal output for both affected commands after the wording change.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Misleading CLI guidance can misconfigure cron delivery, but this focused wording repair has limited blast radius and does not alter delivery behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides sanitized Crabbox terminal output for both affected commands after the wording change.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides sanitized Crabbox terminal output for both affected commands after the wording change.

Evidence

What I checked:

  • Current-main defect: Current main still returns last|&lt;channel-id> when no plugins are loaded, so the central operator-facing problem is not already implemented. (src/cli/cron-cli/shared.ts:85, 4fd208fc6064)
  • Runtime contract and callers: The channel normalizer resolves input through registered channel-plugin entries, while both cron add/edit help surfaces consume the same shared helper; the renamed placeholder matches that value space. (src/channels/registry-normalize.ts:12, 5d565b3f25e6)
  • Focused regression coverage: The changed test covers unloaded-registry fallback text and preserves the distinct loaded-registry behavior that lists concrete plugin IDs. (src/cli/cron-cli/shared.test.ts:677, 5d565b3f25e6)
  • Documentation consistency: The guide previously told operators to pass &lt;id> despite nearby examples using a provider/plugin name such as telegram; the PR aligns this wording with the CLI contract. Public docs: docs/automation/cron-jobs.md. (docs/automation/cron-jobs.md:368, 4fd208fc6064)
  • History and ownership: Current-main blame attributes the retained fallback line to commit 1931666; its history also shows sustained cron CLI maintenance by Peter Steinberger. (src/cli/cron-cli/shared.ts:85, 19316660e418)
  • After-fix behavior proof: The PR body supplies a sanitized Crabbox run and terminal output showing the new add/edit help text, including the failure-alert surface. The PR head contains that same fallback literal. (src/cli/cron-cli/shared.ts:86, 5d565b3f25e6)

Likely related people:

  • steipete: Current-main blame and the file history identify Peter Steinberger as the most recent substantial contributor carrying this shared help behavior. (role: recent cron CLI contributor; confidence: high; commits: 19316660e418, 079dfb6716e4; files: src/cli/cron-cli/shared.ts, src/cli/cron-cli/register.cron-add.ts, src/cli/cron-cli/register.cron-edit.ts)
  • Omar Shahine: The history records the automations alias and related cron display wording work, which is adjacent to the documentation surface changed here. (role: automation-alias contributor; confidence: medium; commits: b82a59a7987b; files: src/cli/cron-cli/shared.ts, docs/automation/cron-jobs.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve or rerun the failed exact-head Node shard and wait for the remaining required checks to finish green.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-17T22:47:32.848Z sha 006d0b1ebdb3ead19c4be51c9e7e29642f89efb3 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper-recovery-stuck and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper-recovery-stuck labels Aug 16, 2026
Keep cron delivery help and automation docs explicit that --channel selects a channel plugin, not a per-conversation channel identifier.

Fixes openclaw#124646

Punchcard-Session: clear-timber-orchard-n1
@vincentkoc vincentkoc self-assigned this Aug 20, 2026
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 20, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 20, 2026
@vincentkoc
vincentkoc merged commit bb134fe into openclaw:main Aug 20, 2026
330 of 332 checks passed
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 21, 2026
Keep cron delivery help and automation docs explicit that --channel selects a channel plugin, not a per-conversation channel identifier.

Fixes openclaw#124646

Punchcard-Session: clear-timber-orchard-n1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: cron add --help advertises <channel-id> where the runtime requires a channel plugin id

2 participants