From 5567d582a65ef286c4e893cc2e30aaef9e184cd0 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 3 Jul 2026 19:11:26 -0400 Subject: fix(eat): prohibit C-z so a stray keypress can't background the agent C-z forwarded to the pty sends SIGTSTP to the foreground job; with eat-over-tmux, fg does not reliably bring the agent back. Swallow it in eat-semi-char-mode-map so it never reaches the pty. --- modules/eat-config.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/eat-config.el b/modules/eat-config.el index e059fe36..e5b8f0c5 100644 --- a/modules/eat-config.el +++ b/modules/eat-config.el @@ -560,7 +560,12 @@ pty; without tmux, moves point up in EAT's emacs-mode buffer." ;; (point jumped back on the next keystroke). Window arrows (S-, C-M-) keep ;; reaching Emacs for windmove / buffer-move. (dolist (key '("C-" "C-" "M-" "M-")) - (keymap-set eat-semi-char-mode-map key #'eat-self-input))) + (keymap-set eat-semi-char-mode-map key #'eat-self-input)) + ;; C-z is prohibited. Forwarded to the pty it sends SIGTSTP to the foreground + ;; job, backgrounding the agent; with eat-over-tmux, `fg' does not reliably + ;; bring it back. Swallowing it here (a no-op that reaches Emacs, not the pty) + ;; keeps a stray C-z from stopping the agent. + (keymap-set eat-semi-char-mode-map "C-z" #'ignore)) (provide 'eat-config) ;;; eat-config.el ends here -- cgit v1.2.3