fix(tools): use_skill inlines content when read_file isn't granted (#1547)

* feat(store): add context helper for per-iteration tool allowlist

* feat(pipeline): surface resolved tool allowlist to tool dispatch via context

* fix(tools): use_skill inlines content when read_file isn't granted

Fixes #1477

---------

Co-authored-by: isaacgao4396 <gaoyuan4396@gmail.com>
This commit is contained in:
isaacgao4396andisaacgao4396 authored and GitHub committed 2026-09-03 18:13:56 +07:00
1 parent e0792f56e0
commit 169e0bafaf
6 files changed
+179 -7

No files matched your search

+1 -1
View File
@@ -579,7 +579,7 @@ func setupSkillsSystem(
skillsLoader := skills.NewLoader(workspace, globalSkillsDir, builtinSkillsDir)
skillSearchTool := tools.NewSkillSearchTool(skillsLoader)
toolsReg.Register(skillSearchTool)
toolsReg.Register(tools.NewUseSkillTool())
toolsReg.Register(tools.NewUseSkillTool(skillsLoader))
slog.Info("skill_search tool registered", "skills", len(skillsLoader.ListSkills(context.Background())))
// Wire skills-store directory into filesystem loader so agents