Skip to content

[Bug]: openclaw cron list crashes: TypeError Cannot read properties of undefined (reading 'trim') #9649

@jorgerivero2005

Description

@jorgerivero2005

Bug

openclaw cron list (table output) crashes with:
TypeError: Cannot read properties of undefined (reading 'trim')

Workaround: openclaw cron list --json works.

Environment

  • OpenClaw version: 2026.2.3-1
  • OS: Linux (gateway local)
  • Gateway running: ok

Repro steps

  1. Create at least one cron job (e.g. openclaw cron add ... or via agent reminders).
  2. Run:
    openclaw cron list

Actual output

ID Name Schedule Next Last Status Target Agent
TypeError: Cannot read properties of undefined (reading 'trim')

Expected

A table listing cron jobs, same info as --json, without crashing.

openclaw cron list --json output

{
"jobs": [
{
"id": "9a867b4d-3aee-4682-9078-3a84e228c804",
"agentId": "main",
"name": "Recordatorio: revisar pago tarjeta bancaria",
"enabled": true,
"createdAtMs": 1770300537733,
"updatedAtMs": 1770300537733,
"schedule": { "kind": "at", "atMs": 1770307680000 },
"sessionTarget": "main",
"wakeMode": "next-heartbeat",
"payload": {
"kind": "systemEvent",
"text": "Recordatorio (2 horas): revisa el pago de la tarjeta bancaria. Si quieres, dime el banco/monto/fecha de vencimiento y lo dejamos como checklist."
},
"state": { "nextRunAtMs": 1770307680000 }
},
{
"id": "44e39dc7-5098-4524-bf8d-25897fe16867",
"agentId": "main",
"name": "Recordatorio: versión Android + enviar a José",
"enabled": true,
"createdAtMs": 1770301432809,
"updatedAtMs": 1770301432809,
"schedule": { "kind": "at", "atMs": 1770314400000 },
"sessionTarget": "main",
"wakeMode": "next-heartbeat",
"payload": {
"kind": "systemEvent",
"text": "Recordatorio (hoy 15:00): crea la versión Android de la aplicación y envíala a José."
},
"state": { "nextRunAtMs": 1770314400000 }
}
]
}

Reporter: @jorgerivero2005

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions