diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-13 23:45:37 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-13 23:45:37 -0500 |
| commit | 03a1f26b2879f678a48c036a9e6f4b9ace864c3b (patch) | |
| tree | 3b0cf5c6337ea9b83cfc5f23235c19eb95f0f700 /tests/test-calendar-sync--filter-exdates.el | |
| parent | 42cb6c172ebd8fa61de39244a049bb23e3d0a69a (diff) | |
| download | dotemacs-03a1f26b2879f678a48c036a9e6f4b9ace864c3b.tar.gz dotemacs-03a1f26b2879f678a48c036a9e6f4b9ace864c3b.zip | |
feat(ai-term): pick the agent runtime at session launch
A fresh agent session now asks which runtime to run: claude, codex, or any local ollama model via codex --oss. RET keeps claude, so the common launch stays Enter-Enter. Reattaches and redisplays never ask. The picker fires only when neither a live agent buffer nor a surviving tmux session exists.
I mirrored the runtime names and launch strings from the bin/ai launcher so the two stay one mental model, and the choice list itself comes from "ai --print-runtimes" when that launcher is installed, reusing its live ollama scan and dead-server timeout. A static claude-first list stands in without it. The explicit --local-provider=ollama flag is deliberate: configuring the provider through config.toml silently does nothing.
The chosen command threads through show-or-create into the tmux launch line. On reattach, tmux new-session -A ignores it, so no reattach path changes behavior. cj/ai-term-agent-command keeps its meaning as the claude runtime's full line.
Thirteen tests cover the runtime-to-command map, the print-runtimes parsing, the launcher fallback, and the launch-command override.
Diffstat (limited to 'tests/test-calendar-sync--filter-exdates.el')
0 files changed, 0 insertions, 0 deletions
