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

Remove clear_message_ids from RootChatHandler #1042

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

michaelchia
Copy link
Collaborator

Description

Minor refactor to remove clear_message_ids property from RootChatHandler and instead rely on chat_history to determine if a human message was cleared.

This reverts a part of the refactor in #1038.

The purpose of this is to reduce the complexity of RootChatHandler by reducing the amount of state it is required to maintain. Thereby reducing the risk of some internal state inconsistency.

@dlqqq dlqqq added the enhancement New feature or request label Oct 21, 2024
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.

Thanks!

@dlqqq dlqqq merged commit 9630742 into jupyterlab:main Oct 21, 2024
10 of 11 checks passed
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants