Function: eca-chat--maybe-notify-status-changed
eca-chat--maybe-notify-status-changed is a natively compiled function
defined in eca-chat.el.
Signature
(eca-chat--maybe-notify-status-changed SESSION CONTENT)
Documentation
Notify a status change for SESSION when CONTENT can alter attention.
Tool-call lifecycle events add or clear a pending approval, and metadata/usage events update titles and costs shown by integrations, so the status recompute is limited to those content types to avoid scanning the buffer on every streamed chunk.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--maybe-notify-status-changed (session content)
"Notify a status change for SESSION when CONTENT can alter attention.
Tool-call lifecycle events add or clear a pending approval, and
metadata/usage events update titles and costs shown by integrations,
so the status recompute is limited to those content types to avoid
scanning the buffer on every streamed chunk."
(when (member (plist-get content :type)
'("toolCallRun" "toolCallRunning" "toolCalled" "toolCallRejected"
"metadata" "usage"))
(eca-chat--notify-status-changed session)))