Skip to content

Commit 31b8d44

Browse files
committed
fix(acp): kimi cli 1.5 acp authentication failure #2706
1 parent f61dbb2 commit 31b8d44

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lua/codecompanion/adapters/acp/kimi_cli.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ return {
1515
commands = {
1616
default = {
1717
"kimi",
18-
"--acp",
18+
"acp",
1919
},
2020
},
2121
defaults = {
@@ -39,6 +39,14 @@ return {
3939
return true
4040
end,
4141

42+
-- Kimi CLI is already authenticated through CLI /login(setup)
43+
-- Returning true skips ACP authentication
44+
---@param self CodeCompanion.ACPAdapter
45+
---@return boolean
46+
auth = function(self)
47+
return true
48+
end,
49+
4250
---@param self CodeCompanion.ACPAdapter
4351
---@param messages table
4452
---@param capabilities table

0 commit comments

Comments
 (0)