mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-25 10:13:31 +00:00
Gateway: allow control-ui session deletion
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
normalizeAgentId,
|
||||
parseAgentSessionKey,
|
||||
} from "../../routing/session-key.js";
|
||||
import { GATEWAY_CLIENT_IDS } from "../protocol/client-info.js";
|
||||
import {
|
||||
ErrorCodes,
|
||||
errorShape,
|
||||
@@ -86,6 +87,9 @@ function rejectWebchatSessionMutation(params: {
|
||||
if (!params.client?.connect || !params.isWebchatConnect(params.client.connect)) {
|
||||
return false;
|
||||
}
|
||||
if (params.client.connect.client.id === GATEWAY_CLIENT_IDS.CONTROL_UI) {
|
||||
return false;
|
||||
}
|
||||
params.respond(
|
||||
false,
|
||||
undefined,
|
||||
|
||||
Reference in New Issue
Block a user