Reading mode and export
Date: 2026-07-29
Source docs/en/site/mech-reading-mode.md
Voice: Users can turn a conversation with an agent into continuous prose that is comfortable for long reading, and export it as an ebook or PDF to open on e-ink devices and similar.
Truth: this page; UI entry: 界面与布局 C1-thread “Reading mode”.
Date: 2026-07-29 Status: Done (Web) Related code:
- Web:
client/web/src/readerModePref.ts,ReaderModeBar.tsx,style.css(data-reader-mode),WorkChatMessageThread.tsx,ChatTurnNav.tsx - Backend:
backend/internal/chatexport,handlers/chat_export.go(GET /api/v1/chat/sessions/{id}/export?format=epub|pdf)
Behavior summary
| Capability | Note |
|---|---|
| Reading-mode switch | This machine localStorage; after enter, hide sidebar/composer and similar; bubbles become continuous prose |
| Dark/light | Follows the UI theme: light black-on-white, dark white-on-black |
| Toolbar | Hidden by default; open from left/right edge handles; includes exit, type size, export; Esc / tap the handle again to collapse |
| Page | Tap left/right half, wheel, arrow keys / PageUp·PageDown paginate by screen (not continuous scroll) |
| Question nav | Shown only when the toolbar is expanded |
| Export EPUB | Standard EPUB3, one chapter per question |
| Export PDF | Needs an embeddable Chinese .ttf; environment MINDLINK_CHAT_EXPORT_FONT, or common system paths |
Export content is user and assistant bodies; no tool traces or ratings; attachments keep filename notes only.
To take a conversation to another agent on another server and keep talking, use a conversation pack (.cadau-chat.zip); see 对话包导入导出.md.