From 95de3f820c72d056a79d566cec4cb215bde0e1d8 Mon Sep 17 00:00:00 2001 From: Samir Rayani Date: Thu, 29 Jan 2026 23:05:56 -0600 Subject: [PATCH] fix(cli): use jobId instead of id in cron list output Fixes #4373 The Gateway returns jobs with `jobId` as the canonical identifier, but the CLI was using `job.id` which is undefined, causing a crash when trying to call .padEnd() on undefined. This change uses `job.jobId ?? job.id ?? ""` for backwards compatibility with any legacy code that might still use `id`. --- src/cli/cron-cli/shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cron-cli/shared.ts b/src/cli/cron-cli/shared.ts index 5e5efc81a..684eedfcc 100644 --- a/src/cli/cron-cli/shared.ts +++ b/src/cli/cron-cli/shared.ts @@ -141,7 +141,7 @@ export function printCronList(jobs: CronJob[], runtime = defaultRuntime) { const now = Date.now(); for (const job of jobs) { - const idLabel = pad(job.id, CRON_ID_PAD); + const idLabel = pad(job.jobId ?? job.id ?? "", CRON_ID_PAD); const nameLabel = pad(truncate(job.name, CRON_NAME_PAD), CRON_NAME_PAD); const scheduleLabel = pad( truncate(formatSchedule(job.schedule), CRON_SCHEDULE_PAD),