From 6252ec01350bd211e043bb84b31498cc00a11046 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 2 Jul 2026 00:44:52 -0400 Subject: fix(ai-term): drop the Agent: echo after an agent swap The message duplicated the modeline directly above it: the buffer name and the eat state icons already announce which agent is focused, so the echo just lingered as clutter. The no-other-agents echo stays, since it reports something the modeline can't. --- tests/test-ai-term--next-single-agent.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-ai-term--next-single-agent.el b/tests/test-ai-term--next-single-agent.el index f31807d0..1814d937 100644 --- a/tests/test-ai-term--next-single-agent.el +++ b/tests/test-ai-term--next-single-agent.el @@ -97,7 +97,10 @@ (kill-buffer buf)))) (ert-deftest test-ai-term-next-two-agents-still-swaps () - "Normal: two agents, one focused -> swaps to the other, no no-others message." + "Normal: two agents, one focused -> swaps silently to the other. +The modeline announces the agent (buffer name + eat state), so the swap +emits no echo-area message (2026-07-02: the \"Agent: \" echo was +dropped as clutter duplicating the modeline)." (let ((buf-a (get-buffer-create "agent-buf-a")) (buf-b (get-buffer-create "agent-buf-b")) (captured nil)) @@ -117,7 +120,7 @@ (when fmt (setq captured (apply #'format fmt args)))))) (cj/ai-term-next) (should (eq (window-buffer (selected-window)) buf-b)) - (should (equal captured "Agent: agent-buf-b")))) + (should-not captured))) (kill-buffer buf-a) (kill-buffer buf-b)))) -- cgit v1.2.3