feat(ui/agents): add /agents/[agent_id]/sessions/[session_id] route page

Three-pane session view. Resolves auth via useAuthorized and passes
the agent_id + session_id params to ThreePane.
This commit is contained in:
Ishaan Jaffer 2026-05-06 15:05:42 -07:00
parent f990d6a1b7
commit aae137ad00
No known key found for this signature in database

View file

@ -0,0 +1,23 @@
"use client";
/**
* /agents/{agent_id}/sessions/{session_id} — three-pane session view.
*
* Reflects the LIT-2881 layout:
* - left: SessionList scoped to the active Agent
* - middle: Conversation (snapshot + live SSE) + Composer
* - right: Git / Terminal tabs
*/
import { use } from "react";
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
import ThreePane from "@/app/(dashboard)/agents/components/three-pane";
interface PageProps {
params: Promise<{ agent_id: string; session_id: string }>;
}
export default function SessionThreePanePage({ params }: PageProps) {
const { agent_id, session_id } = use(params);
const { accessToken } = useAuthorized();
return <ThreePane agentId={agent_id} sessionId={session_id} accessToken={accessToken} />;
}