fix: hide available_skills section when skill tool is disabled

pull/5930/head
M. Adel Alhashemi 2025-12-22 12:13:02 +08:00
parent a9542e282c
commit 22375fb7ef
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ export namespace SessionPrompt {
sessionID,
system: [
...(await SystemPrompt.environment()),
...(await SystemPrompt.skills(agent.name)),
...(tools.skill ? await SystemPrompt.skills(agent.name) : []),
...(await SystemPrompt.custom()),
],
messages: [