Skip to content

Export saved dialogue as Markdown - #96

Merged
he-yufeng merged 1 commit into
mainfrom
feat/export-saved-dialogue
Nov 28, 2026
Merged

he-yufeng merged 1 commit into
mainfrom
feat/export-saved-dialogue

Conversation

@he-yufeng

Copy link
Copy Markdown
Owner

Closes #95

corecoder --export-session ID > dialogue.md writes the saved user and assistant text in order as UTF-8 Markdown. The command exits before loading model configuration, reuses the existing session reader, and never writes to the archive. Internal summaries, tool records and reasoning fields are left out. Text already removed by compaction cannot be recovered, and the visible dialogue is not redacted.

The source tests check both compaction prefixes, legacy archives, messages with tool calls, repeated exports and the existing CLI error codes. The installed wheel check also exports a Chinese transcript with PYTHONIOENCODING=ascii and compares the raw output and the unchanged archive. Both READMEs describe the command. No dependency or saved-session format change is needed.

Local validation: 197 tests passed across the core, session, context, REPL, slash command and checkpoint suites; Ruff and git diff --check passed. Package build and installed CLI validation run in CI.

@he-yufeng
he-yufeng merged commit 8844c68 into main Nov 28, 2026
14 checks passed
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.

Export saved dialogue as Markdown

1 participant