feat: carry recently viewed files as context (#1538)

This commit is contained in:
yetone
2025-03-09 15:42:31 +08:00
committed by GitHub
parent 02fb470140
commit a0e0924730
6 changed files with 21 additions and 2 deletions

View File

@@ -2400,6 +2400,7 @@ function Sidebar:create_input_container(opts)
ask = opts.ask or true,
project_context = vim.json.encode(project_context),
selected_files = selected_files_contents,
recently_viewed_files = Utils.get_recent_filepaths(),
diagnostics = vim.json.encode(diagnostics),
history_messages = history_messages,
code_lang = filetype,