ai: dont keep text when command fails

This commit is contained in:
end-4
2025-05-10 11:49:09 +02:00
parent aae8429629
commit 3876b07bc3
2 changed files with 6 additions and 6 deletions
@@ -447,8 +447,8 @@ int main(int argc, char* argv[]) {
event.accepted = true
} else { // Accept text
const inputText = messageInputField.text
root.handleInput(inputText)
messageInputField.clear()
root.handleInput(inputText)
event.accepted = true
}
}