From f2b428104851dae8bcfad73f2da604a07c0678ec Mon Sep 17 00:00:00 2001 From: Felix Svensson Date: Tue, 24 Mar 2026 16:38:31 +0100 Subject: fix: append extra args after full command Avoids breaking named options like GeminiCLI's --prompt flag. --- lua/99/providers.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'lua') diff --git a/lua/99/providers.lua b/lua/99/providers.lua index 1ea9cda..7df0174 100644 --- a/lua/99/providers.lua +++ b/lua/99/providers.lua @@ -73,9 +73,7 @@ function BaseProvider:make_request(query, context, observer) local command = self:_build_command(query, context) local extra_args = context._99 and context._99.provider_extra_args or {} if #extra_args > 0 then - local query_arg = table.remove(command) vim.list_extend(command, extra_args) - table.insert(command, query_arg) end logger:debug("make_request", "command", command) -- cgit v1.3-3-g829e