Dmitry Torokhov
9ccf721435
refactor(sidebar): avoid temporary table in Sidebar:update_content()
...
Under the hood vim.list_extend() does the same loop over the source
table and uses table.insert() to append the values to the destination
table, so using a temporary table makes little sense.
Switch to directly inserting (appending) values into history_lines
table.
2025-07-19 13:58:11 +08:00
Dmitry Torokhov
2335ea3d15
refactor(history): reduce computational complexity when handling history
...
When updating chat history to be used in LLM request there are several
instances where we do O(n^2) operations: scanning all messages to locate
a tool "use" and for each use scan messages again to locate
corresponding "result".
Refactor the code to scan messages once collecting tool uses and results
together, and then do 2nd scan to drop incomplete tool invocations and
refresh "view" and "edit" results with the latest content.
Also reduce number of pre-scan loops (where we discard partially
generated messages or messages that are not interesting or too-old) by
combining them when possible.
This reduces time to scan initial 417 messages on my system (which
result in 576 final messages) from 0.32 to 0.12 seconds.
2025-07-18 22:36:21 -07:00
Dmitry Torokhov
966eef743b
refactor(history): move message rendering into history module
...
Move code related to converting history messages into UI representation
from utils into history/render.lua for better code organization and
clean up the implementation.
2025-07-16 12:49:15 +08:00
Dmitry Torokhov
34907fc1cd
refactor(history): start moving history-related code into avante/history
...
The utils module has grown too big and contains unrelated functionality.
Start moving code related to managing history messages comprising chat
history into lua/avante/history module to keep the code more manageable.
2025-07-16 12:49:15 +08:00
Avinash Thakur
31be8718a6
fix: layout being resized on every keystroke ( #2452 )
2025-07-16 11:34:46 +08:00
yetone
b8bb0fd969
refactor: llm tool parameters ( #2449 )
2025-07-15 16:40:25 +08:00
soulfy
c4ce24e3c0
fix: result_container takes the actual height of the editor ( #2405 )
2025-07-12 00:36:42 +08:00
yetone
6227d5c340
fix: close input hint when closing the sidebar ( #2420 )
2025-07-07 16:51:30 +08:00
Dmitry Torokhov
b051ce449a
fix: slow typing in input window and other input hint optimizations ( #2418 )
2025-07-07 16:45:35 +08:00
Dmitry Torokhov
8346d9b005
fix: don't throw errors when closing code window ( #2401 )
2025-07-03 14:45:35 +08:00
yetone
46f3e77543
fix: refine init project prompts ( #2398 )
2025-07-02 18:56:56 +08:00
guanghechen
7aec52ff3e
improve: support to customize the spinners ( #2397 )
2025-07-02 18:54:41 +08:00
yetone
8fde103734
fix: do not ignore failed edit tool calling ( #2396 )
2025-07-02 18:53:53 +08:00
yetone
203861bb71
feat: init project ( #2395 )
2025-07-02 18:44:30 +08:00
Peter Cardenas
6bfd792a64
fix: handle invalid code window id ( #2390 )
2025-07-02 12:17:30 +08:00
James Trew
d4f3224bf6
fix(sidebar): respect input height from config ( #2391 )
2025-07-02 12:15:40 +08:00
Peter Cardenas
7f25a33dbb
feat(sidebar): add keymap to navigate between prompts ( #2355 )
2025-06-28 20:10:07 +08:00
Peter Cardenas
84ee9f91df
fix: handle invalid todos container ( #2346 )
2025-06-27 15:27:56 +08:00
yetone
5b2a0e6118
fix: do not pick tool use messages when use ReAct ( #2333 )
2025-06-25 20:59:35 +08:00
Matthieu Coudron
c38abb907f
feat: more compact and aligned display of date/model ( #2325 )
2025-06-25 17:53:56 +08:00
yetone
270c11da57
fix: tokens usage is nil ( #2322 )
2025-06-24 20:44:04 +08:00
yetone
c48808b4a8
fix: tool logs rendering ( #2315 )
2025-06-24 11:00:26 +08:00
yetone
e7113f1834
optimize: use cache to optimize the performance of streaming rendering ( #2312 )
2025-06-24 02:06:50 +08:00
yetone
6830f2d8b9
feat: tokens usage ( #2300 )
2025-06-23 03:13:37 +08:00
hamidi-dev
7daf169228
feat(prompt_logger): Save prompts to disk and add buffer navigation via keymaps ( #2075 )
2025-06-23 01:20:03 +08:00
yetone
3033556d5b
fix: tool calling ( #2297 )
2025-06-22 21:50:26 +08:00
yetone
1e778e1c67
fix: limit tool use count ( #2294 )
2025-06-22 14:36:41 +08:00
yetone
fe4f7d836b
fix: increase result height ( #2282 )
2025-06-21 02:11:37 +08:00
yetone
1063e3c45c
fix: sidebar layout ( #2281 )
2025-06-21 01:53:13 +08:00
yetone
30fab46ca1
fix: compact memory ( #2278 )
2025-06-21 00:55:36 +08:00
Brewinski
8572a4832d
fix: handle user-declined tool executions separately from errors ( #2258 )
2025-06-21 00:50:00 +08:00
guanghechen
c356fc7ce1
fix: when initialize the avante, dont mark the current buffer as selected if it's a directory path ( #2254 )
2025-06-18 13:35:37 +08:00
guanghechen
07319d1bd6
feat: show the count of selected files ( #2250 )
...
* feat: show the count of selected files
* fix spaces
* tweak title
2025-06-17 23:46:42 +08:00
Avinash Thakur
cf87220dff
docs: fix doc types. Add lua type to opts in readme ( #2200 )
...
* docs: fix doc types. Add lua type to `opts` in readme
* [pre-commit.ci lite] apply automatic fixes
* chore: fix type error in sidebar.lua
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-17 16:09:12 +08:00
Avinash Thakur
b52a89cb08
fix: error when adding files where root != cwd ( #2233 )
2025-06-17 16:08:15 +08:00
Neo
fac38af934
feat(sidebar): improve auto-scroll to only trigger when user is at bottom ( #2227 )
2025-06-16 01:45:49 +08:00
yetone
ad05a802f9
feat: todos ( #2184 )
2025-06-15 15:10:07 +08:00
yetone
fdf4716ec0
fix: fuzzy match ( #2221 )
2025-06-13 16:46:55 +08:00
Bryan Vaz
8a64d454ef
fix: fixed Clear ( #2199 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-12 11:29:00 +08:00
yetone
e2b34f6435
fix: save history ( #2203 )
2025-06-10 15:47:03 +08:00
yetone
86489ef2be
feat: add auto_check_diagnostics config ( #2189 )
2025-06-08 02:00:40 +08:00
yetone
801adc4692
feat: delete tool use messages tool ( #2158 )
2025-06-05 02:51:46 +08:00
yetone
e9ab2ca2fd
refactor: providers config ( #2117 )
2025-06-03 04:01:01 +08:00
yetone
746f071b37
feat: streaming diff ( #2107 )
2025-06-02 16:44:33 +08:00
yetone
bc403ddcbf
feat: ReAct tool calling ( #2104 )
2025-05-31 08:53:34 +08:00
Joseph
e98bb8d3ba
feat(sidebar): add visual mode support for removing files in Seletected Files ( #2045 )
2025-05-18 16:34:14 +08:00
yetone
8f96d4319d
fix: relative path ( #2023 )
2025-05-09 19:57:25 +08:00
Peter Cardenas
daa0624e50
fix: handle error when no file selector window exists when no files ( #2021 )
2025-05-09 13:47:01 +08:00
yetone
6e1e2ac9f2
feat: automatically obtain diagnostics after finishing editing the file ( #2018 )
2025-05-08 22:50:46 +08:00
aniaan
1e80305af2
refactor(sidebar&claude): Simplify Claude provider and unify sidebar UI behavior ( #2017 )
2025-05-08 21:48:17 +08:00