The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(routing): forward ?tab= query params through the /skills redirect\n\nReact Router's <Navigate to="/connections" replace /> with a static\nstring drops location.search entirely, so /skills?tab=composio landed\non /connections with no tab — making four back-compat deep-link aliases\nunreachable.\n\nAdd a ForwardSearch helper that reads useLocation().search and appends\nit to the destination, then use it for the /skills route. Defined\noutside AppRoutes to avoid a hooks-before-early-return violation caused\nby the iOS early-return guard. Also corrects a stale comment that\nfalsely claimed Navigate preserved query params.\n\nCloses #5903\n
shanu786d7ba7625e
diff --git a/app/src/AppRoutes.tsx b/app/src/AppRoutes.tsxindex efd0b0c091..28e74b6c88 100644--- a/app/src/AppRoutes.tsx+++ b/app/src/AppRoutes.tsx@@ -1,4 +1,4 @@-import { type Location, Navigate, Route, Routes } from 'react-router-dom';+import { type Location, Navigate, Route, Routes, useLocation } from 'react-router-dom';import AppRoutesIOS from './AppRoutesIOS';import DefaultRedirect from './components/DefaultRedirect';@@ -25,6 +25,11 @@ import WebCallbackPage from './pages/WebCallbackPage';import Welcome from './pages/Welcome';import WorkflowsRun from './pages/WorkflowsRun';+function ForwardSearch({ to }: { to: string }) {+ const { search } = useLocation();+ return <Navigate to={`${to}${search}`} replace />;+}+interface AppRoutesProps {/*** Optional location override. Nothing passes one today — the router uses the@@ -143,9 +148,9 @@ const AppRoutes = ({ location }: AppRoutesProps = {}) => {{/* Connections page lives at /connections (Phase 2 rename from /skills).The old /skills path is kept as a back-compat redirect so bookmarks- and deep links continue to work. `?tab=` query params are preserved- by Navigate (replace) so existing deep links still land on the right- sub-tab. */}+ and deep links continue to work. ForwardSearch copies the current+ ?tab= (and any other query params) to the destination so existing+ deep links still land on the right sub-tab. */}{/* `/workflows/run` is the single-purpose Skill runner page — the livedestination of the Run button in the Automations tab (WorkflowsTab). */}<Route@@ -167,7 +172,7 @@ const AppRoutes = ({ location }: AppRoutesProps = {}) => {/>{/* Back-compat: /skills → /connections (preserves ?tab= deep links). */}- <Route path="/skills" element={<Navigate to="/connections" replace />} />+ <Route path="/skills" element={<ForwardSearch to="/connections" />} />{/* Unified chat = agent + connected web apps. Replaces the old/conversations and /accounts routes. */}