feat: add /export slash command for session Markdown - #45
Conversation
Render the current session to clean Markdown with collapsed tool output, fenced diffs, and a cost footer. Default path is ./klaatai-session-<id>.md; /share remains as an alias.
|
cc: @aakashrajput |
|
🤖 KlaatAI Review Bot (powered by Klaatu, advisory only — a maintainer makes the real call) Issue match Test coverage Correctness concerns Verdict This is an automated review to help triage faster, not a gate. Nothing here blocks merging. |
Export tool/diff bodies with a fence longer than any backtick run inside the content so nested code blocks cannot break the markdown.
|
Addressed the review-bot note in a follow-up commit:
|
|
🤖 KlaatAI Review Bot (powered by Klaatu, advisory only — a maintainer makes the real call) Issue match Test coverage Correctness concerns Verdict This is an automated review to help triage faster, not a gate. Nothing here blocks merging. |
Summary
/export [path]to render the current session to clean Markdown (closes Add /export — render session to Markdown #32).<details>summaries; edit diffs become fenceddiffblocks; cost/request footer included../klaatai-session-<id>.md./shareis kept as an alias.src/screens/export-session.tswith unit tests.Test plan
bun run typecheckbun test(186 pass on this branch)bun run bench:selfcheckbun run build/export, open the written.mdand confirm tool/diff formatting