fix(ui): preserve user ordered-list markers (closes #5013)

This commit is contained in:
Armin Ronacher
2026-05-27 01:02:04 +02:00
parent 59ec8003db
commit 2531fc130d
6 changed files with 59 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
### Fixed
- Fixed user message transcript rendering to preserve user-authored ordered-list markers ([#5013](https://github.com/earendil-works/pi/issues/5013)).
- Fixed self-update commands to bypass npm, pnpm, and Bun minimum release age gates for explicit `pi update` runs ([#4929](https://github.com/earendil-works/pi/issues/4929)).
- Fixed context token estimates to count user image attachments consistently with tool result images ([#4983](https://github.com/earendil-works/pi/issues/4983)).
- Fixed `RpcClient` to reject pending requests and consume stdin pipe errors when the child process exits unexpectedly ([#4764](https://github.com/earendil-works/pi/issues/4764)).

View File

@@ -15,9 +15,16 @@ export class UserMessageComponent extends Container {
super();
this.contentBox = new Box(1, 1, (content: string) => theme.bg("userMessageBg", content));
this.contentBox.addChild(
new Markdown(text, 0, 0, markdownTheme, {
color: (content: string) => theme.fg("userMessageText", content),
}),
new Markdown(
text,
0,
0,
markdownTheme,
{
color: (content: string) => theme.fg("userMessageText", content),
},
{ preserveOrderedListMarkers: true },
),
);
this.addChild(this.contentBox);
}