mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 06:15:13 +00:00
fix(cli): lower extra gateway advisory severity (#82922)
Merged via squash.
Prepared head SHA: abed98a5f3
Co-authored-by: giodl73-repo <235387111+giodl73-repo@users.noreply.github.com>
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com>
Reviewed-by: @altaywtf
This commit is contained in:
@@ -108,6 +108,7 @@ Docs: https://docs.openclaw.ai
|
||||
- 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.
|
||||
- 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.
|
||||
- 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.
|
||||
- CLI/status: render extra gateway-like service diagnostics as warning/info output instead of error output. Fixes #46930. (#82922) thanks @giodl73-repo.
|
||||
|
||||
## 2026.5.17
|
||||
|
||||
|
||||
@@ -437,4 +437,35 @@ describe("printDaemonStatus", () => {
|
||||
expectMockLineContains(runtime.error, "Config warnings:");
|
||||
expectMockLineContains(runtime.error, "without channelConfigs metadata");
|
||||
});
|
||||
|
||||
it("prints extra gateway-like services as warnings instead of errors", () => {
|
||||
printDaemonStatus(
|
||||
{
|
||||
service: {
|
||||
label: "LaunchAgent",
|
||||
loaded: true,
|
||||
loadedText: "loaded",
|
||||
notLoadedText: "not loaded",
|
||||
runtime: { status: "running", pid: 8000 },
|
||||
},
|
||||
rpc: {
|
||||
ok: true,
|
||||
url: "ws://127.0.0.1:18789",
|
||||
server: { version: "2026.5.12" },
|
||||
},
|
||||
port: {
|
||||
port: 18789,
|
||||
status: "busy",
|
||||
listeners: [],
|
||||
hints: [],
|
||||
},
|
||||
extraServices: [{ label: "ai.openclaw.gateway.rescue", scope: "user", detail: "loaded" }],
|
||||
},
|
||||
{ json: false },
|
||||
);
|
||||
|
||||
expectMockLineContains(runtime.log, "Other gateway-like services detected");
|
||||
expectMockLineContains(runtime.log, "ai.openclaw.gateway.rescue");
|
||||
expect(runtime.error).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -441,24 +441,24 @@ export function printDaemonStatus(status: DaemonStatus, opts: { json: boolean })
|
||||
}
|
||||
|
||||
if (extraServices.length > 0) {
|
||||
defaultRuntime.error(errorText("Other gateway-like services detected (best effort):"));
|
||||
defaultRuntime.log(warnText("Other gateway-like services detected (best effort):"));
|
||||
for (const svc of extraServices) {
|
||||
defaultRuntime.error(`- ${errorText(svc.label)} (${svc.scope}, ${svc.detail})`);
|
||||
defaultRuntime.log(`- ${warnText(svc.label)} (${svc.scope}, ${svc.detail})`);
|
||||
}
|
||||
for (const hint of renderGatewayServiceCleanupHints()) {
|
||||
defaultRuntime.error(`${errorText("Cleanup hint:")} ${hint}`);
|
||||
defaultRuntime.log(`${infoText("Cleanup hint:")} ${hint}`);
|
||||
}
|
||||
spacer();
|
||||
}
|
||||
|
||||
if (extraServices.length > 0) {
|
||||
defaultRuntime.error(
|
||||
errorText(
|
||||
defaultRuntime.log(
|
||||
infoText(
|
||||
"Recommendation: run a single gateway per machine for most setups. One gateway supports multiple agents (see docs: /gateway#multiple-gateways-same-host).",
|
||||
),
|
||||
);
|
||||
defaultRuntime.error(
|
||||
errorText(
|
||||
defaultRuntime.log(
|
||||
infoText(
|
||||
"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).",
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user