diff --git a/index.js b/index.js index 677d5e8..e4c1d13 100644 --- a/index.js +++ b/index.js @@ -111,7 +111,7 @@ function registerInstallerTool(ctx) { }, isConcurrencySafe: () => true, async execute(_args, exec) { - const owner = exec.agent + const owner = (exec.agent != null && typeof exec.agent === 'object') ? exec.agent : null const existingJobId = owner ? activeJobs.get(owner) : undefined if (existingJobId) { try {