feat: add conversation export functionality with API and UI integration#70
Merged
Conversation
Closed
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add conversation JSON export and consolidate sharing/export actions into a unified “Share & Export” flow.
This change adds an authenticated full-conversation JSON export API, including conversation metadata, messages, runs, token/billing snapshots, attachments snapshots, visible process traces, and default visible message branch IDs. The frontend adds JSON download support and moves scattered share/export actions into a shared “Share & Export” menu across chat header, conversation title menu, sidebar conversation menus, and recent conversation rows.
Change type
Affected areas
Verification
cd backend && go test ./internal/application/conversation ./internal/transport/http/conversation ./internal/infra/persistence/postgres/conversationcd backend && make swaggercd backend && go test ./...cd frontend && pnpm lintcd frontend && pnpm buildgit diff --checkScreenshots, API examples, or logs
New API:
Response includes:
{ "version": 1, "exportScope": "full", "exportedAt": "...", "conversation": {}, "messages": [], "runs": [], "totalMessages": 0, "totalRuns": 0, "defaultMessagePublicIDs": [], "compatibility": { "format": "deeix.conversation.export", "notes": "Full backup export. Import compatibility is not guaranteed." } }Configuration, migration, and compatibility notes
No configuration or database migration is required.
API change: adds a new authenticated export endpoint. Existing conversation, sharing, message listing, and send-message APIs remain unchanged.
Swagger was regenerated to include the new export response schema.
Documentation
Security and privacy
Checklist
.pycfiles,.envfiles, and local storage data are not committed.