Skip to content

ui: shared-backend busy indicator - #6

Open
hanxiao wants to merge 1 commit into
mainfrom
feat/shared-backend-busy-banner
Open

ui: shared-backend busy indicator#6
hanxiao wants to merge 1 commit into
mainfrom
feat/shared-backend-busy-banner

Conversation

@hanxiao

@hanxiao hanxiao commented Jun 20, 2026

Copy link
Copy Markdown
Owner

What

Show a live banner when the shared L4 llama.cpp backend has other slots busy, so a queued or slowed run is expected behavior rather than a bug.

How

  • Poll the shared backend /slots endpoint via https://hanxiao.io/llama-api/slots (CORS-open proxy) every 4s.
  • Read per-slot is_processing; show N/3 slots busy. Hidden when idle; red queued state when all slots in use.
  • Pure frontend, zero backend changes.

The shared backend is one llama.cpp server (--parallel 3) serving dataroom / KG / searchbox / llamaui. See github.com/hanxiao/shared-llm-backend.

Poll the shared llama.cpp /slots endpoint (via hanxiao.io/llama-api/slots, CORS-open)
every 4s and show a style-matched banner under the masthead when other slots are
busy, so a queued or slowed run on the shared L4 backend is expected behavior.
Hidden when idle; red 'queued' state when all slots are in use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant