-
Notifications
You must be signed in to change notification settings - Fork 4
Labels
Description
Shorts : https://youtube.com/shorts/PIDNO-itoLE
The Monaco code editor auto-saves on every keystroke (shouldn't be) and immediately parses the YAML/JSON schema, even while the user is mid-edit and the schema is temporarily invalid. That parsed (partial/invalid) result is then normalized and written back into state, which replaces the editor’s content. This causes fields to be auto-deleted or duplicated, cursor jumps, React duplicate-key warnings, and loss of unfinished user input.
Root cause: editor text, schema parsing, and normalization are coupled in a keystroke-driven loop.
Expected behavior: allow invalid text while typing; only parse/normalize when the schema is valid or explicitly saved. (missed issue from an auto-save update? )