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

feat: add button to export chat history to JSON #829

Merged
merged 2 commits into from
Aug 25, 2023
Merged

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Aug 25, 2023

feat: add chat history export

  • Add exportHistory method to export chat history to a JSON file
  • Add UI button and logic to trigger history export
  • Update protocol to support new 'history' message for export and clear history action

This will make debugging easier, as it's been difficult to debug/compare context and chat issues as we have to go through each history item in UI manually.

Before:

image

After:

image

Test plan

try clicking on the Export button

export.chat.history.mp4

@abeatrix abeatrix requested a review from a team August 25, 2023 19:18
@abeatrix abeatrix merged commit 5d8aa33 into main Aug 25, 2023
8 checks passed
@abeatrix abeatrix deleted the bee/export-chat branch August 25, 2023 20:27
@abeatrix abeatrix mentioned this pull request Aug 25, 2023
abeatrix added a commit that referenced this pull request Aug 25, 2023
Follow up on #829

just realized it was exporting the current chat only instead of the
entire chat history 🥴

## Test plan

<!-- Required. See
https://docs.sourcegraph.com/dev/background-information/testing_principles.
-->

locally confirmed
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