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 | 49877b4442aa33fde037903a177156a84b44fd4f (patch) | |
| tree | aaba35bbbc0ef013495243af9986657f9b028b43 /scripts/theme-studio/default_faces.py | |
| parent | eb0ecfd34ae25460033bb96ff1afddcaca7a40f2 (diff) | |
| download | dotemacs-49877b4442aa33fde037903a177156a84b44fd4f.tar.gz dotemacs-49877b4442aa33fde037903a177156a84b44fd4f.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/theme-studio/default_faces.py')
0 files changed, 0 insertions, 0 deletions
