diff --git a/frontend/src/components/session/SessionList.tsx b/frontend/src/components/session/SessionList.tsx index a19fb262..5e9831d1 100644 --- a/frontend/src/components/session/SessionList.tsx +++ b/frontend/src/components/session/SessionList.tsx @@ -137,7 +137,7 @@ export const SessionList = ({ return (
-
+
-
+
{filteredSessions.length === 0 ? (
diff --git a/frontend/src/components/ui/header.tsx b/frontend/src/components/ui/header.tsx index 2fdba6ba..386d797e 100644 --- a/frontend/src/components/ui/header.tsx +++ b/frontend/src/components/ui/header.tsx @@ -61,7 +61,7 @@ function HeaderTitle({ children, logo, className }: HeaderTitleProps) { interface HeaderEditableTitleProps { value: string; onChange: (value: string) => void; - subtitle?: string; + subtitle?: React.ReactNode; generating?: boolean; className?: string; } @@ -158,7 +158,7 @@ function HeaderEditableTitle({ value, onChange, subtitle, generating, className )} {subtitle && (

- {subtitle} + {typeof subtitle === 'string' ? subtitle : subtitle}

)}
diff --git a/frontend/src/index.css b/frontend/src/index.css index e32573f4..5b5e2e14 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -42,6 +42,7 @@ html { background-color: #0a0a0a; + min-height: calc(100% + env(safe-area-inset-top)); } :root:not(.dark) html { diff --git a/frontend/src/pages/SessionDetail.tsx b/frontend/src/pages/SessionDetail.tsx index 868126fe..0a64d3c5 100644 --- a/frontend/src/pages/SessionDetail.tsx +++ b/frontend/src/pages/SessionDetail.tsx @@ -4,7 +4,7 @@ import { useQuery } from "@tanstack/react-query"; import { getRepo } from "@/api/repos"; import { MessageThread } from "@/components/message/MessageThread"; import { PromptInput, type PromptInputHandle } from "@/components/message/PromptInput"; -import { X, VolumeX, FolderOpen, Plug, Settings, Upload, CornerUpLeft } from "lucide-react"; +import { X, VolumeX, FolderOpen, Plug, Settings, CornerUpLeft } from "lucide-react"; import { ModelSelectDialog } from "@/components/model/ModelSelectDialog"; import { Header } from "@/components/ui/header"; import { SessionList } from "@/components/session/SessionList"; @@ -283,9 +283,7 @@ export function SessionDetail() { promptInputRef.current?.clearPrompt() }, []); - const handleAttachFile = useCallback(() => { - promptInputRef.current?.triggerFileUpload() - }, []); + @@ -338,7 +336,7 @@ export function SessionDetail() { {repo.repoUrl?.split("/").pop()?.replace(".git", "") || repo.localPath || "Repository"}} generating={isTitleGenerating} />
@@ -362,63 +360,61 @@ export function SessionDetail() { className="hidden sm:flex max-w-[80px] sm:w-[140px] sm:max-w-[140px]" /> -
- -
-
- setFileBrowserOpen(true)}> - Files - - - Upload - + {!(repo.isWorktree) && (repo.currentBranch || repo.branch) && ( + <> +
+ +
+
+ + )} setMcpDialogOpen(true)}> MCP - - Settings + setFileBrowserOpen(true)}> + Files
-
+
{repoLoading || sessionLoading || messagesLoading ? ( ) : opcodeUrl && repoDirectory ? (