Skip to content

Fix assistant inline markup rendering#2667

Open
gentlemandev wants to merge 1 commit into
mainfrom
elie/inb-269-ai-chat-response-intermittently-renders-raw-xmlhtml-tags
Open

Fix assistant inline markup rendering#2667
gentlemandev wants to merge 1 commit into
mainfrom
elie/inb-269-ai-chat-response-intermittently-renders-raw-xmlhtml-tags

Conversation

@gentlemandev

Copy link
Copy Markdown
Collaborator

Normalize streamed assistant inline markup before rendering so structured email cards do not appear as raw tags in list responses. Also unwrap block-style assistant components from markdown paragraphs to avoid invalid nesting.

  • Normalizes assistant tag indentation, smart quotes, and line breaks before Streamdown parsing
  • Unwraps block assistant components and block code from generated paragraphs
  • Adds focused coverage for inline detail rendering inside numbered lists

Tests:

  • pnpm exec vitest run components/assistant-chat/assistant-inline-email-response.test.tsx (fails in this environment before assertions with React.act is not a function)
  • pnpm --filter inbox-zero-ai test -- --run components/assistant-chat/assistant-inline-email-response.test.tsx (mis-forwarded by package script and ran the broader suite; unrelated existing environment failures include React.act is not a function and missing @/utils/hash)

Performance impact: Adds small string normalization and child inspection only while rendering assistant responses. No new database or network calls; low hot-path risk because work is scoped to chat response rendering.

@vercel

vercel Bot commented May 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
inbox-zero Ignored Ignored May 14, 2026 6:31pm

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.

2 participants