Pedal-Intelligence / saypi-userscript

An independent voice interface for Inflection AI's conversational assistant, Pi
https://www.saypi.ai/
Other
15 stars 3 forks source link

Prompt textarea collapses with autosubmit off #82

Closed rosscado closed 1 month ago

rosscado commented 1 month ago

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 in converting. This would call the setDraftPrompt function repeatedly, instead of setFinalPrompt where the height gets reset. The setDraftPrompt 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 in setFinalPrompt.

rosscado commented 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.

rosscado commented 1 month ago

Coming in v1.5.15