Skip to content

Commit 5e54a32

Browse files
aksOpsclaude
andcommitted
fix(ui): make Feed tab clickable — add /feed route + tabFromPath branch
Commit 1e92e7d ("move Pane to first tab") flipped the URL default from feed → pane but missed two follow-ups: 1. App.tsx has explicit routes for every tab except `/s/:name/feed`. When the user clicked Feed, navigate("/s/<name>/feed") matched the catch-all `<Navigate to="/" replace />` and yanked them back to the dashboard — the visible symptom was "Feed tab unclickable". 2. tabFromPath had no `endsWith("/feed")` branch (it relied on the implicit default that used to be feed). Even if the route had existed, the tab indicator would have stayed on Pane. Add the route and the branch. No other changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a01f234 commit 5e54a32

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ui/src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { AuthGate } from "@/routes/AuthGate";
2626
const router = createBrowserRouter([
2727
{ path: "/", element: <Dashboard /> },
2828
{ path: "/s/:name", element: <Dashboard /> },
29+
{ path: "/s/:name/feed", element: <Dashboard /> },
2930
{ path: "/s/:name/checkpoints", element: <Dashboard /> },
3031
{ path: "/s/:name/pane", element: <Dashboard /> },
3132
{ path: "/s/:name/subagents", element: <Dashboard /> },

ui/src/routes/SessionDetail.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type TabKey =
4141
| "meta";
4242

4343
function tabFromPath(pathname: string): TabKey {
44+
if (pathname.endsWith("/feed")) return "feed";
4445
if (pathname.endsWith("/checkpoints")) return "checkpoints";
4546
if (pathname.endsWith("/pane")) return "pane";
4647
if (pathname.endsWith("/subagents")) return "subagents";

0 commit comments

Comments
 (0)