AskUserQuestion question body shows literal ** instead of parsing markdown

Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 0 comments · opened Jul 29, 2026

Environment

  • Claude Code 2.1.220, macOS, terminal UI

What happens

The question text in the AskUserQuestion dialog renders entirely bold, and any bold markers the model puts inside it show up as literal asterisks.

Steps:

  1. Have the model call AskUserQuestion with a question field like Ship **this** change?
  2. The dialog shows Ship **this** change? with the asterisks visible as text, and the whole line is already bold anyway.

Expected

Either parse markdown in the question field or strip the markers. Since the body already renders bold wholesale, bold markers can never do anything useful there, so the asterisks are pure noise. Models produce them constantly because the field looks like markdown everywhere else.

A smaller variant shows up in option previews: a bold span that does not parse as emphasis under CommonMark flanking rules, like **- item** wrapping a list marker, leaks its asterisks into the rendered preview. That one may be working as intended per the spec, but models trip on it a lot, so stripping unparsed markers there would help too.

Workaround

We run a PreToolUse hook on AskUserQuestion that blocks calls containing these patterns and tells the model to reword. It fires several times a day, which is how often models write markers the UI can't render.

View original on GitHub ↗