All docs

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

CapabilityNote
Reading-mode switchThis machine localStorage; after enter, hide sidebar/composer and similar; bubbles become continuous prose
Dark/lightFollows the UI theme: light black-on-white, dark white-on-black
ToolbarHidden by default; open from left/right edge handles; includes exit, type size, export; Esc / tap the handle again to collapse
PageTap left/right half, wheel, arrow keys / PageUp·PageDown paginate by screen (not continuous scroll)
Question navShown only when the toolbar is expanded
Export EPUBStandard EPUB3, one chapter per question
Export PDFNeeds 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.