Skip to content

[Bug]: An unindented line after an ordered list looks outside the list in the composer, but the sent message still renders it inside #38409

Closed

Description

@Gaotity

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 the composer in T3 Code desktop.
  2. Type this markdown, with no blank line and no indent before d:
1. a
2. b
3. c
d
  1. Look at the composer before sending.
  2. Send the message and look at the user bubble.

Expected behavior

The sent bubble matches the composer. In the composer, d is a normal line after the list: it sits at the left margin and is not indented with the list items. The sent message should show the same thing, a paragraph after the ordered list, not content of item 3.

This report is that case. A blank line between the list and the next paragraph does end the list, and the reporter already uses that. The bug is the line the composer already draws outside the list. In the same message, a later paragraph that follows a blank line renders outside the list. The line immediately after 3. c should follow the composer as well.

Actual behavior

The composer and the sent bubble disagree about that line.

  • Composer: 1. 2. 3. are indented as an ordered list. d is not. It looks like it has left the list. There is a visible gap between 3. c and d, and the caret sits on d at the left margin.
  • Sent bubble: d is indented under the list, aligned with the text of item 3. It still reads as part of the ordered list. The paragraph after the next blank line is not indented.

This matches CommonMark lazy continuation: a non-blank line immediately after a list item stays inside that item unless a blank line ends the list. The composer does not present that line as list content, so the two surfaces disagree.

The same class of mismatch was fixed for item numbers in #33820: the sent bubble should show the list as typed, so the bubble and the composer agree. This report is about whether the following line is inside the list, not about which numbers are shown. It is not a duplicate of #8394, #12516, #17124, #19050, or #33054.

Impact

Minor bug or occasional failure

Version or commit

T3 Code (Beta) 0.1.10 (t3 --version reports t3 v0.1.10)

Environment

macOS 27.2 (darwin 27.2.0), T3 Code (Beta) desktop 0.1.10. The desktop app renders the web composer and chat markdown.

Workaround

Known, and not a substitute for the fix. A blank line before the following paragraph makes the sent bubble match:

1. a
2. b
3. c

d

The case being reported is the source above, with no blank line, where the composer and the sent bubble disagree.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions