Function: eca-chat--update-bg-job-emoji
eca-chat--update-bg-job-emoji is a natively compiled function defined
in eca-chat.el.
Signature
(eca-chat--update-bg-job-emoji TOOL-CALL-ID NEW-EMOJI)
Documentation
Update background job status emoji in TOOL-CALL-ID.
Replace the job status emoji with NEW-EMOJI.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--update-bg-job-emoji (tool-call-id new-emoji)
"Update background job status emoji in TOOL-CALL-ID.
Replace the job status emoji with NEW-EMOJI."
(when-let* ((ov (eca-chat--get-expandable-content
tool-call-id))
(ov-content (overlay-get ov 'eca-chat--expandable-content-ov-content)))
(let ((start (overlay-start ov))
(end (overlay-start ov-content))
(inhibit-read-only t))
(save-excursion
(goto-char start)
(when (re-search-forward "🟡\\|✅\\|🔴\\|⚫" end t)
(replace-match new-emoji t t))))))