Function: eca-chat-inline--start-prompt
eca-chat-inline--start-prompt is a natively compiled function defined
in eca-chat-inline.el.
Signature
(eca-chat-inline--start-prompt SESSION CHAT-ID &optional SOURCE-CHAT-ID DESC)
Documentation
Read a prompt and send it to CHAT-ID of SESSION.
SOURCE-CHAT-ID asks the server to fork that chat into a brand-new inline chat. DESC labels the minibuffer prompt.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-inline.el
(defun eca-chat-inline--start-prompt (session chat-id &optional source-chat-id desc)
"Read a prompt and send it to CHAT-ID of SESSION.
SOURCE-CHAT-ID asks the server to fork that chat into a brand-new
inline chat. DESC labels the minibuffer prompt."
(let* ((contexts (eca-chat-inline--dwim-contexts))
(bounds (eca-chat-inline--anchor-bounds))
(text (eca-chat-inline--read-prompt (or desc "new chat")))
;; Ensure the mirror buffer before creating the overlay so an
;; error here leaks no unbound overlay; remember when this
;; request created it, to roll it back if the request fails.
(created-chat-buffer
(unless (eca-chat-inline--chat-buffer session chat-id)
(eca-chat-ensure-chat-buffer session chat-id)))
(ov (eca-chat-inline--setup-overlay session
(car bounds) (cdr bounds))))
(eca-chat-inline--bind-overlay ov chat-id)
(deactivate-mark)
(eca-chat-inline--set-status ov "Waiting model...")
(eca-chat-inline--send session ov text contexts source-chat-id
created-chat-buffer)))