Function: eca-chat-inline-stop
eca-chat-inline-stop is an interactive and natively compiled function
defined in eca-chat-inline.el.
Signature
(eca-chat-inline-stop)
Documentation
Stop the prompt running behind the inline overlay at point.
Key Bindings
eca-chat-inline-actions-map s
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-inline.el
;;;###autoload
(defun eca-chat-inline-stop ()
"Stop the prompt running behind the inline overlay at point."
(interactive)
(let* ((session (eca-chat-inline--session))
(ov (eca-chat-inline--ov-or-error))
(chat-id (overlay-get ov 'eca-chat-inline--chat-id))
(chat-buffer (and chat-id
(eca-chat-inline--chat-buffer session chat-id))))
(if (and chat-buffer
(or (buffer-local-value 'eca-chat--chat-loading chat-buffer)
(buffer-local-value 'eca-chat--pending-questions chat-buffer)))
;; The buffer path also cancels a pending question client-side.
(eca-chat--with-current-buffer chat-buffer
(eca-chat--stop-prompt session))
;; No mirror buffer, or it does not know the prompt started yet
;; (statusChanged still in flight): stop straight on the server,
;; which ignores chats that are not running.
(eca-api-notify session
:method "chat/promptStop"
:params (list :chatId chat-id)))
(eca-chat-inline--set-status ov "Stopping...")))