From 912fb8ab034cc10d19e72e8ddef4de4d5945d6f5 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 4 Nov 2026 18:26:41 +0000 Subject: [PATCH] test(memory): list the memory choice among the names the guard allows The memory choice of an agent names the built-in memory in the agent form, the notes list and the agent delete. The add-on name guard flagged those four lines after the previous commit. Assisted-by: Claude:claude-sonnet-5-5 --- core/services/studio/providerguard/guard_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/services/studio/providerguard/guard_test.go b/core/services/studio/providerguard/guard_test.go index 23e7a3fc05..49fe36c451 100644 --- a/core/services/studio/providerguard/guard_test.go +++ b/core/services/studio/providerguard/guard_test.go @@ -65,6 +65,10 @@ const ( var allowed = []entry{ {ui + "hooks/useToolGroups.js", "memory", "the switch group of the built-in memory"}, {ui + "utils/memoryState.js", "memory", "the switch group of the built-in memory"}, + // The memory choice of an agent and the notes list belong to the built-in. + {ui + "utils/memoryFiles.js", "memory", "the source of the built-in notes in the list of context files"}, + {ui + "pages/AgentCreate.jsx", "memory", "the memory choice of the agent form and the icon of its section: the built-in memory"}, + {"core/http/endpoints/studio/agents.go", "memory", "the memory query of the agent delete: what to do with the notes of the built-in memory"}, // Memory is built into the host. The add-on of that name is the alias of // the built-in: its index files and skills are the host's now, and the // host ignores its copies.