From 3803626d4f96d337772d39ec1363f6947344be38 Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Tue, 13 Jan 2026 12:43:37 +1100 Subject: [PATCH] Fix opencode command for kitty provider Kitty requires the executable and any extra arguments to be provided as an array of values. Before this change it would try and execute "opencode --port" and state no such executable could be found This fixes the issue for the kitty provider; unsure if other providers would need a similar fix --- lua/opencode/provider/kitty.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/opencode/provider/kitty.lua b/lua/opencode/provider/kitty.lua index 7a818d24..04b96255 100644 --- a/lua/opencode/provider/kitty.lua +++ b/lua/opencode/provider/kitty.lua @@ -131,7 +131,10 @@ function Kitty:start() table.insert(launch_cmd, "--location=" .. location) end - table.insert(launch_cmd, self.cmd) + -- Split cmd string into separate arguments for kitty launch + for arg in self.cmd:gmatch("%S+") do + table.insert(launch_cmd, arg) + end local stdout, code = self:kitty_exec(launch_cmd)