feat: Improve HTML export with markdown rendering and theme support

- Render markdown server-side using marked (tables, headings, code blocks, etc.)
- Honor user's chosen theme (light/dark) with appropriate color defaults
- Add image rendering for user messages
- Style code blocks with TUI-like ```language markers
This commit is contained in:
scutifer 2025-12-24 13:06:46 +05:30 committed by Mario Zechner
parent e904b11e7b
commit 531bb91337
4 changed files with 489 additions and 88 deletions

View file

@ -1483,7 +1483,8 @@ export class AgentSession {
* @returns Path to exported file
*/
exportToHtml(outputPath?: string): string {
return exportSessionToHtml(this.sessionManager, this.state, outputPath);
const themeName = this.settingsManager.getTheme();
return exportSessionToHtml(this.sessionManager, this.state, { outputPath, themeName });
}
// =========================================================================