mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
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:
parent
f990d6a1b7
commit
aae137ad00
1 changed files with 23 additions and 0 deletions
|
|
@ -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} />;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue