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

fix: prevent typewriter for answers we already saw #211

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

jhchabran
Copy link
Contributor

@jhchabran jhchabran commented Mar 4, 2024

It you CodyToggle three times (on, off and on again), prompts sent by the user are not rendered as typewrited, but the answers from Cody will be, making the UI very annoying to deal with.

This is a crude fix I did in between things during my evening, should be an okay bandage until we see if there's a better place to do this.

Basically, if a message has been rendered, it assumes it's been completed. So first time will have the effect, but not afterward.

Before:

CleanShot.2024-03-04.at.12.09.41.mp4

After:

It's instant for old interactions, as expected. Typewriter effect is still there for new answers.

It you CodyToggle three times (on, off and on again), prompts sent by the
user are not rendered as typewrited, but the answers from Cody will be,
making the UI very annoying to deal with.

This is a crude fix I did in between things during my evening, should be
an okay bandage until we see if there's a better place to do this.

Basically, if a messeag has been rendered, it assumes it's been completed.
@tjdevries tjdevries merged commit 6f9afd3 into master Mar 7, 2024
12 checks passed
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.

2 participants