fix(coding-agent): preserve backslash escapes in user messages

closes #6105
This commit is contained in:
Armin Ronacher
2026-06-27 19:23:52 +02:00
parent 622eca7608
commit f2e9d75388
5 changed files with 32 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@
### Fixed
- Fixed `--session` and `SessionManager.open()` to reject non-empty invalid session files without overwriting them ([#6002](https://github.com/earendil-works/pi/issues/6002)).
- Fixed user-message transcript rendering to keep visible backslashes in Markdown escape sequences such as `\"` ([#6105](https://github.com/earendil-works/pi/issues/6105)).
- Fixed assistant messages stopped by output length to show a visible incomplete-response error ([#4290](https://github.com/earendil-works/pi/issues/4290)).
- Fixed `--no-session --session-id` so ephemeral CLI runs can use deterministic session IDs for provider cache affinity ([#6070](https://github.com/earendil-works/pi/issues/6070)).
- Fixed disk BMP image files to be detected, converted to PNG, and attached through `read` and CLI `@file` inputs ([#6047](https://github.com/earendil-works/pi/issues/6047)).
@@ -23,7 +23,7 @@ export class UserMessageComponent extends Container {
{
color: (content: string) => theme.fg("userMessageText", content),
},
{ preserveOrderedListMarkers: true },
{ preserveOrderedListMarkers: true, preserveBackslashEscapes: true },
),
);
this.addChild(this.contentBox);