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 removal of pending messages on error #888

Merged
merged 4 commits into from
Jul 12, 2024

Conversation

krassowski
Copy link
Member

@krassowski krassowski commented Jul 10, 2024

Fixes #884

  • adds a test case (should fail in the first commit)
  • fixes the problematic behavior by restoring the context manager

@krassowski krassowski added the bug Something isn't working label Jul 10, 2024
@krassowski krassowski marked this pull request as ready for review July 10, 2024 19:26
@krassowski krassowski force-pushed the remove-pending-on-error branch 2 times, most recently from cc18864 to 5a3e951 Compare July 11, 2024 08:33
@krassowski krassowski mentioned this pull request Jul 11, 2024
@krassowski krassowski force-pushed the remove-pending-on-error branch from 5a3e951 to d99d52e Compare July 11, 2024 19:08
Copy link
Member

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

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

@krassowski Thank you for this bug fix! Really appreciate you going the extra mile here by adding unit tests too. Just one minor callout below. 👍

@krassowski krassowski force-pushed the remove-pending-on-error branch from d99d52e to 6b664c2 Compare July 12, 2024 16:46
@krassowski krassowski requested a review from dlqqq July 12, 2024 17:00
Copy link
Member

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

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

Great work, thank you!

@dlqqq dlqqq merged commit 8ca4854 into jupyterlab:main Jul 12, 2024
8 checks passed
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
* Add a test case for closing pending messages

* Remove pending message on error

* Add a test for not sending closing message twice

* Review: make `close_pending` idempotent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After an error the "Generating response..." placeholder stays stuck at the bottom of the chat
2 participants