mirror of
https://github.com/openai/codex.git
synced 2026-11-28 07:32:19 +00:00
Add Markdown conversation export to the TUI (#37358)
## What changed - Add `/export` with clipboard and file destinations, including a default filename prompt and support for an explicit path argument. - Export the complete conversation history as structured Markdown, preserving user and assistant messages, plans, reasoning, activity, image labels, file changes, and MCP tool details while honoring reasoning visibility. - Fall back to legacy history loading when pagination is unavailable, and use the visible transcript for ephemeral sessions. - Resolve relative and home-relative paths without overwriting an existing file, and report export or copy results in the conversation. ## Testing - Cover Markdown rendering, hidden review prompts, activity details, complete paginated and legacy history loading, destination prompts, status messages, path resolution, and overwrite protection. GitOrigin-RevId: c2815fc2430d7a555da75d7038cc1ac08157b82e
This commit is contained in:
1 parent
4d7e3e90d9
commit
2801d12661
19 files changed
+795
-3
No files matched your search
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/slash_commands.rs
|
||||
expression: "cells.iter().map(|cell|\nlines_to_single_string(cell).trim().to_string()).collect::<Vec<_>>().join(\"\\n\")"
|
||||
---
|
||||
• Saved conversation to conversation.md
|
||||
• Copied conversation to clipboard
|
||||
■ Copy failed: clipboard unavailable
|
||||
■ Export failed: missing parent
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/slash_commands.rs
|
||||
expression: popup
|
||||
---
|
||||
Export conversation
|
||||
Save the complete conversation as Markdown
|
||||
|
||||
› 1. Copy to clipboard Copy the complete Markdown transcript
|
||||
2. Save to file Choose a Markdown filename
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/slash_commands.rs
|
||||
expression: popup
|
||||
---
|
||||
▌ Save conversation
|
||||
▌
|
||||
▌ codex-session-00000000-0000-0000-0000-000000000123.md
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
Reference in new issue
Block a user