Title: Text input clears when switching between models
Description
When using the Bedrock Mac client, I've noticed that any text I've typed into the input box gets cleared if I switch to another model and then switch back.
Steps to reproduce:
Type some text into the input box
Switch to another model
Switch back to the original model
Expected: The text I typed originally should still be in the input box
Actual: The input box is cleared and I've lost the text
This makes it inconvenient if I want to try out a different model but then go back to continue my previous thought/input. The text getting cleared out forces me to retype things.
Proposed Fix
I think the input text state should be preserved when switching between models. Rather than clearing everything out, it would be better if the text was remembered so users don't lose their input.
Some ways this could be implemented:
Store the input text in a variable that persists even when the model is changed, hence keeping the state between different models
Preserve the input only for a given model, hence when changing between models the text changes and matched the one that was kept for that one
Have a confirmation popup when changing models that asks if the user wants to clear the input
Let me know if any other details would be helpful! Losing input text is disruptive to my workflow so I'd appreciate if this could be improved. Will try to contribute as well if timing works.
Here is a draft GitHub issue text:
Title: Text input clears when switching between models
Description
When using the Bedrock Mac client, I've noticed that any text I've typed into the input box gets cleared if I switch to another model and then switch back.
Steps to reproduce:
Expected: The text I typed originally should still be in the input box Actual: The input box is cleared and I've lost the text
This makes it inconvenient if I want to try out a different model but then go back to continue my previous thought/input. The text getting cleared out forces me to retype things.
Proposed Fix
I think the input text state should be preserved when switching between models. Rather than clearing everything out, it would be better if the text was remembered so users don't lose their input.
Some ways this could be implemented:
Let me know if any other details would be helpful! Losing input text is disruptive to my workflow so I'd appreciate if this could be improved. Will try to contribute as well if timing works.