diff --git a/internal/room/tools/executor.go b/internal/room/tools/executor.go index 7a30b48..a925651 100644 --- a/internal/room/tools/executor.go +++ b/internal/room/tools/executor.go @@ -66,6 +66,11 @@ func (e *Executor) glob(args string) (string, error) { return "", err } + _, err := e.safePath(a.Pattern) + if err != nil { + return "", err + } + pattern := filepath.Join(e.workspaceDir, a.Pattern) files, err := filepath.Glob(pattern) if err != nil {