Commit Graph

1542 Commits

Author SHA1 Message Date
SSDGADsss
5df39b480d fix rag-service requirements (#2843)
In response to the issue raised in # 281, I have added a dependency of
'nbconvert' to the Python dependency list of the avaent rag server,
hoping to fix the problem
2025-11-25 17:18:55 +08:00
Jalen Jouett
ca95e03864 Fix: Snacks picker format config (#2828) 2025-11-13 00:55:03 +08:00
you-n-g
f8a7cd1a60 fix: gpt-5-chat is not a reasoning model
* Exclude GPT-5-Chat 

Exclude GPT-5-Chat. It is not a reasoning model.

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-11-09 21:39:45 +08:00
cndoit18
44b594863c fix(history): improve parameter display in get_tool_display_name function (#2822)
Use vim.inspect() for better parameter formatting instead of direct string concatenation
2025-11-06 05:23:30 +08:00
yetone
7f48770e66 fix(kimi-acp): kimi acp tool call update is missing the kind field (#2814) 2025-10-31 20:41:12 +08:00
Marius Niveri
15ef2a012c fix: never attempt to concatenate nil values, use empty strings (#2692) (#2812)
* fix: never attempt to concatenate nil values, use empty strings (#2692)

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-10-31 17:53:06 +08:00
yetone
159b452426 chore: replace replace_in_file references with str_replace (#2811) 2025-10-31 02:08:53 +08:00
yetone
c8bf0205b5 fix: enable think tool with acp provider (#2810) 2025-10-31 00:58:46 +08:00
yetone
d45b622193 Auto select Copilot Response API for GPT-5 Codex models (#2808) 2025-10-30 22:38:32 +08:00
Alan
4286ac963a fix(utils): ensure empty tool properties encode as JSON object (#2803)
When tools have no parameters, llm_tool_param_fields_to_json_schema
returns an empty Lua table {}. vim.json.encode serializes empty tables
as JSON arrays [] instead of objects {}, causing Anthropic API to reject
requests with "tools.N.custom.input_schema.properties: Input should be
a valid dictionary" error.

Solution: Use vim.empty_dict() for empty properties to ensure correct
JSON object {} serialization instead of array [].

Tested with Claude Sonnet 4.5 - tools now work correctly without
schema validation errors.
2025-10-30 13:21:47 +08:00
yetone
b95e27b5a6 feat: supports OpenAI Response API and copilot's gpt-5-codex model (#2802)
* fix: upgrade vscode version

* feat: support openai response api

* refactor: refine todos tools

* fix: trim suffix empty lines
2025-10-30 02:18:48 +08:00
Carlos Gomes
7e9f7b57de fix(acp): improve process cleanup and add type annotations (#2799) 2025-10-26 14:38:17 +08:00
yetone
164a86db6e fix(copilot): the tool_call index starts from 1 in copilot + claude-sonnet-4.5 (#2794) 2025-10-22 17:45:37 +08:00
Felix Zhang
c155ce9ff4 fix(config): fix default glm model name (#2785) (#2786)
Co-authored-by: 张晓飞 <xiaofei.zhang@i-soft.com.cn>
2025-10-22 02:45:01 +08:00
Canmi
0a0a0a3958 fix: visual spacing glitch between badges. (#2783) 2025-10-22 02:44:41 +08:00
yetone
3c3eca8518 feat: opencode acp provider (#2789) 2025-10-21 19:03:53 +08:00
yetone
fb28520067 Refine buffer updates and tool call metadata (#2784) 2025-10-20 13:58:34 +08:00
yetone
5da78a7521 fix: include PATH in codex provider env (#2782) 2025-10-20 00:45:25 +08:00
yetone
b3448420fd Improve ACP history message tracking (#2781) 2025-10-20 00:32:20 +08:00
Carlos Gomes
cc7a41262e feat: follow the ACP agent edit and open files automatically (#2780) 2025-10-19 00:32:08 +08:00
Dmitry Torokhov
f0ad738e5a fix(sidebar): avoid crashing in WinNew handler (#2777) 2025-10-17 17:05:04 +08:00
Dmitry Torokhov
2f9daf2bc6 feat(ollama): provide a helper to enable ollama when service is available
Ollama is disabled by default, as it normally does not require API keys
to be defined. Users are supposed to override is_env_set() method in
their configs to enable Ollama.

Provide check_endpoint_alive() helper in Ollama provider module that can
be used directly in place of is_env_set() and checks whether the server
replies to "get list of models" query:

...
  ollama = {
    is_env_set = require("avante.providers.ollama").check_endpoint_alive,
  },
...
2025-10-16 22:09:54 -07:00
Dmitry Torokhov
3e8557a29e fix(ollama): properly handle errors from curl when querying models
Without on_error() handler curl.get() will raise an error which then
will interrupt execution of the plenary job. This interruption will
result in timeout handling code triggering, introducing unneeded delay
and ugly stack traces.

Fix the problem by defining on_error() and callback() handlers and
explicitly wait for job completion with pcall() and Job:wait(). This
allows proper error handling and control over error messages.

Because plenary's curl implementation mangles stderr data, use a local
table to map select error codes to descriptive text messages.

Also do not emit hard error when endpoint is not configured, use
Utils.error().
2025-10-16 22:09:54 -07:00
Dmitry Torokhov
cccf5344ef feat(ollama): do not inherit default models from OpenAI provider
With Ollama majority of people are using their own models, and Ollama
provider by default queries the server for list of models, so there is
no need to inherit anything.
2025-10-16 22:09:54 -07:00
Tray
612f4a51bb [vertex] Allow project to be set via env var (#2739) 2025-10-16 22:29:51 +08:00
yetone
0971d8f421 fix: stabilize ACP streaming updates (#2776) 2025-10-16 21:28:45 +08:00
1A7432
994c049e88 feat(providers): update GLM model from glm-4.5 to glm-4.6 (#2763) 2025-10-16 19:09:09 +08:00
1A7432
7dfd086e21 fix: add proper ACP process cleanup on exit (#2723)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-10-16 19:08:35 +08:00
yetone
487972386e feat: support acp slash commands (#2775) 2025-10-16 19:05:57 +08:00
芦苇
216ba4a8b2 fix: should not add 'add current keymap' if auto_set_keymaps is false (#2773) 2025-10-16 03:18:52 +08:00
yetone
4a68e29165 feat: support codex acp provider (#2774) 2025-10-16 01:26:04 +08:00
Dmitry Torokhov
4fc83dc308 cleanup: use vim.uv instead of vim.loop everywhere (#2762) 2025-10-15 18:44:40 +08:00
Dmitry Torokhov
0716819a0e feat(providers): fail gracefully when a provider is misconfigured (#2768) 2025-10-15 18:43:55 +08:00
Peter Cardenas
250b7a26b4 fix: filter out completions to relevant completion source (#2769) 2025-10-15 18:43:25 +08:00
yetone
e1be2d21b7 fix: wrap confirm callback in vim.schedule_wrap (#2772) 2025-10-15 18:42:32 +08:00
Carlos Gomes
cecd0de6fc feat: Allow inline buttons and popup confirmation for both ACP and normal Providers (#2760)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-10-15 18:08:51 +08:00
yetone
178b62a180 feat: use ReAct for ollama (#2766) 2025-10-13 17:35:19 +08:00
Copilot
60cb63cdd2 feat: Add option to disable auto-adding current file when opening new chat (#2764)
Co-authored-by: yetone <1206493+yetone@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-10-13 11:34:44 +08:00
Dmitry Torokhov
f092bb3ec0 refactor(sidebar): move handle_submit() from create_input_container
handle_submit() is not directly related to the input container, and may
be called from other places. Make it a method of Sidebar class and
adjust the callers.
2025-10-11 22:14:55 -07:00
Dmitry Torokhov
d0f0580d64 fix: sanitize loaded chat history
Ensure that chat history loaded from a file has resemblance of correct
data. Namely title and timestamp are present and are strings, and
entires, messages, and todos are lists. In case of inconsistencies
replace with empty/default data.

This should help with #2584.

More changes are needed to sanitize individual entries.
2025-10-11 16:41:45 -07:00
Dmitry Torokhov
b08dc79088 refactor(promptLogger): move highlight definition into promptLogger code
Separate managing of a sign (">") placement for the input buffer and
defining a highlight for prompt logger and move the latter into
PromptLogger.init().
2025-10-11 16:39:52 -07:00
Copilot
7f5213f1fe Fix auto_approve_tool_permissions documentation to match default value (#2757)
Co-authored-by: yetone <1206493+yetone@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-10-12 01:15:53 +08:00
Dmitry Torokhov
5aafbdf3f9 fix(sidebar): fix handling of multiple windows when toggling full view (#2758) 2025-10-12 00:58:21 +08:00
Dmitry Torokhov
27f650d295 fix(sidebar): fix closing sidebar when closing its components (#2759) 2025-10-11 15:40:54 +08:00
Dmitry Torokhov
9fb2be881c fix: do not run luacheck over files in ./target directory (#2752) 2025-10-11 15:40:23 +08:00
ljie-PI
4390828e88 Fix luacheck error caused by snacks API change 2025-10-08 13:52:41 -07:00
Peter Cardenas
a7052aca0b feat: allow switching between acp providers with AvanteSwitchProvider (#2746) 2025-10-06 18:21:50 +08:00
Florian Engelhardt
5e4bb50dda Add support for Claude Sonnet 4.5 (#2736) 2025-10-02 11:29:30 +08:00
Jack Wright
4c0493440b Add Goose as an ACP provider (#2730)
Co-authored-by: Jack Wright <jack.wright@nike.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-09-30 17:19:06 +08:00
arsalan64
1947025ad3 docs: update mini.pick organization name (#2731) 2025-09-29 21:15:48 +08:00