fix(cli): lower extra gateway advisory severity (#82922) · openclaw/openclaw@164c35d
giodl73-repo
·
2026-05-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -108,6 +108,7 @@ Docs: https://docs.openclaw.ai
|
108 | 108 | - Agents/replies: classify provider conversation-state rejections and return a clear message-channel error instead of auto-resetting or falling back to a generic runner failure. (#82616) Thanks @dutifulbob. |
109 | 109 | - Browser plugin: trust managed Chrome CDP diagnostics when launch HTTP probes race cold-start readiness, avoiding false startup failures. Fixes #82904. (#82986) Thanks @kmanan and @hclsys. |
110 | 110 | - Android: prompt before replacing a changed Gateway TLS thumbprint, showing the old and new SHA-256 fingerprints so users can accept expected certificate rotations instead of hard failing on pin mismatch. (#83077) Thanks @sliekens. |
| 111 | +- CLI/status: render extra gateway-like service diagnostics as warning/info output instead of error output. Fixes #46930. (#82922) thanks @giodl73-repo. |
111 | 112 | |
112 | 113 | ## 2026.5.17 |
113 | 114 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -437,4 +437,35 @@ describe("printDaemonStatus", () => {
|
437 | 437 | expectMockLineContains(runtime.error, "Config warnings:"); |
438 | 438 | expectMockLineContains(runtime.error, "without channelConfigs metadata"); |
439 | 439 | }); |
| 440 | + |
| 441 | +it("prints extra gateway-like services as warnings instead of errors", () => { |
| 442 | +printDaemonStatus( |
| 443 | +{ |
| 444 | +service: { |
| 445 | +label: "LaunchAgent", |
| 446 | +loaded: true, |
| 447 | +loadedText: "loaded", |
| 448 | +notLoadedText: "not loaded", |
| 449 | +runtime: { status: "running", pid: 8000 }, |
| 450 | +}, |
| 451 | +rpc: { |
| 452 | +ok: true, |
| 453 | +url: "ws://127.0.0.1:18789", |
| 454 | +server: { version: "2026.5.12" }, |
| 455 | +}, |
| 456 | +port: { |
| 457 | +port: 18789, |
| 458 | +status: "busy", |
| 459 | +listeners: [], |
| 460 | +hints: [], |
| 461 | +}, |
| 462 | +extraServices: [{ label: "ai.openclaw.gateway.rescue", scope: "user", detail: "loaded" }], |
| 463 | +}, |
| 464 | +{ json: false }, |
| 465 | +); |
| 466 | + |
| 467 | +expectMockLineContains(runtime.log, "Other gateway-like services detected"); |
| 468 | +expectMockLineContains(runtime.log, "ai.openclaw.gateway.rescue"); |
| 469 | +expect(runtime.error).not.toHaveBeenCalled(); |
| 470 | +}); |
440 | 471 | }); |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -441,24 +441,24 @@ export function printDaemonStatus(status: DaemonStatus, opts: { json: boolean })
|
441 | 441 | } |
442 | 442 | |
443 | 443 | if (extraServices.length > 0) { |
444 | | -defaultRuntime.error(errorText("Other gateway-like services detected (best effort):")); |
| 444 | +defaultRuntime.log(warnText("Other gateway-like services detected (best effort):")); |
445 | 445 | for (const svc of extraServices) { |
446 | | -defaultRuntime.error(`- ${errorText(svc.label)} (${svc.scope}, ${svc.detail})`); |
| 446 | +defaultRuntime.log(`- ${warnText(svc.label)} (${svc.scope}, ${svc.detail})`); |
447 | 447 | } |
448 | 448 | for (const hint of renderGatewayServiceCleanupHints()) { |
449 | | -defaultRuntime.error(`${errorText("Cleanup hint:")} ${hint}`); |
| 449 | +defaultRuntime.log(`${infoText("Cleanup hint:")} ${hint}`); |
450 | 450 | } |
451 | 451 | spacer(); |
452 | 452 | } |
453 | 453 | |
454 | 454 | if (extraServices.length > 0) { |
455 | | -defaultRuntime.error( |
456 | | -errorText( |
| 455 | +defaultRuntime.log( |
| 456 | +infoText( |
457 | 457 | "Recommendation: run a single gateway per machine for most setups. One gateway supports multiple agents (see docs: /gateway#multiple-gateways-same-host).", |
458 | 458 | ), |
459 | 459 | ); |
460 | | -defaultRuntime.error( |
461 | | -errorText( |
| 460 | +defaultRuntime.log( |
| 461 | +infoText( |
462 | 462 | "If you need multiple gateways (e.g., a rescue bot on the same host), isolate ports + config/state (see docs: /gateway#multiple-gateways-same-host).", |
463 | 463 | ), |
464 | 464 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。