AI 0.25.4: Keys kept out of logs and an endpoint form that no longer crashes
AI 0.25.4 is a hardening release: API keys and user content stay out of logs and process messages, an endpoint’s base URL can no longer point at an internal address, and several crashes in the admin pages are gone.
What changed
Change broadcasts now carry only a record’s uuid, and the endpoint form and the Playground look the key up where it is used. A saved base URL whose name resolves to an internal address, or ends in .internal, is refused. Loading models and voices on the endpoint form always finishes, even when the fetch crashes.
Fixed: the endpoint form crashed on some connection check results; toggling or deleting an endpoint or prompt that another tab had removed now shows a message instead of crashing; fold-out sections stay open; a failed check says “The request could not be completed”. A duplicated prompt keeps its system prompt.
The background translation sweep no longer picks the most recently used endpoint. A translation endpoint set in the settings is binding: if it is gone or disabled, the sweep stops instead of switching. A rate-limited translation job waits at most five times before it counts as failed.
Full release notes: AI 0.25.4
0.25.4 · 13 October 2026
Changed
- Keys and user content stay out of process messages and logs (PR #36): change
broadcasts carry the record’s uuid only, the endpoint form and the
Playground pass connection / endpoint uuids and resolve the key where it is
used, catch-all
handle_info/2clauses log the message’s shape, and a translation failure is logged and broadcast as a static{category, detail}pair. - The endpoint form’s model and voice fetch runs off the LiveView process
(
start_async/3), drops results for a connection or model type the operator has left, and always settles the loading state, including when the fetch or the validation task crashes. - A saved
base_urlis checked against the image-fetch host policy, names included: a name resolving to an internal address (or ending.internal) is refused. Resolution happens only when the URL changes, in at most two seconds; the form’s per-keystroke changeset never resolves. Chat and adapter requests no longer follow redirects. - The translation sweep translates with
Translations.unattended_endpoint_uuid/0: an explicit endpoint setting is binding (gone or disabled stops the tick as:ai_unavailable), and the “last used” endpoint is never consulted. A rate-limited translation job snoozes at most five times before it counts as an ordinary failure. duplicate_prompt/3,enable_prompt/2,disable_prompt/2andreset_prompt_usage/2take:actor_uuid; resetting usage logsprompt.usage_reset. A duplicated prompt keeps its system prompt.search_prompts/2matches LIKE metacharacters literally.
Fixed
- Every
Integrations.validate_connection/2result is handled (:ok,{:ok, note},:unverified,{:error, _}); the latter two used to crash the endpoint form. - A raise inside the translation engine ends in a terminal
translation_failedevent instead of a silent retry. - Fold-out sections (
<details>) stay open across re-renders. - Toggling or deleting an endpoint or prompt that was removed in another tab shows a flash instead of crashing; client sort params are whitelisted.
- A failed validation task shows “The request could not be completed” rather
than
Unexpected error: :request_failed.
AI 0.25.4. Install or update: {:phoenix_kit_ai, "~> 0.25"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.