From a3237d7f7f4a07eaa2da853d195b42fc4b6b1ac6 Mon Sep 17 00:00:00 2001
From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
Date: Fri, 27 Feb 2026 17:35:01 -0500
Subject: [PATCH] Fix mobile input prompt command selection (#148)
* fix mobile selection in suggestion dropdowns
* handle mobile keyboard viewport
---
.../components/command/CommandSuggestions.tsx | 7 ++++-
.../components/message/FileSuggestions.tsx | 7 ++++-
.../components/message/MentionSuggestions.tsx | 7 ++++-
.../src/components/message/PromptInput.tsx | 4 +++
frontend/src/hooks/useVisualViewport.ts | 28 +++++++++++++++++++
frontend/src/pages/SessionDetail.tsx | 14 ++++++++--
6 files changed, 61 insertions(+), 6 deletions(-)
create mode 100644 frontend/src/hooks/useVisualViewport.ts
diff --git a/frontend/src/components/command/CommandSuggestions.tsx b/frontend/src/components/command/CommandSuggestions.tsx
index dbdbbff5..6a12579d 100644
--- a/frontend/src/components/command/CommandSuggestions.tsx
+++ b/frontend/src/components/command/CommandSuggestions.tsx
@@ -56,7 +56,7 @@ export function CommandSuggestions({
return (
{filteredCommands.map((command, index) => {
const isSelected = index === selectedIndex
@@ -65,6 +65,11 @@ export function CommandSuggestions({
return (