Skip to content

Bug: openclaw cron list throws TypeError: Cannot read properties of undefined (reading 'padEnd') #59968

@hanhan905

Description

@hanhan905

Describe the Bug

Running openclaw cron list throws the following error:

Steps to Reproduce

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions