fix(ui): read exec security from tools config (#79207) · openclaw/openclaw@fd08fd0
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -241,6 +241,19 @@ describe("renderApp assistant avatar routing", () => {
|
241 | 241 | expect(shell?.style.getPropertyValue("--chat-message-max-width")).toBe("min(1280px, 82%)"); |
242 | 242 | }); |
243 | 243 | |
| 244 | +it("passes tools.exec.security to Quick Settings", () => { |
| 245 | +renderApp( |
| 246 | +createState({ |
| 247 | +configForm: { |
| 248 | +tools: { exec: { security: "full" } }, |
| 249 | +agents: { defaults: { exec: { security: "deny" } } }, |
| 250 | +}, |
| 251 | +}), |
| 252 | +); |
| 253 | + |
| 254 | +expect(quickSettingsProps.current?.security.execPolicy).toBe("full"); |
| 255 | +}); |
| 256 | + |
244 | 257 | it("does not throw when stale cron state contains a job without a payload", () => { |
245 | 258 | expect(() => |
246 | 259 | renderApp( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。