gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbd4aa808bd4aa808Record VL24 deployment and live verificationmrebd4aa808/reports/F5-empty.md

3.3 KB

  1. # F5 — MdEditor draws an EMPTY comment after a push (hybriel#211)
  2. Branch f5-empty (components 134b4e3 on main 0dce289; tickets d74a548, notes c69ef9e, layouts 02aa74a: verbatim sync via tools/sync-components.sh). Not merged, pushed or deployed. Stopped early at the quota (81 %): fix complete, loops 14 new / 16 old runs instead of 16/16.
  3. ## Cause
  4. F3's value-following is not the culprit. A push changes the bound `value`; hl:web then builds the comment row's MdEditor ANEW (old node removed, new `md-editor` inserted: seen as `COMMENT-BUBBLE +MD-EDITOR -MD-EDITOR`). A new editor was drawn only by the 100 ms CSS animation (`animationiteration` -> mdMount), so every new row showed an EMPTY `article` for 100 ms or more (longer under load). The gate's wait (`article` matches /elsewhere/) is already satisfied by the OLD node's article (the data-value observer drew it ~30 ms after the click), so a check landing between the node swap and the mount read "" with the new data-value and the "Edited 3 times" title - exactly Arachne's log. Users see a flash of an empty comment (long on a slow device). Not a stale mdSeen or a load() clearing the wrong node; the old node's observer is harmless.
  5. ## Fix (md-editor.hl, pure Hybriel)
  6. - mountRoot(root): the one-time build, split out of mdMount; mdMount only calls it. The first mounted editor starts ONE page-wide MutationObserver (`watchPage`) which mounts every md-editor added later (`mountAll`) in the same microtask checkpoint, before the first frame (not after 100 ms).
  7. - `rebuilt(root)`: root.mdSurface remembers the article drawn into; if the framework puts a different article under a built root (child-list observer, followValue, mdMount) the field's value is drawn into it at once = the defensive redraw. F3's logic (mdSeen, own, followValue) unchanged.
  8. ## Proof
  9. - Deterministic gates (tests/browser.mjs, +2): "the push builds a new editor, and it is never empty in a frame" (page observer + requestAnimationFrame on every added readonly editor) and "a surface replaced under a built editor is drawn again from its value" (forced article swap). On OLD md-editor: both FAIL (499 passed, 2 failed). New: 501 passed, 0 failed.
  10. - Original gate (main's browser.mjs, 499 checks) full runs: OLD md-editor 16 runs: 14 x 499/0 and 2 runs crashed at the "Edit opens" step (`form.comment-edit input.value` null - a neighbouring race of the same kind: edit form's editor not there/mounted yet); NEW md-editor 14 runs: 14 x 499/0 (run 15 killed at the quota). The exact 1-in-3 failure of the push check did not show on this machine (old 0/16 there; a focused 60x loop of the push also 0/60), so the loop does not discriminate here; the deterministic gates above are the proof.
  11. - Deploy gates, new == main (app HEAD without the sync), 0 failed: tickets browser 389/0, events 52/0, theme 46 files 0 problems; layouts browser 311/0, theme 44; notes browser 69/0, theme 22. Components 501/0 (499 + 2).
  12. - F2 repro (notes copy): `{"field":"after","shown":"after"} OK`. Notes browser gate with HL_CPU_THROTTLE=6: 3 x 69/0.
  13. - Not done (quota): real-browser E2E on lisbeth (no UI change; the gate runs the headless real-click flow), the remaining loop runs.
  14. ## Left behind
  15. Nothing running; ports 8700-8729 free of mine; tabs closed; /tmp/hl-browser-tier-* of mine removed. Logs: atlas/F5/s/runs/. Worktrees atlas/F5/{wt,wt-old,base-*,tickets,notes,layouts}.

Branches

Latest commits

  • bd4aa808Record VL24 deployment and live verificationmre
  • e5b98ecfRun virtual-list gate before deploymentmre
  • 2e9b4a8evirtual-list: into main, with centerId and scrollTop/onScroll (jukebox#20)mre
  • 69954249Align all plugin sources with Hybriel day38bmre
  • f740f666Re-vendor components to Hybriel set day38bmre
  • 8176eb14Record CS23b deployment and live verificationmre
  • 84e3ddaaRemove blank line before pagination Style closing bracemre
  • a92298ddRecord exact CSS and same-date proof after specificity reviewmre
  • c71a0abePreserve consumer theme specificity with nested tag rulesmre
  • 64a2bc27Document CS23b style formatting proof and review statusmre
  • a72b57cficons: nest Style rules in the language's formmre
  • 927616e2pagination: nest Style rules in the language's formmre
  • aab8ad29code-editor: nest Style rules in the language's formmre
  • ba30727afile-upload: nest Style rules in the language's formmre
  • 42fefa4emodal: nest Style rules in the language's formmre
  • 6fd953e3range-picker: nest Style rules in the language's formmre
  • f661951ddate-picker: nest Style rules in the language's formmre
  • 363577e6media-player: nest Style rules in the language's formmre
  • 0b3fd8c9comments: nest Style rules in the language's formmre
  • 67e043c8plugins/web/README.md from hybriel cb9e480dmre