Restore chat history
This commit is contained in:
		| @@ -24,8 +24,9 @@ function M.query(prompt, context) | ||||
|     chat.set_context(context) | ||||
|     chat.create_window() | ||||
|      | ||||
|     -- Don't add the thinking message to conversation history | ||||
|     local initial_content = "User: " .. prompt .. "\n\nAssistant: Thinking..." | ||||
|     chat.update_content(initial_content, true) | ||||
|     chat.update_content(initial_content, true, true)  -- Add new parameter to indicate temporary content | ||||
|     vim.cmd('redraw') | ||||
|      | ||||
|     api.get_response(prompt, context, function(response, error) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user