Summary
Add an "Export transcript to Markdown" action to the right-click menu of a session row. Generates a clean Markdown file capturing the conversation prompts + responses.
Acceptance criteria
Files to touch
src/preload/index.ts (IPC contract)
src/main/index.ts or new src/main/services/exportSession.ts
- Provider-specific event parsers (already exist) for the prompts list
src/renderer/src/components/sessions/SessionItem.tsx (menu action)
Effort: 1-2 days.
Summary
Add an "Export transcript to Markdown" action to the right-click menu of a session row. Generates a clean Markdown file capturing the conversation prompts + responses.
Acceptance criteria
window.dplex.sessions.exportToMarkdown(providerId, sessionId): Promise<string>returning the rendered Markdown.getSessionPrompts/ parsed events).window.dplex.shell.showSaveDialogor equivalent).# <session title>heading,**You** ... **Copilot** ...sections per turn, code fences for tool calls / results.Files to touch
src/preload/index.ts(IPC contract)src/main/index.tsor newsrc/main/services/exportSession.tssrc/renderer/src/components/sessions/SessionItem.tsx(menu action)Effort: 1-2 days.