Skip to content

Commit fd08fd0

Browse files
authored
fix(ui): read exec security from tools config (#79207)
1 parent 089dd91 commit fd08fd0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

ui/src/ui/app-render.assistant-avatar.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,19 @@ describe("renderApp assistant avatar routing", () => {
241241
expect(shell?.style.getPropertyValue("--chat-message-max-width")).toBe("min(1280px, 82%)");
242242
});
243243

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+
244257
it("does not throw when stale cron state contains a job without a payload", () => {
245258
expect(() =>
246259
renderApp(

0 commit comments

Comments
 (0)