From 1b1a8ab19ed53a5f55813e5c9f50ab397725f33c Mon Sep 17 00:00:00 2001 From: d-kimsuon Date: Wed, 3 Sep 2025 20:17:58 +0900 Subject: [PATCH] feat: display project info in session page --- .../components/SessionPageContent.tsx | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/app/projects/[projectId]/sessions/[sessionId]/components/SessionPageContent.tsx b/src/app/projects/[projectId]/sessions/[sessionId]/components/SessionPageContent.tsx index dae14d0..7f009f4 100644 --- a/src/app/projects/[projectId]/sessions/[sessionId]/components/SessionPageContent.tsx +++ b/src/app/projects/[projectId]/sessions/[sessionId]/components/SessionPageContent.tsx @@ -13,6 +13,7 @@ import type { FC } from "react"; import { useEffect, useRef, useState } from "react"; import { Button } from "@/components/ui/button"; import { honoClient } from "../../../../../../lib/api/client"; +import { useProject } from "../../../hooks/useProject"; import { firstCommandToTitle } from "../../../services/firstCommandToTitle"; import { useAliveTask } from "../hooks/useAliveTask"; import { useSession } from "../hooks/useSession"; @@ -28,6 +29,7 @@ export const SessionPageContent: FC<{ projectId, sessionId, ); + const { data: project } = useProject(projectId); const abortTask = useMutation({ mutationFn: async (sessionId: string) => { @@ -106,13 +108,26 @@ export const SessionPageContent: FC<{
-

+

{session.meta.firstCommand !== null ? firstCommandToTitle(session.meta.firstCommand) : sessionId}

+
+ {project?.project.claudeProjectPath && ( +

+ Project:{" "} + {project.project.meta.projectPath ?? + project.project.claudeProjectPath} +

+ )} +

+ Session ID: {sessionId} +

+
+ {isRunningTask && (
@@ -154,10 +169,6 @@ export const SessionPageContent: FC<{
)} - -

- Session ID: {sessionId} -