diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-05 12:09:13 -0400 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-05 12:09:13 -0400 |
commit | 9613750fd1ff48343e8d80ce5154733a4dbc55d7 (patch) | |
tree | 3bf81bdabf4a5232d99266a1e1a06ffbfc60a4d6 /extension/react-app/src/tabs/gui.tsx | |
parent | 99d0cf12dcd1481e719e78483fc7df080dc95954 (diff) | |
download | sncontinue-9613750fd1ff48343e8d80ce5154733a4dbc55d7.tar.gz sncontinue-9613750fd1ff48343e8d80ce5154733a4dbc55d7.tar.bz2 sncontinue-9613750fd1ff48343e8d80ce5154733a4dbc55d7.zip |
Enter button on user input
Diffstat (limited to 'extension/react-app/src/tabs/gui.tsx')
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index a08698a4..7dd30acb 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -38,11 +38,11 @@ function GUI(props: GUIProps) { const [waitingForSteps, setWaitingForSteps] = useState(false); const [userInputQueue, setUserInputQueue] = useState<string[]>([]); const [history, setHistory] = useState<History | undefined>(); - // { + // { // timeline: [ // { // step: { - // name: "RunCodeStep", + // name: "Waiting for user input", // cmd: "python3 /Users/natesesti/Desktop/continue/extension/examples/python/main.py", // description: // "Run `python3 /Users/natesesti/Desktop/continue/extension/examples/python/main.py`", @@ -189,6 +189,8 @@ function GUI(props: GUIProps) { if (mainTextInputRef.current) { if (!client) return; let input = mainTextInputRef.current.value; + if (input.trim() === "") return; + setWaitingForSteps(true); client.sendMainInput(input); setUserInputQueue((queue) => { |