Skip to content

Code Editor Bug -- Unknown Cause ? schema parsing #158

@lattln

Description

@lattln

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? )

Image
2026-01-23.15-38-27.mp4

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions