Function: eca-workspaces--send-initial-prompt
eca-workspaces--send-initial-prompt is a natively compiled function
defined in eca-workspaces.el.
Signature
(eca-workspaces--send-initial-prompt SESSION PROMPT)
Documentation
Send PROMPT in the last chat of SESSION, unless PROMPT is empty.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-workspaces.el
(defun eca-workspaces--send-initial-prompt (session prompt)
"Send PROMPT in the last chat of SESSION, unless PROMPT is empty."
(let ((chat-buffer (eca--session-last-chat-buffer session)))
(when (and (not (string-empty-p prompt))
(buffer-live-p chat-buffer))
(with-current-buffer chat-buffer
(eca-chat--send-prompt session prompt)))))