<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-ai-term--next-agent-dir.el, branch main</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-06-25T12:51:56+00:00</updated>
<entry>
<title>feat(ai-term): step into detached sessions too, attaching them</title>
<updated>2026-06-25T12:51:56+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-06-25T12:51:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=79cbccb59da539d6cce0f7f67b8efe1844ae4cbd'/>
<id>urn:sha1:79cbccb59da539d6cce0f7f67b8efe1844ae4cbd</id>
<content type='text'>
The next-agent step (C-; a n / M-SPC) cycled only live agent buffers, so a detached session (alive in tmux, no Emacs buffer) was reachable only through the picker. Now the queue is every active agent, live buffer or live session, keyed on the project dir and ordered by buffer name. Stepping onto a detached one attaches it: show-or-create recreates the terminal, which reattaches the tmux session. The live-buffer swap path is unchanged. I replaced the buffer-rotation helper with a dir-based one and added an active-agent enumerator, with 10 tests.
</content>
</entry>
</feed>
