Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable model selector after 1st chat message is sent #3354

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

sqs
Copy link
Member

@sqs sqs commented Mar 8, 2024

In #3341 the behavior changed so that the welcome message goes away when you chat. (Which I love!) But there's a minor bug in that the model selector remains enabled after the 1st message is sent now (because the existing logic assumed that the welcome message was always the 1st message and so checked for >1 messages to disable the model selector).

Also adds an e2e test for the model selector.

Test plan

e2e test covers the following test plan: Open new chat. Ensure model selector is enabled. Send a message. Ensure the model selector becomes immediately disabled.

In #3341 the behavior changed so that the welcome message goes away when you chat. (Which I love!) But there's a minor bug in that the model selector remains enabled after the 1st message is sent now (because the existing logic assumed that the welcome message was always the 1st message and so checked for `>1` messages to disable the model selector).
@sqs sqs requested review from abeatrix and a team March 8, 2024 08:38
Copy link
Contributor

@umpox umpox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the test!

Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this and for adding the e2e test ❤️

@sqs sqs merged commit 607b787 into main Mar 8, 2024
15 of 16 checks passed
@sqs sqs deleted the sqs/disable-model-selector-1stmsg branch March 8, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants