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(test): count ForwardSearch as a redirect in the route classifiers
M3gA-Mind38f25479097b
diff --git a/app/src/AppRoutes.guards.test.tsx b/app/src/AppRoutes.guards.test.tsxindex 92238ae4dc..4fa4245fa2 100644--- a/app/src/AppRoutes.guards.test.tsx+++ b/app/src/AppRoutes.guards.test.tsx@@ -220,7 +220,11 @@ describe('AppRoutes — the whole route table stays classified', () => {const to =index + 1 < starts.length ? (starts[index + 1].index ?? source.length) : source.length;const body = source.slice(from, to);- if (/<Navigate\b/.test(body)) out[match[1]] = 'redirect';+ // `ForwardSearch` (added by #5924) is a redirect too: it renders a+ // `<Navigate>` internally after copying the query string and hash, so the+ // route body never contains the literal `<Navigate`. Matching only that+ // classified `/skills` as 'none' and silently dropped it from this table.+ if (/<(?:Navigate|ForwardSearch)\b/.test(body)) out[match[1]] = 'redirect';else if (/<ProtectedRoute\b[^>]*requireAuth=\{false\}/.test(body))out[match[1]] = 'protected-but-open';else if (/<ProtectedRoute\b/.test(body)) out[match[1]] = 'protected';diff --git a/app/src/AppRoutes.redirects.test.tsx b/app/src/AppRoutes.redirects.test.tsxindex 4a80820e4f..22583aa305 100644--- a/app/src/AppRoutes.redirects.test.tsx+++ b/app/src/AppRoutes.redirects.test.tsx@@ -127,7 +127,10 @@ describe('AppRoutes back-compat redirects', () => {const from = match.index ?? 0;const to =index + 1 < starts.length ? (starts[index + 1].index ?? source.length) : source.length;- return /<Navigate\b/.test(source.slice(from, to));+ // `ForwardSearch` (#5924) renders `<Navigate>` internally after copying+ // the query string and hash, so the route body has no literal+ // `<Navigate`. Matching only that dropped `/skills` from this list.+ return /<(?:Navigate|ForwardSearch)\b/.test(source.slice(from, to));}).map(match => match[1]);