mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 22:14:34 +00:00
fix(nodes): reject facing=both when camera deviceId is set
This commit is contained in:
@@ -248,6 +248,9 @@ export function createNodesTool(options?: {
|
||||
typeof params.deviceId === "string" && params.deviceId.trim()
|
||||
? params.deviceId.trim()
|
||||
: undefined;
|
||||
if (deviceId && facings.length > 1) {
|
||||
throw new Error("facing=both is not allowed when deviceId is set");
|
||||
}
|
||||
|
||||
const content: AgentToolResult<unknown>["content"] = [];
|
||||
const details: Array<Record<string, unknown>> = [];
|
||||
|
||||
Reference in New Issue
Block a user