Function: eca-chat-toggle-trust

eca-chat-toggle-trust is an interactive and natively compiled function defined in eca-chat.el.

Signature

(eca-chat-toggle-trust)

Documentation

Toggle trust mode (auto-accept all tool call).

Sends chat/update to server so trust applies immediately to the next tool call.

Key Bindings

eca-chat--trust-toggle-map <mode-line> <mouse-1> eca-chat-mode-map C-c C-t

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
;;;###autoload
(defun eca-chat-toggle-trust ()
  "Toggle trust mode (auto-accept all tool call).
Sends chat/update to server so trust applies immediately to the next tool call."
  (interactive)
  (let ((new-value (not (eca-chat--trust))))
    (eca-chat--set-trust (eca-session) new-value (current-buffer))
    (when eca-chat--id
      (eca-api-request-sync (eca-session)
                            :method "chat/update"
                            :params (list :chatId eca-chat--id
                                          :trust (if new-value t :json-false))))
    (eca-info (if new-value
                  "Enabled trust-mode (Auto accept tool calls)"
                "Disabled trust-mode (Auto accept tool calls)"))))