Function: eca-chat--move-on-from-approval
eca-chat--move-on-from-approval is a natively compiled function
defined in eca-chat.el.
Signature
(eca-chat--move-on-from-approval)
Documentation
Leave the block of a resolved approval the user acted on.
Anchor on the next tool call awaiting approval, or bring the prompt back into view when none is left, so the chat is followed again after accepting and rejecting to tell ECA what to do differently lands at the prompt.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--move-on-from-approval ()
"Leave the block of a resolved approval the user acted on.
Anchor on the next tool call awaiting approval, or bring the prompt
back into view when none is left, so the chat is followed again
after accepting and rejecting to tell ECA what to do differently
lands at the prompt."
(if-let* ((next-id (eca-chat--first-pending-approval-id)))
(eca-chat--ensure-tool-call-approval-visible next-id)
(eca-chat--ensure-prompt-visible t))
(setq eca-chat--keep-point t))