diff --git a/src/router.ts b/src/router.ts index 6e2f84b..75f0a0a 100644 --- a/src/router.ts +++ b/src/router.ts @@ -103,7 +103,9 @@ export class EventRouter { systemPrompt: this.config.prompt || undefined, skillsDir: this.config.agentHome, sessionDir: path.join(this.config.agentHome, 'sessions'), - allowedPaths: this.config.allowedPaths, + allowedPaths: this.config.allowedPaths.length > 0 + ? this.config.allowedPaths + : [this.config.agentHome], customTools: this.trackerTools, })) { if (msg.type === 'error') {