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

Add Chat Sharing Dialog & BugFix Empty History #125

Merged
merged 4 commits into from
Dec 29, 2024
Merged

Conversation

JoshuaC215
Copy link
Owner

@JoshuaC215 JoshuaC215 commented Dec 29, 2024

[Originally #124 - thank you @fedebotu for this great contribution!!]

This PR adds the following improvements:

1. Add Chat Sharing Dialog

Previously, a user had to manually copy the thread_id to the service URL and set it as a query parameter. Now, a new dialog appears that allows users to conveniently copy the full link for sharing/resuming chats:

share-resume-chat

2. BugFix Empty History

If the user tried for any reason to open a new chat with a thread_id with no messages yet, the below error appeared:

server-error-no-history

This PR fixes this issue by simply checking whether there is any history. If there is not, a simple error popup appears, avoiding the crash:

history-fix

Copy link

codecov bot commented Dec 29, 2024

Codecov Report

Attention: Patch coverage is 35.29412% with 11 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/streamlit_app.py 35.29% 11 Missing ⚠️
Files with missing lines Coverage Δ
src/streamlit_app.py 67.17% <35.29%> (-3.49%) ⬇️

@JoshuaC215 JoshuaC215 merged commit ab6ee76 into main Dec 29, 2024
5 of 6 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