From 4e924fddebf3ccbfe41fda437ef0ca02cfed4e58 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 31 May 2026 16:20:34 -0500 Subject: feat(ai-vterm): gate the F9 launcher to GUI frames AI-vterm launches a graphical vterm side window, so F9 / C-F9 / M-F9 now decline with a message in a terminal frame instead of opening a vterm. The guard checks the current frame at command time rather than at load. That matters under the daemon, which serves GUI and terminal frames both with display-graphic-p nil at load, so a load-time gate would have disabled the launcher in its GUI frames too. Routed the three window-behavior tests through a GUI-frame stub, since a batch run is itself a terminal frame. --- tests/test-ai-vterm--display-saved.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test-ai-vterm--display-saved.el') diff --git a/tests/test-ai-vterm--display-saved.el b/tests/test-ai-vterm--display-saved.el index 866ff11d7..0cf59a292 100644 --- a/tests/test-ai-vterm--display-saved.el +++ b/tests/test-ai-vterm--display-saved.el @@ -155,8 +155,8 @@ once and no spurious extra window leaks." (let ((display-buffer-alist (cj/--ai-vterm-display-rule-list)) (window-count-before (count-windows))) (select-window agent-win) - (cj/ai-vterm) ; off - (cj/ai-vterm) ; on + (cj/test--call-as-gui #'cj/ai-vterm) ; off + (cj/test--call-as-gui #'cj/ai-vterm) ; on (should (<= (count-windows) window-count-before)) ;; Agent must be displayed exactly once. (let ((agent-windows -- cgit v1.2.3