Skip to content

Commit 14b5782

Browse files
authored
fix(chat): stop duplicated context with :CodeCompanionChat Add (#2402)
1 parent 97ee970 commit 14b5782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/codecompanion/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ CodeCompanion.add = function(args)
8787
local chat = CodeCompanion.last_chat()
8888

8989
if not chat then
90-
chat = CodeCompanion.chat()
90+
chat = CodeCompanion.chat({ context = {} })
9191

9292
if not chat then
9393
return log:warn("Could not create chat buffer")

0 commit comments

Comments
 (0)