Describe the Bug
Running openclaw cron list throws the following error:
Steps to Reproduce
- Run
openclaw cron list on the command line
Expected Behavior
A table of cron jobs should be displayed.
Actual Behavior
Throws a TypeError related to padEnd.
Environment
- OpenClaw version: 2026.4.2 (d74a122)
Workaround
Using openclaw cron list --json works correctly and returns the expected JSON data.
JSON Output (from --json flag)
{
"jobs": [
{
"jobId": "a-stock-close-report",
"name": "A股收盘报告",
"enabled": true,
"description": "每个交易日(周一至周五)15:10自动发送A股收盘报告",
"schedule": {
"kind": "cron",
"expr": "10 15 * * 1-5",
"tz": "Asia/Shanghai"
},
"sessionTarget": "isolated",
"payload": {
"kind": "agentTurn",
"agentId": "zoro",
"message": "...",
"timeoutSeconds": 120
},
"delivery": {
"mode": "announce",
"channel": "feishu"
},
"state": {
"nextRunAtMs": 1775200200000
}
}
],
"total": 1
}
The data is valid and only one cron job exists. The bug appears to be in the table formatting code where .padEnd() is called on an undefined value.
Describe the Bug
Running
openclaw cron listthrows the following error:Steps to Reproduce
openclaw cron liston the command lineExpected Behavior
A table of cron jobs should be displayed.
Actual Behavior
Throws a TypeError related to
padEnd.Environment
Workaround
Using
openclaw cron list --jsonworks correctly and returns the expected JSON data.JSON Output (from
--jsonflag){ "jobs": [ { "jobId": "a-stock-close-report", "name": "A股收盘报告", "enabled": true, "description": "每个交易日(周一至周五)15:10自动发送A股收盘报告", "schedule": { "kind": "cron", "expr": "10 15 * * 1-5", "tz": "Asia/Shanghai" }, "sessionTarget": "isolated", "payload": { "kind": "agentTurn", "agentId": "zoro", "message": "...", "timeoutSeconds": 120 }, "delivery": { "mode": "announce", "channel": "feishu" }, "state": { "nextRunAtMs": 1775200200000 } } ], "total": 1 }The data is valid and only one cron job exists. The bug appears to be in the table formatting code where
.padEnd()is called on an undefined value.