Files
simbarag/raggr-frontend
ryan 8fd6fa9ece Add TTFT watchdog to detect and surface LLM stalls
When llama-server is queue-backed it accepts the connection but never
produces tokens; after ~60s Caddy drops the connection and the frontend
clears loading state with no response and no error shown to the user.

Backend: replace the async-for event loop with an explicit __anext__()
iterator wrapped in asyncio.wait_for(). A 30s timeout (TTFT_TIMEOUT_SECONDS)
applies only in the window between on_chat_model_start and the first content
token — tool calls are excluded. On timeout, emits a stalled error event and
logs it rather than waiting for the proxy to kill the connection.

Frontend: separates stall errors from generic errors; shows a "Simba didn't
respond in time. Retry" pill that re-sends the original query.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-12 16:10:44 -04:00
..
2026-01-31 17:13:27 -05:00
2026-01-31 17:13:27 -05:00
2026-01-31 17:13:27 -05:00
2026-01-31 17:13:27 -05:00
2026-01-31 17:13:27 -05:00
2026-01-31 17:13:27 -05:00
2026-01-31 17:13:27 -05:00
2026-01-31 17:13:27 -05:00
2026-01-31 17:13:27 -05:00

Rsbuild project

Setup

Install the dependencies:

pnpm install

Get started

Start the dev server, and the app will be available at http://localhost:3000.

pnpm dev

Build the app for production:

pnpm build

Preview the production build locally:

pnpm preview

Learn more

To learn more about Rsbuild, check out the following resources: