From e20147a1b634080af4a382e036e5f851465ce501 Mon Sep 17 00:00:00 2001 From: "clawsweeper[bot]" <274271284+clawsweeper[bot]@users.noreply.github.com> Date: Thu, 30 Apr 2026 01:26:01 -0700 Subject: [PATCH] fix: warning text cli correctness issue (#74964) Co-authored-by: openclaw-clawsweeper[bot] <280122609+openclaw-clawsweeper[bot]@users.noreply.github.com> --- src/cli/cron-cli.test.ts | 2 +- src/cli/cron-cli/register.cron-add.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/cron-cli.test.ts b/src/cli/cron-cli.test.ts index a9c5bc3c2b2..24c729de26b 100644 --- a/src/cli/cron-cli.test.ts +++ b/src/cli/cron-cli.test.ts @@ -569,7 +569,7 @@ describe("cron cli", () => { expect.stringContaining("No --agent specified"), ); expect(defaultRuntime.error).toHaveBeenCalledWith( - expect.stringContaining("default agent (main)"), + expect.stringContaining("configured default agent"), ); }); diff --git a/src/cli/cron-cli/register.cron-add.ts b/src/cli/cron-cli/register.cron-add.ts index dcdc3fc2a39..fa3772c211f 100644 --- a/src/cli/cron-cli/register.cron-add.ts +++ b/src/cli/cron-cli/register.cron-add.ts @@ -235,7 +235,7 @@ export function registerCronAddCommand(cron: Command) { if (payload.kind === "agentTurn" && !agentId) { defaultRuntime.error( theme.warn( - "No --agent specified; the job will run with the default agent (main). " + + "No --agent specified; the job will run with the configured default agent. " + "Specify --agent to choose a specific agent.", ), );