aboutsummaryrefslogtreecommitdiff
path: root/tests/test-ai-vterm--display-saved.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-31 16:20:34 -0500
committerCraig Jennings <c@cjennings.net>2026-05-31 16:20:34 -0500
commitc8692039b05c9b4c0825e8bcc6c1ff56f1a665ba (patch)
tree7f6c4bb47fcdaf018e46cec561b99b75a2b8372a /tests/test-ai-vterm--display-saved.el
parent0de813ccc4bb08e6b262a7eff02b1ba69736faad (diff)
downloaddotemacs-c8692039b05c9b4c0825e8bcc6c1ff56f1a665ba.tar.gz
dotemacs-c8692039b05c9b4c0825e8bcc6c1ff56f1a665ba.zip
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.
Diffstat (limited to 'tests/test-ai-vterm--display-saved.el')
-rw-r--r--tests/test-ai-vterm--display-saved.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-ai-vterm--display-saved.el b/tests/test-ai-vterm--display-saved.el
index 866ff11d..0cf59a29 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