fix(app): preserve selected list markers when copying (#3055)

Mouse drags start and end inside rendered list items, so the clipboard serializer dropped item semantics even when the visible marker was selected. Treat the marker as explicit selection intent while keeping text-only selections unmarked.
This commit is contained in:
Mohamed Boudra
2026-08-09 08:15:45 +08:00
committed by GitHub
parent 8ffe7c75d5
commit 3bca9b7a92
5 changed files with 194 additions and 5 deletions
+1 -1
View File
@@ -1806,7 +1806,7 @@ export const AssistantMessage = memo(function AssistantMessage({
return (
<View key={node.key} style={styles.list_item} dataSet={markdownCopyDataSet.li}>
<Text style={iconStyle} dataSet={markdownCopyDataSet.ignore}>
<Text style={iconStyle} dataSet={markdownCopyDataSet.listMarker}>
{marker}
</Text>
<MarkdownListItemContent contentStyle={contentStyle}>