From 44c42990cd2f9052e0fdeb6761d92122d7f9d6e1 Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Wed, 26 Nov 2025 23:59:43 -0500 Subject: [PATCH] redesign prompt input with unified layout and floating container --- .../src/components/message/PromptInput.tsx | 236 ++++++------------ frontend/src/pages/SessionDetail.tsx | 34 +-- 2 files changed, 94 insertions(+), 176 deletions(-) diff --git a/frontend/src/components/message/PromptInput.tsx b/frontend/src/components/message/PromptInput.tsx index 08e83a6e..1ec8a4ff 100644 --- a/frontend/src/components/message/PromptInput.tsx +++ b/frontend/src/components/message/PromptInput.tsx @@ -4,7 +4,7 @@ import { useSettings } from '@/hooks/useSettings' import { useCommands } from '@/hooks/useCommands' import { useCommandHandler } from '@/hooks/useCommandHandler' import { useFileSearch } from '@/hooks/useFileSearch' -import { useMobile } from '@/hooks/useMobile' + import { CommandSuggestions } from '@/components/command/CommandSuggestions' import { FileSuggestions } from './FileSuggestions' import { detectMentionTrigger, parsePromptToParts, getFilename } from '@/lib/promptParser' @@ -52,7 +52,7 @@ export function PromptInput({ const [mentionRange, setMentionRange] = useState<{ start: number, end: number } | null>(null) const [selectedFileIndex, setSelectedFileIndex] = useState(0) const [selectedCommandIndex, setSelectedCommandIndex] = useState(0) - const isMobile = useMobile() + const textareaRef = useRef(null) const sendPrompt = useSendPrompt(opcodeUrl, directory) const sendShell = useSendShell(opcodeUrl, directory) @@ -415,170 +415,88 @@ export function PromptInput({ return ( -
- {isMobile ? ( - <> -
-