diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-31 16:20:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-31 16:20:34 -0500 |
| commit | 4e924fddebf3ccbfe41fda437ef0ca02cfed4e58 (patch) | |
| tree | fbf5b0c27c749eeb65b806ddc693eb2cd48f3199 /tests/test-ai-vterm--display-saved.el | |
| parent | da012721c84117c83b11ea52176a5032d187e442 (diff) | |
| download | dotemacs-4e924fddebf3ccbfe41fda437ef0ca02cfed4e58.tar.gz dotemacs-4e924fddebf3ccbfe41fda437ef0ca02cfed4e58.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.el | 4 |
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 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 |
