Closed rosscado closed 1 month ago
When the user edits the prompt, that version should be considered final. That is, collapse and replace the stored transcriptions (SayPiContext.transcriptions
) with the user's edit.
Add a change listener to the prompt textarea for this purpose.
Coming in v1.5.15
The height of the textarea is being reset to its default/initial height (2rem) periodically while autosubmit is off.
I believe this could be addressed by having the SayPi machine not enter the
submitting
state while autosubmit is off, but instead remain inconverting
. This would call thesetDraftPrompt
function repeatedly, instead ofsetFinalPrompt
where the height gets reset. ThesetDraftPrompt
function would need to be amended to materialise the placeholder text as real text if autosubmit is off, since that function currently only gets done insetFinalPrompt
.