diff --git a/src/components/chat/userEnv.js b/src/components/chat/userEnv.js index a6606ca..a61a412 100644 --- a/src/components/chat/userEnv.js +++ b/src/components/chat/userEnv.js @@ -1,3 +1,5 @@ +import { router } from '../../appRouter'; + /** * Resolves the active frontend route (path + search query). * Falls back to window.location if router is not directly accessible. @@ -126,7 +128,6 @@ export async function navigateToClientRoute(route, toolCallId) { } try { - const { router } = await import('../../appRouter'); if (router?.navigate) { const current = router.state?.location ? `${router.state.location.pathname}${router.state.location.search || ''}`