Render agent questions as markdown

A question's text, its description and its options' descriptions now
use the transcript's markdown renderer (bold, code, lists, links) in
the card's own text styles; tapping an option's formatted description
still selects it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 15:23:24 +00:00
parent 03688f0c1f
commit 509d4c624f
5 changed files with 93 additions and 6 deletions
+11 -2
View File
@@ -42,13 +42,22 @@ void chatQuestionStream(String sessionId, void Function(JsonMap frame) emit) {
'fields': [
{
'key': 'q0',
'title': 'Which database should the release use?',
'title': _mode == 'claude'
? 'Which **database** should the `release` use?\n\n'
'- Postgres keeps the current schema\n'
'- SQLite needs a migration'
: 'Which database should the release use?',
'type': 'string',
'required': true,
if (_mode == 'claude') 'custom': true,
'options': [
{'value': 'Postgres', 'label': 'Postgres'},
{'value': 'SQLite', 'label': 'SQLite'},
{
'value': 'SQLite',
'label': 'SQLite',
if (_mode == 'claude')
'description': 'Smaller, but **no** concurrent writers',
},
],
},
],