Problem/Motivation

If the "Clear form after search" option is selected, the entered question gets cleared immediately on submit.
For usability reasons, it would be better to change to current logic and keep the question visible until we get a response from the back-end.
Context: for end users it might seem like they did something wrong if they don't immediately see an answer pop up.

Proposed resolution

If the "Clear form after search" option is selected:
* When submitting the question form, the entered question itself stays visible during the "loading" animation.
* When the response (or first tokens) get streamed, the questions disappears, to make room for follow up questions.

If the "Clear form after search" option is NOT selected:
No changes needed.

Comments

jasdeba created an issue. See original summary.

wouters_f’s picture

Status: Active » Needs review

This bugged me too.
Check my fix in the dev branch

jasdeba’s picture

Status: Needs review » Fixed

Tested on version 1.0.0-rc21
This is working as intended now

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.