gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaina06fc778Reset virtual-list window when the host changes resetKeyAtlasmain/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

  • a06fc778Reset virtual-list window when the host changes resetKeyAtlas
  • 3aab598cRe-vendor complete Hybriel day73 set for virtual-list resetAtlas
  • 337ca075MD1 gate check measures frames in the page, not milliseconds from outside, and takes the middle load (components#30)mre
  • f5f131c5Record AP29 autoplay comparisons and passing gatesmre
  • 51c38187Gate media autoplay on first load and after client mountmre
  • a3f2223dRecord successful B44 deployment and live proofmre
  • 06c1e021Record passing B44 browser rerunmre
  • c9861533Record B44 component proof and browser gate blockermre
  • 1b7413beIgnore detached media events and space demo option outputsmre
  • ca3b4959Re-vendor complete Hybriel plugins and runtime to day44mre
  • df9e7df9Last-item checks run in the browser gate (components#26 fixed on day41); media-player loop is a plain Booleanmre
  • 895a5afcRe-vendor complete Hybriel plugins and runtime to day41mre
  • 16006bb3Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 88397fc3Re-vendor complete Hybriel plugins and runtime to day39mre
  • 9b872cedRecord IC28 deployment and live icon verificationmre
  • 46fefaa7Count the icons entry in the offline home-page checkmre
  • c7e14cabRecord IC28 rerun and unchanged-main baseline comparisonmre
  • 5e090ffdRecord IC28 review evidence and gate resultsmre
  • adfe2c4dAdd shuffle, repeat and repeatOne shared iconsmre
  • c96709c8media-player: skip = false and repeat = 'one' options (jukebox#19)mre