aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/app-core.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
commit9bdede14e568bfbfcf0e828198ace22dce213d66 (patch)
treeca7ba4833aa94c1656b8a225a01f555f667fc3b7 /scripts/theme-studio/app-core.js
parent221d3803a17e645a2729a593da68801d621a639b (diff)
downloaddotemacs-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/theme-studio/app-core.js')
0 files changed, 0 insertions, 0 deletions