From d4417a97420af709d85ccefb443bdc713512b1a3 Mon Sep 17 00:00:00 2001 From: Duncan Date: Tue, 25 Aug 2026 13:52:21 -0400 Subject: [PATCH] test(desktop): expect seeded permissionPolicy in access-override edit case behaviorEntry now always seeds permissionPolicy (?? undefined); the linked-instance edit-dialog test still asserted the pre-policy behavior shape, so the added undefined key failed deep-equal. Mirror the sibling quad-bearing test's expectation. Co-authored-by: Will Pfleger Signed-off-by: Will Pfleger --- desktop/src/features/agents/ui/personaDialogState.test.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/src/features/agents/ui/personaDialogState.test.mjs b/desktop/src/features/agents/ui/personaDialogState.test.mjs index f36562e85d..bf88df699b 100644 --- a/desktop/src/features/agents/ui/personaDialogState.test.mjs +++ b/desktop/src/features/agents/ui/personaDialogState.test.mjs @@ -359,6 +359,10 @@ test("a linked instance overrides stale definition access in the edit dialog", ( respondTo: "allowlist", respondToAllowlist: ["c".repeat(64)], parallelism: 2, + // No definition-default policy on this persona, so the seed carries it as + // undefined alongside the other unset fields (JSON.stringify drops it on + // submit); the access override only rewrites respondTo/respondToAllowlist. + permissionPolicy: undefined, }); });