litellm/ui/litellm-dashboard/src/contexts
Yuneng Jiang 2b9b681e12
fix(ui/chat): resolve chat routes at render time so navigation works under server_root_path
CHAT_ROUTES was built once at module load via migratedHref, capturing an
empty server root path before the UI-config bootstrap sets it. Under
SERVER_ROOT_PATH every chat route came out unprefixed, so router.push
hard-navigated to a 404; during a send that page unload also aborted the
streaming request, so the first message of a new conversation never
rendered and only a second send appeared to work. Compute the routes at
render time via getChatRoutes(), update the send URL with a shallow
history.pushState instead of a router navigation, and source the active
conversation id from the hook's local state so it propagates without a
router round-trip
2026-07-15 13:48:27 -07:00
..
AntdGlobalProvider.tsx feat(ui): shadcn migration foundation: Tailwind v4, shadcn init, antd cascade fix (#31995) 2026-07-02 19:02:27 -07:00
AuthContext.tsx refactor(ui): extract auth state into AuthContext (#28910) 2026-05-26 17:53:03 -07:00
ChatShellContext.tsx fix(ui/chat): resolve chat routes at render time so navigation works under server_root_path 2026-07-15 13:48:27 -07:00
PluginModeContext.test.tsx feat: litellm plugin architecture v2 (#30688) 2026-06-20 20:37:22 -07:00
PluginModeContext.tsx feat: litellm plugin architecture v2 (#30688) 2026-06-20 20:37:22 -07:00
ReactQueryProvider.tsx refactor: extract ReactQueryProvider into dedicated context file 2026-02-28 17:47:47 -08:00
ThemeContext.tsx style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -07:00