Skip to content

feat(ui): add Router Agent and cluster management - #5380

Open
m199369309 wants to merge 31 commits into
xorbitsai:mainfrom
m199369309:feat/router-agent-cluster-ui
Open

feat(ui): add Router Agent and cluster management#5380
m199369309 wants to merge 31 commits into
xorbitsai:mainfrom
m199369309:feat/router-agent-cluster-ui

Conversation

@m199369309

@m199369309 m199369309 commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add Token Router Agent/node management to the Web UI
  • show managed deployment replicas, assignments, desired/observed generations, runtime state, and node resources
  • add tokenizer asset inventory and asset-binding status views
  • integrate Router Agent/runtime information into the cluster information page
  • extend permissions, service types, navigation, and all supported locale resources

Dependency

Depends on #5378
Depends on #5379

This PR intentionally targets main; maintainers can merge it after the dependencies above are merged.

Validation

  • npm ci
  • npm run lint (passes with existing repository warnings only)
  • npm run build (passes; /token-router exported successfully)
  • focused pre-commit hooks for all changed frontend files

Please review now if convenient, but merge only after the dependency PRs have landed.

@XprobeBot XprobeBot added this to the v3.x milestone Aug 18, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the Token Router feature to Xinference, adding systemd services, frontend UI management pages, and backend SQLite-backed stores for router configurations, deployments, and node assignments. It also integrates token-aware routing into the chat completion API. The code review identified several critical issues: a race condition in the cluster info polling timer, a bug in the assignment store that silently overwrites metadata, an inefficient creation of httpx.AsyncClient on every request, and potential unhandled exceptions during process termination in the agent process manager.

Comment thread frontend/src/components/pages/cluster-information.tsx Outdated
Comment thread xinference/core/router_assignment_store.py
Comment thread xinference/api/restful_api.py
Comment thread xinference/router/agent/process_manager.py Outdated
@m199369309
m199369309 force-pushed the feat/router-agent-cluster-ui branch 3 times, most recently from 8531b5b to a1c46f2 Compare August 18, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants