Skip to content

Commit dbefc41

Browse files
authored
Fix: require tool module path correctly (olimorris#1670)
1 parent e7aaef6 commit dbefc41

File tree

1 file changed

+1
-1
lines changed
  • lua/codecompanion/strategies/chat/agents

1 file changed

+1
-1
lines changed

lua/codecompanion/strategies/chat/agents/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ function Agent.resolve(tool)
365365
end
366366

367367
-- Try loading the tool from the user's config using a module path
368-
ok, module = pcall(require)
368+
ok, module = pcall(require, callback)
369369
if ok then
370370
log:debug("[Tools] %s identified", callback)
371371
return module

0 commit comments

Comments
 (0)