Skip to content

Bug: The editor crashes during reconciliation after Undo command #8563

@levensta

Description

@levensta

Lexical version: 0.44

Steps To Reproduce

  1. Paste specific content:

    hello world

    ```

    echo hello world

    ```

  2. Press enter on the last line ( with ```)

  3. Trigger Undo command

Link to code example: https://playground.lexical.dev/#doc=H4sIAAAAAAAAE9VUwWrDMAz9lfLOpqSjW1p_wM6DHMcgJtYag2sFRelWSv59ON3ostt6WXey9ITee5KNTyAflKVSpwR7gjBrPps2RC-UYJ9_JJ7UhQhbGLyy7J1O4Z49wSJlJMKg12PMAAyU3hUWLcXIizeW6DN47HJ5qhkcSPrACXY1vhj4INTolKchxotOZgvJUzprfnJ0TtxOXNfOiM66jxeHOa2-XI1mNtWfiF6_yrqub26F109DTcuLW34d__2ifi8z_QIzq6NBdL1W7kAedlWW2_L-7mGz2RalQc-DNLnvKbrjTnhI_ns3iuV6vSwwfgB-F9tGbgQAAA

The current behavior

Editor crushes, backticks transformation are not undone

Screen.Recording.2026-05-26.at.02.44.15.mov

The expected behavior

Editor does not crush, code block removes and return backticks

Impact of fix

It's hard to say what exactly is causing the editor to crash, as I discovered this bug when using content while researching other issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions