1
0
Fork 0
Commit graph

1 commit

Author SHA1 Message Date
31e6cd6509 fix(ai): make the connection key enterable and the probe legible
Three defects found by driving the real admin panel, none of which a
typecheck or a unit test would have caught:

- The API key could not be entered at all. Field-level read access denies
  the value, and Payload does not render a field you cannot read, so the
  input was absent while the collection said it existed. The input is now
  a `ui` component that writes the hidden value through useField, which
  keeps the key server-only and gives it a working control.
- The probe panel and key input used frontend/ zinc styling, which reads
  as an accidental dark block on the admin panel's light theme. They now
  use the admin bundle's own --theme-elevation variables.
- An unreachable host reported "fetch failed" with no cause. Node hides
  the connect error inside `cause`, and that string ("connect
  ECONNREFUSED 10.0.0.5:8888") is the only part an admin can act on, so
  it is now included.

Also labels the acronym fields ("Base URL", "Model ID", "Has API key")
and covers the unreachable-host path in the generate-modes spec.
2026-11-24 13:28:58 -05:00