Revert "openclaw: force webhook transport to use hooks/wake"

This reverts commit aa7e069044.
This commit is contained in:
Dotta 2026-03-06 16:18:26 -06:00
parent aa7e069044
commit b539462319
4 changed files with 24 additions and 91 deletions

View file

@ -34,11 +34,6 @@ function isWakePath(pathname: string): boolean {
return value === "/hooks/wake" || value.endsWith("/hooks/wake");
}
function isOpenResponsesPath(pathname: string): boolean {
const value = pathname.trim().toLowerCase();
return value === "/v1/responses" || value.endsWith("/v1/responses");
}
function normalizeTransport(value: unknown): "sse" | "webhook" | null {
const normalized = asString(value, "sse").trim().toLowerCase();
if (!normalized || normalized === "sse") return "sse";
@ -176,16 +171,6 @@ export async function testEnvironment(
hint: "Use an endpoint that returns text/event-stream for the full run duration.",
});
}
if (streamTransport === "webhook" && isOpenResponsesPath(url.pathname)) {
checks.push({
code: "openclaw_webhook_endpoint_normalized",
level: "warn",
message:
"Webhook transport is configured with a /v1/responses endpoint. Runtime will normalize this to /hooks/wake.",
hint: "Set endpoint path to /hooks/wake to avoid ambiguous transport behavior.",
});
}
}
if (!streamTransport) {