From 97db77997fd6369031d2f1cf750051999fb0b5b5 Mon Sep 17 00:00:00 2001 From: Evan Senter Date: Fri, 18 Apr 2025 18:14:45 +0100 Subject: Including a test harness for it, and making sure the cursor is always at the end. --- packages/cli/src/ui/components/InputPrompt.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/cli/src/ui/components/InputPrompt.tsx') diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index f79aeaa3..1119926f 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -8,12 +8,14 @@ interface InputPromptProps { setQuery: (value: string) => void; onSubmit: (value: string) => void; isActive: boolean; + forceKey: number; } const InputPrompt: React.FC = ({ query, setQuery, onSubmit, + forceKey, }) => { const model = getModel(); @@ -22,6 +24,7 @@ const InputPrompt: React.FC = ({ >