Skip to content

[Bug]: copying part of an ordered list changes its numbers #36914

Closed

Description

@StiensWout

Before submitting

  • 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

  1. Open a conversation containing an ordered list followed by a paragraph, for example 1. Install, 2. Configure, 3. Deploy, then Then report back.
  2. Select from the beginning of Configure through the end of the following paragraph.
  3. 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

  1. added
    vouch:trusted
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions