fix: suppress spinner in logs --follow mode

The progress spinner was being shown for each gateway RPC call during
log tailing, causing repeated spinner frames (◇ │) to appear every
polling interval.

Add a `progress` option to `callGatewayFromCli` and disable the spinner
during follow mode polling to keep output clean.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lucas Czekaj
2026-01-22 16:58:42 -08:00
parent fac21e6eb4
commit 76a42da676
2 changed files with 13 additions and 8 deletions

View File

@@ -23,13 +23,14 @@ export async function callGatewayFromCli(
method: string,
opts: GatewayRpcOpts,
params?: unknown,
extra?: { expectFinal?: boolean },
extra?: { expectFinal?: boolean; progress?: boolean },
) {
const showProgress = extra?.progress ?? opts.json !== true;
return await withProgress(
{
label: `Gateway ${method}`,
indeterminate: true,
enabled: opts.json !== true,
enabled: showProgress,
},
async () =>
await callGateway({