fix: prompts (#1715)

This commit is contained in:
yetone
2025-03-25 23:16:03 +08:00
committed by GitHub
parent a2aec079c9
commit d82eb8534e
4 changed files with 40 additions and 14 deletions

View File

@@ -2314,6 +2314,7 @@ function Sidebar:add_chat_history(message, options)
Path.history.save(self.code.bufnr, self.chat_history)
if self.chat_history.title == "untitled" then
Llm.summarize_chat_thread_title(message.content, function(title)
self:reload_chat_history()
if title then self.chat_history.title = title end
Path.history.save(self.code.bufnr, self.chat_history)
end)