mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 00:01:24 +00:00
fix(gateway): bind node exec approvals to nodeId
This commit is contained in:
@@ -168,6 +168,9 @@ function buildRequestMessage(request: ExecApprovalRequest, nowMs: number) {
|
||||
if (request.request.cwd) {
|
||||
lines.push(`CWD: ${request.request.cwd}`);
|
||||
}
|
||||
if (request.request.nodeId) {
|
||||
lines.push(`Node: ${request.request.nodeId}`);
|
||||
}
|
||||
if (request.request.host) {
|
||||
lines.push(`Host: ${request.request.host}`);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export type ExecApprovalRequest = {
|
||||
request: {
|
||||
command: string;
|
||||
cwd?: string | null;
|
||||
nodeId?: string | null;
|
||||
host?: string | null;
|
||||
security?: string | null;
|
||||
ask?: string | null;
|
||||
|
||||
Reference in New Issue
Block a user