Skip to content

Python: [Bug]: DevUI shows raw asterisks for bold or italic text that comes before a link or bold on the same line #10376

Open

Description

Observed Behavior

In the DevUI chat, bold or italic text is shown with its raw markers when another inline pattern follows it on the same line:

  • Read the **setup guide** before the [install page](https://example.com/install) renders the link, but "setup guide" is shown as **setup guide**.
  • Use *streaming* with **tools** enabled renders "tools" in bold, but "streaming" is shown as *streaming*.

Model replies often put a bold label in front of a link, or mix italic and bold in one sentence, so replies show stray asterisks.

before

Expected Behavior

Every inline pattern on the line is formatted: "setup guide" is bold and followed by the link, "streaming" is italic and "tools" is bold.

Steps to Reproduce

  1. Start DevUI with any agent (devui ./entities --no-auth --no-open) and open it in a browser.
  2. Send a message so that the reply contains Read the **setup guide** before the [install page](https://example.com/install). The user bubble uses the same renderer, so typing this text in the message box is enough.
  3. Observe the raw ** around "setup guide" in both bubbles.
  4. Repeat with Use *streaming* with **tools** enabled and observe the raw * around "streaming".

Minimal Reproduction

No model is needed. The renderer alone reproduces it, from python/packages/devui/frontend on main (92838b6):

// node --input-type=module, with the vite SSR loader the existing frontend tests use
renderToStaticMarkup(createElement(MarkdownRenderer, {
  content: "Read the **setup guide** before the [install page](https://example.com/install)",
}));
// actual:   Read the **setup guide** before the <a ...>install page</a>
// expected: Read the <strong>setup guide</strong> before the <a ...>install page</a>

Cause: parseBoldItalicLinks in frontend/src/components/ui/markdown-renderer.tsx tries its patterns in priority order (links, then bold, then italic) and takes the first pattern that matches anywhere in the remaining text. The text before that match is pushed as a plain string and never parsed, so a lower-priority pattern that sits earlier in the line is lost.

Error Messages and Stack Traces

None. The output is rendered, only wrongly.

Package Versions

agent-framework-core: 1.26.0, agent-framework-devui: 1.0.0b261112 (editable install from main at 92838b6)

Python Version

Python 3.12.13

Operating System

macOS

Regression

Unknown

Additional Context

The existing behavior for a single pattern per line, bold links, and inline code is fine. A small fix is to parse the text before the match with the same function instead of pushing it as a string. I have this change with a renderer test on a branch (https://github.com/burrows99/agent-framework/tree/fix/devui-markdown-inline-before-match) and can open a pull request if the direction is agreed.

AI tools (Claude Code) did most of the investigation and the fix; the behavior was reproduced in a running DevUI on main and the screenshot above is from that run.

Acknowledgements

  • I searched existing issues and did not find a duplicate.
  • I personally verified this behavior and the reproduction details are authentic. (Left unticked: it was reproduced with AI tools, see Additional Context.)
  • I will wait for explicit maintainer agreement before opening a pull request. (The fix is one statement and already exists on the branch above.)

Activity

  1. added
    python
    triage
    on Nov 15, 2026
  2. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

    Routed to the DevUI owner. The result is inconclusive, not a confirmed reproduction. Installing the frontend dependencies was blocked in this run's sandbox, so I could not run the renderer.

    Source review of parseBoldItalicLinks in python/packages/devui/frontend/src/components/ui/markdown-renderer.tsx at 92838b6 supports the report. Patterns are tried in priority order. The first pattern that matches anywhere in the remaining text wins. The text before that match is pushed as a plain string (parts.push(remaining.slice(0, match.index))) and is never parsed. A bold or italic span before a link, or an italic span before bold, would therefore keep its raw markers. This matches the analysis in the issue.

    Support boundary: unclear. I found no maintained spec or docs that define DevUI markdown rendering coverage, so a maintainer needs to decide the scope. Markdown formatting in chat output is an expected basic behavior, though.

    Run: https://github.com/microsoft/agent-framework/actions/runs/43718603441

    Generated by Issue Routing for #10376 · copilot · auto · ~21 AIC · ⌖ ~1 AIC · ⊞ 5.2K · ◷

  3. added
    needs-maintainer-triage
    devui
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

devuineeds-maintainer-triagepythontriage

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions