aboutsummaryrefslogtreecommitdiff
path: root/tests/test-ai-config-model-to-symbol.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(ai-config): intern model in gptel-switch-backend (modeline hang)Craig Jennings2026-06-161-0/+61
cj/gptel-switch-backend set gptel-model to the raw completing-read string. gptel's modeline code calls symbolp on gptel-model and signals wrong-type-argument on a string, which surfaces as a redisplay hang (reachable from C-; a B). The sibling command cj/gptel-change-model already interns. This one didn't. I added a pure cj/gptel--model-to-symbol helper (mirroring cj/gptel--model-to-string) and route the model through it before the setq. The existing switch-backend test asserted the buggy string value. It now asserts a symbol plus an explicit symbolp guard.