fix: re-implement prompt logger (#2574)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
brook hong
2025-08-03 21:34:38 +08:00
committed by GitHub
parent 03f0456d30
commit 66cfbb4c19
3 changed files with 68 additions and 69 deletions

View File

@@ -459,8 +459,7 @@ M._defaults = {
},
prompt_logger = { -- logs prompts to disk (timestamped, for replay/debugging)
enabled = true, -- toggle logging entirely
log_dir = Utils.join_paths(vim.fn.stdpath("cache"), "avante_prompts"), -- directory where logs are saved
fortune_cookie_on_success = false, -- shows a random fortune after each logged prompt (requires `fortune` installed)
log_dir = vim.fn.stdpath("cache"), -- directory where logs are saved
next_prompt = {
normal = "<C-n>", -- load the next (newer) prompt log in normal mode
insert = "<C-n>",