fix: warning text cli correctness issue (#74964)

Co-authored-by: openclaw-clawsweeper[bot] <280122609+openclaw-clawsweeper[bot]@users.noreply.github.com>
This commit is contained in:
clawsweeper[bot]
2026-04-30 01:26:01 -07:00
committed by GitHub
parent 62fb87641e
commit e20147a1b6
2 changed files with 2 additions and 2 deletions

View File

@@ -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"),
);
});

View File

@@ -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.",
),
);