fix: failed to write correct entry into prompt log file at very begin… (#2581)

This commit is contained in:
brook hong
2025-08-05 15:19:35 +08:00
committed by GitHub
parent b941cd902d
commit 6f28f132e5
3 changed files with 28 additions and 17 deletions

View File

@@ -460,6 +460,7 @@ M._defaults = {
prompt_logger = { -- logs prompts to disk (timestamped, for replay/debugging)
enabled = true, -- toggle logging entirely
log_dir = vim.fn.stdpath("cache"), -- directory where logs are saved
max_entries = 100, -- the uplimit of entries that can be sotred
next_prompt = {
normal = "<C-n>", -- load the next (newer) prompt log in normal mode
insert = "<C-n>",