feat: support codex acp provider (#2774)

This commit is contained in:
yetone
2025-10-16 01:26:04 +08:00
committed by GitHub
parent 4fc83dc308
commit 4a68e29165
6 changed files with 60 additions and 4 deletions

View File

@@ -1949,7 +1949,7 @@ function Sidebar:get_message_lines(ctx, message, messages, ignore_record_prefix)
if type(item) == "string" then
text_len = text_len + #item
else
for _, subitem in ipairs(item) do
for _, subitem in pairs(item) do
if type(subitem) == "string" then text_len = text_len + #subitem end
end
end