Function: eca-chat--shell-command-state-face

eca-chat--shell-command-state-face is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--shell-command-state-face CMD &optional APPROVED?)

Documentation

Return the face conveying the approval state of CMD, a breakdown entry.

When APPROVED? is non-nil the tool call is already approved (trusted, auto-allowed or manually approved), so approvable commands render as approved instead of pending.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--shell-command-state-face (cmd &optional approved?)
  "Return the face conveying the approval state of CMD, a breakdown entry.
When APPROVED? is non-nil the tool call is already approved (trusted,
auto-allowed or manually approved), so approvable commands render as
approved instead of pending."
  (-let* (((&plist :approvalKey approval-key :remembered remembered) cmd))
    (cond ((not approval-key) 'eca-chat-shell-command-face)
          ((or remembered approved?) 'eca-chat-shell-command-remembered-face)
          (t 'eca-chat-shell-command-not-remembered-face))))