fix(cli): colorize push.test failures as errors

This commit is contained in:
mbelinky
2026-02-18 20:30:52 +01:00
parent a411741aca
commit 6a1c442207
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
### Changes
- Gateway/APNs: add a push-test pipeline for APNs delivery validation in gateway flows. (#20307) Thanks @mbelinky.
- iOS/Watch: add an Apple Watch companion MVP with watch inbox UI, watch notification relay handling, and gateway command surfaces for watch status/send flows. (#20054) Thanks @mbelinky.
- Gateway/CLI: add paired-device hygiene flows with `device.pair.remove`, plus `openclaw devices remove` and guarded `openclaw devices clear --yes [--pending]` commands for removing paired entries and optionally rejecting pending requests. (#20057) Thanks @mbelinky.
- Skills: harden coding-agent skill guidance by removing shell-command examples that interpolate untrusted issue text directly into command strings.

View File

@@ -75,8 +75,9 @@ export function registerNodesPushCommand(nodes: Command) {
typeof parsed.environment === "string" && parsed.environment.trim().length > 0
? parsed.environment.trim()
: "unknown";
const { ok: okLabel } = getNodesTheme();
defaultRuntime.log(okLabel(`push.test status=${status} ok=${ok} env=${env}`));
const { ok: okLabel, error: errorLabel } = getNodesTheme();
const label = ok ? okLabel : errorLabel;
defaultRuntime.log(label(`push.test status=${status} ok=${ok} env=${env}`));
if (reason) {
defaultRuntime.log(`reason: ${reason}`);
}