Skip to content

feat(share): overhaul session page renderer with markdown and editorial layout#56

Merged
samzong merged 1 commit into
mainfrom
feat/share-session-html-renderer
Jun 24, 2026
Merged

feat(share): overhaul session page renderer with markdown and editorial layout#56
samzong merged 1 commit into
mainfrom
feat/share-session-html-renderer

Conversation

@samzong

@samzong samzong commented Jun 24, 2026

Copy link
Copy Markdown
Owner

What's changed?

  • Replace the hand-rolled markdown subset in shared session pages with pulldown-cmark (tables, task lists, strikethrough, GFM)
  • Refresh the share page layout with an editorial serif/sans design, tick-style question TOC, and footer branding
  • Improve tool/citation rendering with badges, chevrons, and safer link/HTML handling
  • Treat user tool-result messages as logs instead of new user turns
  • Deduplicate assistant replies when a cited follow-up repeats the same core text
  • Add Cache-Control: no-store for shared session assets

Why

  • Shared session pages need faithful markdown rendering and a more readable long-form layout for live share links
  • Prior renderer missed common agent reply formatting and mishandled tool-result user messages as separate questions

Verification

  • cargo test share:: — 24 passed

Considered and deferred

  • src/share.rs:443 [BOT-TASTE]: Share pages load Newsreader/JetBrains Mono from Google Fonts CDN for the editorial layout; CSS already lists system/CJK fallbacks.

…al layout

Replace the hand-rolled markdown subset with pulldown-cmark, refresh the
shared session page styling, and improve tool/citation rendering for live
share pages.

## Considered and deferred

- src/share.rs:443 [BOT-TASTE]: Share pages load Newsreader/JetBrains Mono from Google Fonts CDN for the editorial layout; CSS already lists system/CJK fallbacks.

Signed-off-by: samzong <samzong.lu@gmail.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9bb995fc5e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/share.rs
@samzong samzong merged commit 99cba2c into main Jun 24, 2026
1 check passed
@samzong samzong deleted the feat/share-session-html-renderer branch July 1, 2026 13:56
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.

1 participant