Commit Graph

1261 Commits

Author SHA1 Message Date
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
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
brook hong
ed89d0a1cd feat: filter prompt history by user input (#2734) 2025-09-29 21:15:25 +08:00
1A7432
44db8eba87 feat: add automatic ACP session recovery with intelligent history truncation (#2711) 2025-09-18 15:22:26 +08:00
1A7432
e538060156 feat: add xai, glm, and qwen providers to default config (#2714) 2025-09-17 11:39:51 +08:00
brook hong
ab6fb1c5b8 fix: AWS CLI is only needed if aws_profile is used for authoriztion of bedrock (#2706) 2025-09-15 13:16:50 +08:00
Eldad Zack
846736789e feat(git): Add configuration option for 'Generated-by' line in commit messages (#2708) 2025-09-15 13:16:35 +08:00
Carlos Gomes
56951378f1 feat: include hidden files when scanning directories (#2700) 2025-09-11 21:44:14 +08:00
yetone
00224ea378 fix: use acp to editing (#2701) 2025-09-11 18:39:00 +08:00
Matéo
39336ca00a fix: mistral ai bug 400 role user after role tool (#2695) 2025-09-08 10:38:55 +08:00
yetone
46583943b6 fix(sidebar): persist ACP session id in chat history (#2687) 2025-09-04 21:31:00 +08:00
Yinzuo Jiang
79d2b1d205 chore: remove lua/.tag (#2643) 2025-09-04 15:36:15 +08:00
yetone
10e0312ec4 feat: request permission button group (#2685) 2025-09-04 15:35:40 +08:00
yetone
4ac4c8ed3f feat(ui): expand tool use message (#2684) 2025-09-04 00:17:32 +08:00
Shaobin Jiang
0aaa91d267 fix: switch_windows keymap not reflected in sidebar (#2675) 2025-09-03 14:01:31 +08:00
yetone
181befe20b fix: validate oldText and newText before render diff (#2681) 2025-09-03 14:01:22 +08:00
yetone
0955c2913f feat: zen mode (#2679) 2025-09-03 12:51:43 +08:00
yetone
73a797616b feat: use zed claude code acp (#2678) 2025-09-03 12:14:25 +08:00
yetone
9f0bb4bfb9 fix: compatible with zed claude code acp (#2676) 2025-09-03 00:12:49 +08:00
yetone
ebed32d7e3 fix: resource link for acp (#2674) 2025-09-02 22:17:34 +08:00