/settings/ai crashes on an unknown AI provider kind #98

Open
opened 2026-11-28 20:46:42 +00:00 by jfro · 0 comments
Owner

Found in Nye's review of PR #97 (#96). If a stored AI setting has a kind that isn't a known provider (for example "anthropic" instead of "claude"), /settings/ai crashes with nil.unavailable/0 at lib/lamplighter_web/live/ai_settings_live.ex:312. Same on main. A restore from a newer or hand-edited backup could bring in such a row. Expected: the page loads and shows the setting as an unknown provider instead of crashing.

Found in Nye's review of PR #97 (#96). If a stored AI setting has a kind that isn't a known provider (for example "anthropic" instead of "claude"), /settings/ai crashes with nil.unavailable/0 at lib/lamplighter_web/live/ai_settings_live.ex:312. Same on main. A restore from a newer or hand-edited backup could bring in such a row. Expected: the page loads and shows the setting as an unknown provider instead of crashing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/lamplighter#98
No description provided.