From a691d35f430715f66198dc215ef63bf1d0e9a4f8 Mon Sep 17 00:00:00 2001 From: antfleet-ops <285575208+antfleet-ops@users.noreply.github.com> Date: Fri, 19 Jun 2026 13:36:21 +0300 Subject: [PATCH] Keep non-TTY job lists tolerant of unset budgets Constraint: preserve existing TTY and JSON behavior.\nRejected: BigInt(j.budget) without presence check | valid v2 jobs can omit budget.\nConfidence: high\nScope-risk: narrow\nDirective: keep CLI formatters tolerant of nullable backend fields.\nTested: npm run typecheck; npm run build\nNot-tested: live backend job list response. --- src/commands/job.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/job.ts b/src/commands/job.ts index c5ff121..45b2de0 100644 --- a/src/commands/job.ts +++ b/src/commands/job.ts @@ -109,7 +109,9 @@ export function registerJobCommands(program: Command): void { ); for (const j of allJobs) { const budget = !j.legacy - ? formatUnits(BigInt(j.budget), 6) + ? j.budget + ? formatUnits(BigInt(j.budget), 6) + : "N/A" : j.budget; console.log( `${j.onChainJobId}\t${j.chainId}\t${j.clientAddress}\t${j.providerAddress}\t${budget}\t${j.jobStatus}\t${j.legacy}`