Function: eca-chat--stream-flush
eca-chat--stream-flush is a natively compiled function defined in
eca-chat.el.
Signature
(eca-chat--stream-flush)
Documentation
Render pending assistant stream text in the current chat.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--stream-flush ()
"Render pending assistant stream text in the current chat."
(let ((chunks eca-chat--stream-pending-chunks))
(eca-chat--stream-cancel)
(setq-local eca-chat--stream-pending-chunks nil)
(when chunks
(let ((text (mapconcat #'identity (nreverse chunks) "")))
(unless (string-empty-p text)
(save-excursion
(eca-chat--add-text-content text)
(eca-chat--schedule-fontify)
(eca-chat--protect-non-prompt eca-chat--last-user-message-pos)))))))