aws-samples / amazon-bedrock-client-for-mac

The Amazon Bedrock Client for Mac is a Bedrock macOS client built with SwiftUI.
MIT No Attribution
102 stars 16 forks source link

Text input clears when switching between models #2

Closed KoStard closed 4 months ago

KoStard commented 6 months ago

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:

  1. Type some text into the input box
  2. Switch to another model
  3. 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:

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.

didhd commented 4 months ago

Fixed in v1.1.0