Merge pull request #1536 from alexhoshina/fix/allow-picoclaw-media-tempdir

Fix: allow picoclaw media tempdir
This commit is contained in:
Mauro
2026-03-16 21:30:42 +01:00
committed by GitHub
13 changed files with 326 additions and 31 deletions
+3
View File
@@ -117,6 +117,8 @@ func registerSharedTools(
registry *AgentRegistry,
provider providers.LLMProvider,
) {
allowReadPaths := buildAllowReadPatterns(cfg)
for _, agentID := range registry.ListAgentIDs() {
agent, ok := registry.GetAgent(agentID)
if !ok {
@@ -195,6 +197,7 @@ func registerSharedTools(
cfg.Agents.Defaults.RestrictToWorkspace,
cfg.Agents.Defaults.GetMaxMediaSize(),
nil,
allowReadPaths,
)
agent.Tools.Register(sendFileTool)
}