Skip to content

NewCodeSession fetches provider info without error boundary #166

Description

@noahoy

NewCodeSession fetches provider info without error boundary

Severity: Low
File: frontend/src/pages/Code/NewCodeSession.tsx:30

The component fetches provider information on mount to display the active LLM. If the request fails, it sets settingsLlmLabel to null, but doesn't display an error message or retry option. Users don't know why the provider info is missing.

try {
  const r = await fetch(`${API_BASE}/api/v1/providers`)
  if (!r.ok || cancelled) return
  const data = await r.json()
  // ...
} catch {
  if (!cancelled) setSettingsLlmLabel(null)
}

Why it matters

When the providers API is down or returns an error, users see a blank provider field with no indication of the problem. They may proceed to create a session without knowing which provider will be used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions