Skip to content

Commit ceb02d2

Browse files
committed
fix: streaming in the chat not working
1 parent 1267845 commit ceb02d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/codecompanion/_extensions/history/title_generator.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ end
222222
function TitleGenerator:_make_adapter_request(chat, prompt, callback)
223223
log:trace("Making adapter request for title generation")
224224
local opts = self.opts.title_generation_opts or {}
225-
local adapter = chat.adapter
226-
local settings = chat.settings
225+
local adapter = vim.deepcopy(chat.adapter)
226+
local settings = vim.deepcopy(chat.settings)
227227
if opts.adapter then
228228
adapter = require("codecompanion.adapters").resolve(opts.adapter)
229229
end

0 commit comments

Comments
 (0)