<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-ai-term--project-color.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-07-02T14:33:34+00:00</updated>
<entry>
<title>feat(ai-term): auto-set each project's session color on fresh launch</title>
<updated>2026-07-02T14:33:34+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-07-02T14:33:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=75cf36183811a1a9208baf6d75b56c274debebca'/>
<id>urn:sha1:75cf36183811a1a9208baf6d75b56c274debebca</id>
<content type='text'>
Every project now maps to a stable Claude Code session color: an override alist wins, else a character-sum hash of the project basename picks one of the eight names. When a fresh tmux session is created (never on reattach), a poller waits for the TUI to boot and types /color &lt;name&gt; itself, with the Enter deferred a beat so the slash-command menu can't swallow it. Two refusals keep the injection safe: the bypass banner must be on screen (a bare shell never gets typed into) and the prompt line must still be empty (typed-ahead input is never corrupted).
</content>
</entry>
</feed>
