Function: eca-chat--needs-attention-p
eca-chat--needs-attention-p is a natively compiled function defined in
eca-chat.el.
Signature
(eca-chat--needs-attention-p BUFFER)
Documentation
Return non-nil when chat BUFFER is waiting on the user.
A chat needs attention when it has a pending tool call approval or an unanswered question. A still loading chat is busy, not waiting, so it is not considered.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--needs-attention-p (buffer)
"Return non-nil when chat BUFFER is waiting on the user.
A chat needs attention when it has a pending tool call approval
or an unanswered question. A still loading chat is busy, not
waiting, so it is not considered."
(and (buffer-live-p buffer)
(with-current-buffer buffer
(and (derived-mode-p 'eca-chat-mode)
(or (eca-chat--has-pending-approvals-p)
(and eca-chat--pending-questions t))))))