Whole file

Textualize/rich

The author described this change as Fix raw markup printed on prompt errors sometimes. It counts as a record because the check below fails on the code as it stood at 4d6d631a3 and passes on 95fe8ff59, with nothing else changed between the two runs.

Fix saved2025-11-13
Sharing licenceMIT · LICENSE
Change size+1 1

What the code was meant to do, written into the code itself as a save note

Fix raw markup printed on prompt errors sometimes

The change

262262 value (str): String entered by user.
263263 error (InvalidResponse): Exception instance the initiated the error.
264264 """
265- self.console.print(error)
265+ self.console.print(error, markup=True)
266266
267267 def pre_prompt(self) -> None:
268268 """Hook to display something before the prompt."""

The check that tells the two apart

failpass·tests/test_prompt.py::test_prompt_confirm_markup

Check file tests/test_prompt.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it4d6d631a3d2deddf8405522d4b8c976a6d35726c
Broken version dated2025-10-09
Modulerich.prompt
Units changedPromptBase
Fingerprint8408c0c8c46c15cb
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in Textualize/rich