mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 20:28:42 +00:00
Disabling a skill in the agent config dialog only removed it from the agent_skills join table, but the chat flow still advertised ALL team skills to the model in the <available_skills> system prompt section and the read_skill tool never checked per-agent enablement. - getAgentChatContextActivity / getAgentAutofillContextActivity now only return skills explicitly enabled for the agent (agent_skills), and expose enabledSkillIds in the execution context. - createReadSkillTool accepts enabledSkillIds and rejects read_skill calls for skills not enabled for the agent, even if the model knows the skill id from earlier conversation history. - Added unit tests for context filtering (chat + autofill), tool-level enforcement, and the zero-enabled-skills case.