aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/app-util.js
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-16 00:14:17 -0500
committerCraig Jennings <c@cjennings.net>2026-06-16 00:14:17 -0500
commit49877b4442aa33fde037903a177156a84b44fd4f (patch)
treeaaba35bbbc0ef013495243af9986657f9b028b43 /scripts/theme-studio/app-util.js
parenteb0ecfd34ae25460033bb96ff1afddcaca7a40f2 (diff)
downloaddotemacs-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/app-util.js')
0 files changed, 0 insertions, 0 deletions