fix: fixed TD-01 and TD-25

This commit is contained in:
2026-06-11 12:13:14 +02:00
parent e6a2055e18
commit 21b11ef87e
21 changed files with 826 additions and 69 deletions

View File

@@ -1027,9 +1027,8 @@ defmodule BDS.Desktop.ShellLive.ChatEditor do
defp present?(value) when is_binary(value), do: String.trim(value) != ""
defp present?(value), do: not is_nil(value)
defp format_error(%{kind: :endpoint_not_configured}),
do: dgettext("ui", "Configure an API key in Settings to enable AI chat.")
# :endpoint_not_configured is handled by its own case clause before this is
# reached; the chat surface already shows the configuration hint.
defp format_error(reason), do: inspect(reason)
defp parse_integer(value) when is_integer(value), do: value