fix: support cancelling acp providers (#2847)

This commit is contained in:
Peter Cardenas
2025-12-16 03:07:10 -08:00
committed by GitHub
parent 92f972a413
commit 80f7079556
2 changed files with 26 additions and 1 deletions

View File

@@ -2813,7 +2813,11 @@ function Sidebar:handle_submit(request)
return
end
on_state_change("succeeded")
if stop_opts.reason == "cancelled" then
on_state_change("cancelled")
else
on_state_change("succeeded")
end
self:update_content("", {
callback = function() api.nvim_exec_autocmds("User", { pattern = VIEW_BUFFER_UPDATED_PATTERN }) end,