Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions ui/desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -958,28 +958,6 @@ export default function App() {
console.log(
'Ignoring recipe config changes to prevent navigation conflicts with new window creation'
);
} else {
// Only navigate to chat route if we're not already on a valid route
const currentHash = window.location.hash;
const validRoutes = [
'#/',
'#/pair',
'#/settings',
'#/sessions',
'#/schedules',
'#/recipes',
'#/permission',
'#/configure-providers',
'#/shared-session',
'#/recipe-editor',
'#/extensions',
];

if (!validRoutes.includes(currentHash)) {
console.log('No valid route detected, navigating to chat route (hub)');
window.location.hash = '#/';
window.history.replaceState({}, '', '#/');
}
}
} catch (error) {
console.error('Error in system initialization:', error);
Expand Down
Loading