feat: add command to export and share chat logs (RES-537)#91
Open
madeleinesong wants to merge 6 commits intomainfrom
Open
feat: add command to export and share chat logs (RES-537)#91madeleinesong wants to merge 6 commits intomainfrom
madeleinesong wants to merge 6 commits intomainfrom
Conversation
Implement gpd.core.chat_export with functions to list available observability sessions and export chat logs to Markdown or JSON format. Features include sensitive data sanitization (API keys, home paths), configurable session/trace filtering, and sharing-friendly metadata. Closes RES-537
Define the /gpd:export-chat command as a markdown spec with support for Markdown and JSON output formats, session filtering, and trace inclusion. RES-537
Add 'gpd export-chat sessions' to list available sessions and 'gpd export-chat run' to export chat logs with format, session, trace, and sanitization options. RES-537
Cover session listing, Markdown/JSON export, sensitive data sanitization, trace filtering, error handling, and output path configuration. RES-537
Bump help.md command count from 61 to 62, add export-chat to the workflow-exempt command set, and update repo graph contract counts. RES-537
Update the public README and both help prompt surfaces (command + workflow) to include the new /gpd:export-chat command. RES-537
94e06d6 to
76fe781
Compare
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
gpd.core.chat_exportmodule with functions to list sessions and export chat logs to Markdown or JSON/gpd:export-chatcommand spec and wiregpd export-chat sessions+gpd export-chat runCLI subcommandsDetails
The export collects events from two sources:
GPD/observability/sessions/*.jsonl) -- session lifecycle, workflow eventsGPD/traces/*.jsonl) -- file reads/writes, checkpoints, assertionsOutput formats:
CLI usage:
Test plan
🤖 Generated with Claude Code