Notes editor: undo after a slash-menu heading resurrects the query block #1621

Open
opened 2026-10-12 16:11:03 +00:00 by kayg · 1 comment
Owner

Severity: BROKEN.

Found by the Notes block editor hunt (owner focus, 2026-10-12). Repro scripts are on dev (6fefd4a62) in apps/web/e2e/break-editor/. Run from apps/web after bun run build: node e2e/break-editor/<script>. Exit 1 = reproduced, 0 = fixed. Server used: prebuilt rev 8e8409629 (same as production). The scripts leave calternal-server-release processes behind; kill them after each run.

Symptom

Type "/heading" slowly (350 ms between characters), pick Heading from the slash menu, then press Ctrl+Z three times. The third undo brings back the "/heading" paragraph that the slash command removed. Redo then duplicates it into the .md file.

Script: 12-undo-resurrects-or-duplicates-block.mjs, 3/3.

Done when

Undo after a slash command goes back to the state before the command in one step (the typed query text included, no extra block); redo restores the heading once. Script 12 exits 0.

**Severity: BROKEN.** Found by the Notes block editor hunt (owner focus, 2026-10-12). Repro scripts are on `dev` (6fefd4a62) in `apps/web/e2e/break-editor/`. Run from `apps/web` after `bun run build`: `node e2e/break-editor/<script>`. Exit 1 = reproduced, 0 = fixed. Server used: prebuilt rev 8e8409629 (same as production). The scripts leave `calternal-server-release` processes behind; kill them after each run. ## Symptom Type "/heading" slowly (350 ms between characters), pick Heading from the slash menu, then press Ctrl+Z three times. The third undo brings back the "/heading" paragraph that the slash command removed. Redo then duplicates it into the .md file. Script: `12-undo-resurrects-or-duplicates-block.mjs`, 3/3. ## Done when Undo after a slash command goes back to the state before the command in one step (the typed query text included, no extra block); redo restores the heading once. Script 12 exits 0.
Author
Owner

Triage (web agent, server rev 8e8409629): the editor's undo stack is correct (2 items; the second undo removes the "/heading" paragraph). About 1 s later a remote update from the server puts "/heading" back: the same delete revert as #1616. Re-test script 12 against c94c92221 (the #1616 fix) before doing more.

Triage (web agent, server rev 8e8409629): the editor's undo stack is correct (2 items; the second undo removes the "/heading" paragraph). About 1 s later a remote update from the server puts "/heading" back: the same delete revert as #1616. Re-test script 12 against c94c92221 (the #1616 fix) before doing more.
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal-v0#1621
No description provided.