From ae9960b8ba0e8a6a83dcaf60aa156b35783de8fb Mon Sep 17 00:00:00 2001 From: Chris Z <535257617@qq.com> Date: Wed, 29 Apr 2026 00:29:46 +0800 Subject: [PATCH] fix(agent): check auto-approved skills env correctly (#5511) * fix(agent): check auto-approved skills env correctly * remove file --------- Co-authored-by: Timothy Carambat --- server/utils/helpers/agents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/helpers/agents.js b/server/utils/helpers/agents.js index 567b2c54..61a886ba 100644 --- a/server/utils/helpers/agents.js +++ b/server/utils/helpers/agents.js @@ -9,7 +9,7 @@ const chalk = require("chalk"); * @returns {boolean} True if the skill is auto-approved, false otherwise */ function skillIsAutoApproved({ skillName }) { - if ((!"AGENT_AUTO_APPROVED_SKILLS") in process.env) return false; + if (!("AGENT_AUTO_APPROVED_SKILLS" in process.env)) return false; const autoApprovedSkills = String(process.env.AGENT_AUTO_APPROVED_SKILLS) .split(",") .map((skill) => skill.trim())