From 400f62bbee3dc50276fb6e20c7ed59e755ddd7a8 Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Fri, 12 Dec 2025 18:38:58 -0500 Subject: [PATCH] Simplify session navigation to use repo-based routing only --- frontend/src/App.tsx | 2 +- frontend/src/hooks/useOpenCode.ts | 1 + frontend/src/pages/SessionDetail.tsx | 11 +---------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e1224832..f6a3d13a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -27,7 +27,7 @@ function AppContent() { } /> } /> } /> - } /> + { - // Navigate to the correct repo session URL pattern - const currentPath = window.location.pathname - const repoMatch = currentPath.match(/\/repos\/(\d+)\/sessions\//) - if (repoMatch) { - const repoId = repoMatch[1] - navigate(`/repos/${repoId}/sessions/${sessionID}`) - } else { - // Fallback for direct session access - navigate(`/session/${sessionID}`) - } + navigate(`/repos/${repoId}/sessions/${sessionID}`) setSessionsDialogOpen(false) }} />