mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-25 11:33:32 +00:00
refactor(security): simplify system.run approval model
This commit is contained in:
@@ -350,7 +350,7 @@ async function sendExecFinishedEvent(
|
||||
sessionKey: params.sessionKey,
|
||||
runId: params.runId,
|
||||
host: "node",
|
||||
command: params.cmdText,
|
||||
command: params.commandText,
|
||||
exitCode: params.result.exitCode ?? undefined,
|
||||
timedOut: params.result.timedOut,
|
||||
success: params.result.success,
|
||||
@@ -505,7 +505,6 @@ export async function handleInvoke(
|
||||
return;
|
||||
}
|
||||
await sendJsonPayloadResult(client, frame, {
|
||||
cmdText: prepared.cmdText,
|
||||
plan: prepared.plan,
|
||||
});
|
||||
} catch (err) {
|
||||
@@ -549,8 +548,8 @@ export async function handleInvoke(
|
||||
sendInvokeResult: async (result) => {
|
||||
await sendInvokeResult(client, frame, result);
|
||||
},
|
||||
sendExecFinishedEvent: async ({ sessionKey, runId, cmdText, result }) => {
|
||||
await sendExecFinishedEvent({ client, sessionKey, runId, cmdText, result });
|
||||
sendExecFinishedEvent: async ({ sessionKey, runId, commandText, result }) => {
|
||||
await sendExecFinishedEvent({ client, sessionKey, runId, commandText, result });
|
||||
},
|
||||
preferMacAppExecHost,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user