Variable: eca-chat-auto-revert-changed-files

eca-chat-auto-revert-changed-files is a customizable variable defined in eca-chat.el.

Value

t

Documentation

Whether to revert buffers visiting files edited by ECA tool calls.

When non-nil, once a tool call that changes a file finishes, the buffer visiting that file is reverted from disk so it shows the new content, like auto-revert-mode would but without waiting for its polling. Buffers with unsaved changes are never reverted, so no edit is lost; Emacs then asks about the file having changed on disk on the next save.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defcustom eca-chat-auto-revert-changed-files t
  "Whether to revert buffers visiting files edited by ECA tool calls.
When non-nil, once a tool call that changes a file finishes, the buffer
visiting that file is reverted from disk so it shows the new content,
like `auto-revert-mode' would but without waiting for its polling.
Buffers with unsaved changes are never reverted, so no edit is lost;
Emacs then asks about the file having changed on disk on the next save."
  :type 'boolean
  :group 'eca)