Skip to content

Commit a4ffd31

Browse files
authored
Merge pull request #123 from editor-code-assistant/fix-tool-ui-stuck-state
fix: ensure tool call UI updates when summary is missing
2 parents cc44b43 + 8c06ed0 commit a4ffd31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eca-chat.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,10 +1920,11 @@ Append STATUS, TOOL-CALL-NEXT-LINE-SPACING and ROOTS"
19201920
"Update tool call UI for json output given CONTENT, TIME and STATUS."
19211921
(-let* (((&plist :name name :arguments arguments :server server :details details :id
19221922
id :summary summary) content)
1923-
(jsons (plist-get details :jsons)))
1923+
(jsons (plist-get details :jsons))
1924+
(label (or summary (format "Called tool: %s__%s" server name))))
19241925
(eca-chat--update-expandable-content
19251926
id
1926-
(concat (propertize summary 'font-lock-face 'eca-chat-mcp-tool-call-label-face)
1927+
(concat (propertize label 'font-lock-face 'eca-chat-mcp-tool-call-label-face)
19271928
" " status time)
19281929
(eca-chat--content-table
19291930
`(("Tool" . ,name)

0 commit comments

Comments
 (0)