fix: stabilize ACP streaming updates (#2776)

This commit is contained in:
yetone
2025-10-16 21:28:45 +08:00
committed by GitHub
parent 994c049e88
commit 0971d8f421
3 changed files with 8 additions and 2 deletions

View File

@@ -1087,7 +1087,7 @@ function M._stream_acp(opts)
if update.status == "pending" or update.status == "in_progress" then
tool_call_message.is_calling = true
tool_call_message.state = "generating"
else
elseif update.status == "completed" or update.status == "failed" then
tool_call_message.is_calling = false
tool_call_message.state = "generated"
tool_result_message = History.Message:new("assistant", {