Skip to content

(bug) Model picker shows a false "not available" badge, and Bedrock credential failures hang instead of failing fast #5118

Description

@mmabrouk

Two frontend/UX issues found while probing custom-provider connections: the model picker mislabels some valid vault models as unavailable, and a Bedrock connection with bad credentials hangs for a long time before failing with an unhelpful error.

1. False "model not available" badge

Steps to reproduce

  1. Add a vault connection whose model id doesn't encode a recognizable provider family (for example a custom-provider model id that doesn't match a known provider/model shape).
  2. Open the model picker for an agent config.

Observed

The model is flagged with a "not available" badge, even though the backend accepts it and a run against it succeeds.

Where this lives

web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/useModelHarness.tsx (around lines 483-524) — availability is derived from the shape of the model id rather than from what the backend actually supports for the selected harness.

2. Bedrock bad-credentials run hangs instead of failing fast

Steps to reproduce

  1. Connect a Bedrock provider with invalid access key/secret.
  2. Run against it and time how long it takes to fail.

Observed

The run hangs for roughly 210 seconds before failing, and then surfaces a generic 500 rather than a clear "invalid credentials" error.

Context

Found while probing custom-provider connections end to end against the dev stack (2026-07-07). Surfaced by the new connect-model drawer in #5096. Related: this is one of five connection gaps found in the same investigation — see also the Pi-side, Claude-side, and resolution-ranking issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrontendbugSomething isn't workingdev experienceImprovement of the experience using the software. For instance better error messaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions