From 42149c4759fb82b077f89518cfd12493b787ecea Mon Sep 17 00:00:00 2001 From: OpenCode Assistant Date: Mon, 8 Dec 2025 13:52:40 +0000 Subject: [PATCH] Fix mobile input UI issues - Fix down arrow disappearing at bottom and model visibility - Only hide secondary buttons on mobile during active streaming, not when scroll button shows - Fix stop button to only show during actual session processing (busy/retry states) - Integrate session status with streaming state for better stop button control --- frontend/src/components/message/PromptInput.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/message/PromptInput.tsx b/frontend/src/components/message/PromptInput.tsx index 5c25c3df..cd14cdb6 100644 --- a/frontend/src/components/message/PromptInput.tsx +++ b/frontend/src/components/message/PromptInput.tsx @@ -8,6 +8,7 @@ import { useModelSelection } from '@/hooks/useModelSelection' import { useUserBash } from '@/stores/userBashStore' import { useMobile } from '@/hooks/useMobile' +import { useSessionStatusForSession } from '@/stores/sessionStatusStore' import { ChevronDown } from 'lucide-react' import { CommandSuggestions } from '@/components/command/CommandSuggestions' @@ -451,7 +452,9 @@ export function PromptInput({ const { model: selectedModel, modelString } = useModelSelection(opcodeUrl, directory) const currentModel = modelString || '' const isMobile = useMobile() - const hideSecondaryButtons = isMobile && (hasActiveStream || showScrollButton) + const sessionStatus = useSessionStatusForSession(sessionID) + const showStopButton = hasActiveStream && (sessionStatus.type === 'busy' || sessionStatus.type === 'retry') + const hideSecondaryButtons = isMobile && hasActiveStream useEffect(() => { const loadModelName = async () => { @@ -566,7 +569,7 @@ export function PromptInput({ )} - {hasActiveStream && ( +{showStopButton && (