FAROS icon indicating copy to clipboard operation
FAROS copied to clipboard

NewCodeSession fetches provider info without error boundary

Open noahoy opened this issue 3 months ago • 0 comments

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.

noahoy avatar Aug 31 '26 00:08 noahoy