mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 13:05:01 +00:00
fix(doctor): warn that approvals.exec.enabled only disables forwarding
Co-authored-by: nomadonwheels196 <nomadonwheels196@users.noreply.github.com>
This commit is contained in:
@@ -104,4 +104,19 @@ describe("noteSecurityWarnings gateway exposure", () => {
|
||||
const message = lastMessage();
|
||||
expect(message).toContain('config set session.dmScope "per-channel-peer"');
|
||||
});
|
||||
|
||||
it("clarifies approvals.exec forwarding-only behavior", async () => {
|
||||
const cfg = {
|
||||
approvals: {
|
||||
exec: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
} as OpenClawConfig;
|
||||
await noteSecurityWarnings(cfg);
|
||||
const message = lastMessage();
|
||||
expect(message).toContain("disables approval forwarding only");
|
||||
expect(message).toContain("exec-approvals.json");
|
||||
expect(message).toContain("openclaw approvals get --gateway");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user