Skip to content

feat: Intelligent-UI, interactive responses and versioned artifacts - #1156

Open
hsuanguo wants to merge 5 commits into
agegr:mainfrom
hsuanguo:feat/Intelligent-UI
Open

hsuanguo wants to merge 5 commits into
agegr:mainfrom
hsuanguo:feat/Intelligent-UI

Conversation

@hsuanguo

@hsuanguo hsuanguo commented Oct 9, 2026 •

Copy link
Copy Markdown

Summary

Add interactive, versioned answers directly to Pi Web conversations using an explicit pi-html Markdown fence.

Similar to https://openai.com/index/gpt-6-for-everyone/

image image

Features

  • Render completed assistant HTML/CSS/JavaScript answers as sandboxed interactive previews. Streaming output starts collapsed; ordinary HTML examples and user/tool content remain inert.
  • Provide source switching, expansion, restart, copy, and standalone HTML download. Inline previews follow the chat column width and their natural content height.
  • Show bounded, copyable runtime and promise error details with source-relative locations.
  • Group optional stable artifact IDs into automatically numbered versions on the current conversation branch. Earlier occurrences stay collapsed, and older source is loaded on demand.
  • Preserve history across reloads and include compacted or paged-out messages through a read-only branch index.
  • Guide generation through Pi Web's built-in prompt without requiring a skill or changing global Pi configuration or extension APIs.
  • Add English, Simplified Chinese, and Traditional Chinese UI strings and development notes.

Behavior Notes

Switching versions initializes the selected source and resets live inputs. Preview state is not persisted or migrated between versions. Downloaded HTML is the original standalone source; Pi Web's sandbox applies only to its embedded preview.

@hsuanguo hsuanguo changed the title Intelligent-UI: interactive answers and versioned artifacts Intelligent-UI: interactive responses and versioned artifacts Oct 9, 2026
@hsuanguo hsuanguo changed the title Intelligent-UI: interactive responses and versioned artifacts feat: Intelligent-UI - interactive responses and versioned artifacts Oct 9, 2026
@hsuanguo hsuanguo changed the title feat: Intelligent-UI - interactive responses and versioned artifacts feat: Intelligent-UI, interactive responses and versioned artifacts Oct 9, 2026

This branch has not been deployed

No deployments
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