Function: eca-chat--set-task-widget
eca-chat--set-task-widget is a natively compiled function defined in
eca-chat.el.
Signature
(eca-chat--set-task-widget LABEL BODY &optional APPROVAL-ID)
Documentation
Show LABEL and BODY in the task area widget, creating it when needed.
APPROVAL-ID is the tool call whose approval prompt LABEL carries, if any.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--set-task-widget (label body &optional approval-id)
"Show LABEL and BODY in the task area widget, creating it when needed.
APPROVAL-ID is the tool call whose approval prompt LABEL carries, if any."
(if (eca-chat--get-expandable-content eca-chat--task-block-id)
(eca-chat--update-expandable-content eca-chat--task-block-id label body)
(eca-chat--add-expandable-content eca-chat--task-block-id label body nil
(overlay-start (eca-chat--task-area-ov))))
(overlay-put (eca-chat--get-expandable-content eca-chat--task-block-id)
'eca-chat--task-approval-id approval-id))