You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: copying part of an ordered list changes its numbers #36914
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Open a conversation containing an ordered list followed by a paragraph, for example 1. Install, 2. Configure, 3. Deploy, then Then report back.
Select from the beginning of Configure through the end of the following paragraph.
Copy with the keyboard shortcut and paste into the composer or a Markdown editor.
This happens with both assistant replies and expanded user messages. A list starting at 10 reproduces the same problem when selecting from item 11.
Expected behavior
The copied list preserves the visible numbers: 2. Configure and 3. Deploy (or 11 and 12 for the offset list).
Actual behavior
The pasted selection starts at the original list's start: 1. Configure and 2. Deploy (or 10 and 11). Both plain text and rich HTML carry the wrong numbers. Copying the whole list works.
Impact
Minor bug or occasional failure
Version or commit
Reproduced on main at 2bee33e. Independently confirmed earlier on baf2558.
Environment
Linux, Chromium web client, free Replay provider. The Electron desktop web wrapper shares this serializer; native desktop clipboard behavior and React Native mobile copy were not tested.
Logs or stack traces
The selected fragment keeps the original ordered list's start but loses the preceding list items. Copying the tail of 1/2/3 produces 1/2 instead of 2/3. A browser regression and paired real-app keyboard copy/paste scenario reproduce this deterministically.
Workaround
Copy the whole list, then remove unwanted items after pasting.
Activity