Commit Graph

169 Commits

Author SHA1 Message Date
yetone
cd81fbf8af fix: tool_use_id is nil 2025-07-17 14:29:17 +08:00
yetone
5ea24f59fa fix: clear useless parameters 2025-07-17 13:50:33 +08:00
yetone
2a16e7d4d9 fix: do not modify the tool_use input 2025-07-16 20:18:24 +08: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
d7c48075a5 refactor(history): move code collecting pending tools to history
Code dealing with scanning history messages and extracting some data or
state belongs to avante/history/ so move it there. Along with the move
update the implementation to make use of get_tool_use_data() and
get_tool_result_data() helpers to simplify it.

Also rename the function to History.get_pending_tools() to better
reflect its purpose: "uncalled" means something that was done without
request, unsolicited, not something that has not completed yet.
2025-07-16 12:49:15 +08:00
Dmitry Torokhov
36e116795d refactor(history): make use of get_tool_(use|result)_data() in llm.lua
Simplify the code locating viewed files as well as code locating last
completion attempt by using these new helpers.

Also avoid using "goto" in simple loops.
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
yetone
b8bb0fd969 refactor: llm tool parameters (#2449) 2025-07-15 16:40:25 +08:00
Dmitry Torokhov
0c6a8f5688 refactor(llm): remove dead code summarizing threads and generating todos (#2439) 2025-07-14 10:14:40 +08:00
yetone
203861bb71 feat: init project (#2395) 2025-07-02 18:44:30 +08:00
Peter Cardenas
2ecfe587a0 feat: parse and conditionally add cursor rules to system prompt (#2385) 2025-07-02 00:59:01 +08:00
yetone
68ead5d2f0 feat: respect agents.md (#2376) 2025-06-30 18:44:06 +08:00
Peter Cardenas
508cc4c22c fix: get_history_messages is nil (#2368) 2025-06-30 10:25:49 +08:00
Peter Cardenas
87f3aee073 fix: gracefully handle failed curl (#2356) 2025-06-28 20:10:27 +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
0613b1f307 fix: unfinished todos count (#2306) 2025-06-23 14:26:42 +08:00
yetone
6830f2d8b9 feat: tokens usage (#2300) 2025-06-23 03:13:37 +08:00
yetone
3033556d5b fix: tool calling (#2297) 2025-06-22 21:50:26 +08:00
Brewinski
8572a4832d fix: handle user-declined tool executions separately from errors (#2258) 2025-06-21 00:50:00 +08:00
yetone
fcf457ed7f fix: refine tools (#2229) 2025-06-16 01:27:39 +08:00
yetone
ad05a802f9 feat: todos (#2184) 2025-06-15 15:10:07 +08:00
yetone
801adc4692 feat: delete tool use messages tool (#2158) 2025-06-05 02:51:46 +08:00
kyrisu
4495ee6bcf feat: load templates from cache and project directories (#2126) 2025-06-04 03:24:53 +08:00
yetone
12d69945c5 fix: legacy warning (#2120) 2025-06-03 11:27:01 +08:00
yetone
647a459a2b feat: streaming attempt completion (#2113) 2025-06-02 21:21:05 +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
yetone
d44db10535 fix: tool result message must be adjacent to the tool use message (#2096) 2025-05-29 03:55:32 +08:00
yetone
7fd6cf3d64 fix: the foolish copilot/claude-3.7-sonnet is unable to invoke the attempt_completion tool as instructed (#2095) 2025-05-29 03:18:15 +08:00
yetone
0b4775c8f7 fix: attempt completion (#2091) 2025-05-27 17:29:53 +08:00
yetone
53f29bf76d fix: view truncated file (#2090) 2025-05-27 17:09:14 +08:00
yetone
269a3939f2 fix: not just for display (#2089) 2025-05-27 16:21:32 +08:00
yetone
dbddc0408f fix: filter out uncomplete tool_use (#2088) 2025-05-27 16:09:37 +08:00
yetone
edb78e5646 fix: uncompleted task (#2086) 2025-05-27 15:59:56 +08:00
yetone
0e7d66333d fix: ignore error when reading file from tool_use (#2083) 2025-05-26 18:53:02 +08:00
yetone
ef61ba52c0 fix: do not modify the failed view tool_result (#2055) 2025-05-20 11:47:46 +08:00
yetone
dbd74aaec8 fix: insert dummy messages only when replace_in_file is successful (#2020) 2025-05-09 12:15:56 +08:00
Peter Cardenas
ba272bbf11 fix: always retry on 429 error (#2019) 2025-05-09 10:19:43 +08:00
yetone
6e1e2ac9f2 feat: automatically obtain diagnostics after finishing editing the file (#2018) 2025-05-08 22:50:46 +08:00
yetone
93aa961fc4 fix: filter out unpaired tool calling (#1999) 2025-05-07 01:16:35 +08:00
yetone
c29075ae02 fix: insert dummy view func for str_replace_editor tool (#1997) 2025-05-07 00:51:19 +08:00
yetone
89d420ccec fix: filter out unpaired tool_use and tool_result messages (#1995) 2025-05-06 20:28:02 +08:00
yetone
60897ee9a6 fix: o1 model (#1992) 2025-05-06 19:32:55 +08:00
yetone
e21f1f07bd fix: filter out all dummy messages when summarize (#1989) 2025-05-05 17:34:53 +08:00
yetone
f73d253338 fix: insert a fake view function call to prevent the LLM from using old content (#1986) 2025-05-05 02:00:01 +08:00
yetone
0f7fb35e6d fix: tool use id sometimes will be the same (#1982) 2025-05-04 02:43:33 +08:00
yetone
555b2e615c fix: cancel error (#1965) 2025-05-02 02:06:10 +08:00
yetone
3a43621e17 refactor: tool calling ui (#1959) 2025-05-01 19:16:15 +08:00
yetone
448efbb842 fix: disable compact history messages for dispatch agent (#1954) 2025-05-01 05:19:54 +08:00