posit-dev / py-shiny

Shiny for Python
https://shiny.posit.co/py/
MIT License
1.32k stars 81 forks source link

feat(chat): Use `wrap: pre` so that "text" messages appear as-written #1778

Closed gadenbuie closed 3 days ago

gadenbuie commented 5 days ago

When [content_type="text"] we should echo the message exactly as it was written.

cpsievert commented 5 days ago

I'd be curious to see how you're using content_type="text" since we don't really expose this at the moment, but seems OK to me.

gadenbuie commented 5 days ago

I'd be curious to see how you're using content_type="text" since we don't really expose this at the moment, but seems OK to me.

Manually, but in line with #1780 I think it should be possible to pick this content type. If you did, though, it'd currently not be what you expect.

gadenbuie commented 3 days ago

Failures are transient in airmass example and un-related, merging.