diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-16 00:14:17 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-16 00:14:17 -0500 |
| commit | 9bdede14e568bfbfcf0e828198ace22dce213d66 (patch) | |
| tree | ca7ba4833aa94c1656b8a225a01f555f667fc3b7 /scripts | |
| parent | 221d3803a17e645a2729a593da68801d621a639b (diff) | |
| download | dotemacs-9bdede14e568bfbfcf0e828198ace22dce213d66.tar.gz dotemacs-9bdede14e568bfbfcf0e828198ace22dce213d66.zip | |
fix(ai-config): intern model in gptel-switch-backend (modeline hang)
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.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
