Function: eca-chat--subagent-child-pending-approval-p

eca-chat--subagent-child-pending-approval-p is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--subagent-child-pending-approval-p PARENT-TOOL-CALL-ID)

Documentation

Return non-nil when a child of PARENT-TOOL-CALL-ID awaits approval.

Scans only the parent block's nested content region.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--subagent-child-pending-approval-p (parent-tool-call-id)
  "Return non-nil when a child of PARENT-TOOL-CALL-ID awaits approval.
Scans only the parent block's nested content region."
  (when-let* ((ov-label (eca-chat--get-expandable-content parent-tool-call-id))
              (ov-content (overlay-get ov-label 'eca-chat--expandable-content-ov-content))
              ((overlay-buffer ov-content)))
    (text-property-any (overlay-start ov-content) (overlay-end ov-content)
                       'eca-tool-call-pending-approval-accept t)))