Skip to content

feat(ai): add rich chat previews and interactive questions - #3269

Merged
abose merged 3 commits into
mainfrom
ai
Oct 9, 2026
Merged

abose merged 3 commits into
mainfrom
ai

Conversation

@abose

@abose abose commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

The AI panel can now show interactive examples directly in a conversation, and connected CLIs can ask visual questions inside their own session pane. This provides a way to explore cards, carousels and other standalone designs without opening or changing the user's Live Preview page.

What kind of change does this PR introduce?

Feature, bugfix and build-related changes:

  • Add askRichQuestion to the shared panel/CLI tool catalog, with inline HTML or reusable HTML/CSS/JS files, parameters, choices and acknowledgment flows. End pending rich questions when the owning CLI call ends.
  • Guide standalone visual examples into phoenix_interactive_preview_html chat fences. Actual-page interactions continue to use askInLivePreview.
  • Supply localized labels and styles for streaming previews, the source viewer, and full-height CLI questions with a title, Close, reply composer and primary OK.
  • Route links across Shadow DOM boundaries and handle middle-click through Phoenix's existing URL opener.
  • Pin Pro to d3d4f7a1cf4de810959503ee37a99fd3962b779f for the renderer, runtime, history, question and focus implementation.

Screenshots or Gifs of the change

The inline examples, CLI question layout and source viewer were reviewed in the connected apps. Screenshots are not attached to this PR. Detailed visual and interaction observations are recorded in the rich-UI findings.

Does this PR introduce a breaking change?

No. Existing CLI sessions must restart to load the new MCP tool catalog.

Tests done

  • Registered CLI Connector suite: 57/57 on Linux and macOS, including the expanded tool catalog and question timeout contract.
  • Paired Pro native coverage: Rich Content 40, Rich Questions 12, Question Composer 21, Composer Focus 23 and History 97 passing cases on Linux, macOS and Windows. The final source-viewer action regression also passes 1/1 on each platform.
  • Real Haiku examples, answers and history restoration; native CLI reply/Close behavior; a trusted Windows hyperlink click reaching the Phoenix opener without navigating the question frame.
  • Full repository lint, changed-file lint, LESS compilation, release Terser 3.17 parsing, whitespace checks and Pro pin consistency passed.
  • These are recorded local results. CI for this PR remains to be evaluated.

Checklist

  • User-visible problem and reason for the feature described above.
  • Proposed changelog: Preview interactive designs in AI chat, answer rich visual questions from chat or CLI sessions, and inspect their source code.
  • No issue is claimed as resolved by this PR.

Other information

Companion implementation: phoenix-pro#284. Review and merge the pair together; this PR pins the Pro commit containing the implementation and verification records.

abose added 3 commits October 10, 2026 01:08
Add askRichQuestion to the shared panel and CLI tool catalog, with reusable
HTML/CSS/JS files, answer handling and cancellation when its call ends.
Guide standalone visual examples into interactive chat fences while
keeping actual-page interactions in Live Preview.

Add localized rich-UI labels and shared composer, question and source-view
styles. Route Shadow DOM and middle-click links through Phoenix's existing
URL opener. Extend the registered CLI tool contract checks.

Validation: CLI Connector passes 57/57 on Linux and macOS. Paired Pro
renderer, question, history and composer checks pass on Linux, macOS and
Windows, including the final source-viewer regression on each platform.
Changed-file ESLint, release Terser 3.17 parsing, LESS compilation and
whitespace checks pass. Push and CI remain pending; the Pro pin is unchanged.
Pin Phoenix Pro to d3d4f7a, including rich chat previews, inline and CLI
questions, source viewing, restored state and the matching task handoff.

Validation: tracking JSON parses and the pin matches Pro HEAD. The paired
implementation has recorded native checks on Linux, macOS and Windows.
Pin Phoenix Pro to eef0cf4 so new messages resume bottom following after
reading earlier replies, while manual scrolling during a response still
pauses it. Include the registered scroll regression tests and findings.

Validation: tracking JSON parses and the pin matches Pro HEAD. Chat Scroll
5/5 and Question Composer 21/21 pass on Linux, macOS and Windows, with a
successful live pelican postcard replay. CI remains pending after push.
@sonarqubecloud

sonarqubecloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

@abose
abose merged commit 68be9c2 into main Oct 9, 2026
19 of 21 checks passed
@abose
abose deleted the ai branch October 9, 2026 21:07
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