Repository navigation
fix(cli): cron --channel help names a channel plugin id - #124655
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 4:10 AM ET / 08:10 UTC. ClawSweeper reviewWhat this changesThe PR changes the cron Merge readinessThe 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 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherCron 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
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests 0, Docs 0. Total +1 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest 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 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
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
006d0b1 to
5d565b3
Compare
|
Merged via squash.
|
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
Closes #124646
AI-assisted PR (per CONTRIBUTING).
What Problem This Solves
Fixes an issue where
openclaw cron add --helpandopenclaw cron edit --helpdescribed
--channelaslast|<channel-id>. Operators can reasonably readthat as a per-conversation Slack, Discord, or Telegram identifier, but this
option selects a channel plugin such as
slack,discord, ortelegram.Current
mainalready rejects unknown explicit channel values before creatingthe 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 existinglistChannelPlugins()behavior is unchanged, so a loaded registry still rendersthe 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
006d0b1ebdb3ead19c4be51c9e7e29642f89efb3:https://crabbox.openclaw.ai/portal/runs/run_2bf043313968
pnpm test src/cli/cron-cli/shared.test.ts: 79 passedpnpm openclaw cron add --help:Delivery channel (last|<channel-plugin-id>)pnpm openclaw cron edit --help:Delivery channel (last|<channel-plugin-id>)andFailure alert channel (last|<channel-plugin-id>)last|<channel-id>text was absent from bothcommand outputs.
+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