Skip to content

[Feat] Add session preview rendering#53

Merged
samzong merged 1 commit into
mainfrom
feat/session-share-preview
Jun 13, 2026
Merged

[Feat] Add session preview rendering#53
samzong merged 1 commit into
mainfrom
feat/session-share-preview

Conversation

@samzong

@samzong samzong commented Jun 13, 2026

Copy link
Copy Markdown
Owner

What's changed?

  • Added richer shared session HTML rendering with a reading layout, user navigation, grouped tool logs, markdown/code handling, and model/thinking metadata.
  • Added local TUI session preview via v and passes usage metadata through CLI/TUI sharing paths.
  • Kept Cloudflare Pages share previews on the configured project domain while validating generated asset size before deploy.

Why

  • Make shared session pages easier to read and let users preview the rendered HTML before publishing.

Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong samzong merged commit 7b3dbc9 into main Jun 13, 2026
1 check passed

@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: 9ff8177afe

ℹ️ 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
Comment on lines +409 to +410
Role::Assistant if is_tool_message(&message.content) => {
pending_tools.push(message.content.clone());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve assistant text after leading tool logs

When an assistant message starts with a tool-looking line but also includes normal answer text later in the same message, this branch moves the entire message into pending_tools, so the answer is rendered only inside a collapsed log instead of as visible assistant prose. This regresses the previous line-by-line rendering for mixed messages such as [tool:read]\nHere is the result...; only the tool lines should be grouped, while subsequent prose should remain visible.

Useful? React with 👍 / 👎.

@samzong samzong deleted the feat/session-share-preview branch June 16, 2026 15:51
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