Skip to content

fix: preserve checkpoint geometry and eager App notifications - #100

Open
sofianbll wants to merge 3 commits into
excalidraw:mainfrom
sofianbll:codex/fix-checkpoint-text-restore
Open

sofianbll wants to merge 3 commits into
excalidraw:mainfrom
sofianbll:codex/fix-checkpoint-text-restore

Conversation

@sofianbll

@sofianbll sofianbll commented Oct 13, 2026 •

Copy link
Copy Markdown

Summary

Restoring complete saved text through the skeleton constructor subtracts alignment offsets again and remeasures dimensions. Bound labels shift even when checkpoint data is unchanged. Eager host notifications can also arrive before the connected React core installs its handlers, leaving a fresh restore view blank.

convertRawElements
  complete checkpoint → retain measured geometry, fonts and metadata
  shorthand → existing conversion and reciprocal bindings
App initialization
  onAppCreated → retain latest input and result before connect
  connected core → install normal handlers, replay retained notifications

The bootstrap buffer holds only the latest partial/final input and result. The direct dev-core caller remains compatible. No checkpoint schema, server persistence, dependency or deployment change is introduced.

Evidence

  • Before: official base 157aa23 passes 2/7 normalizer unit checks; the incomplete geometry fix loses reciprocal shorthand-arrow bindings.
    After: the reviewed normalizer passes the seven geometry/binding checks and 10 actual Excalidraw 0.18.0 browser checks. The intentional +24/−20 label displacement remains rejected at the same camera.
  • Before: byte-verified pristine 61bb966 fails the bootstrap regression because no pre-connect handler is installed. Replaying the actual built App/SDK with eager notifications produces no SVG and no read_checkpoint; delaying the same notifications by 100 ms renders the scene.
    After: 4c3700f passes 8/8 standalone tests, typechecking, the full build, and both eager/delayed built-App browser replays. The full browser regression is integrated into the separate Bifrost qualification harness.

Geometry round-trip reports and sanitized captures.

Native Codex initial rendering, a real editor change and checkpoint save/read have been observed on an isolated local instance. Native restoration exposed the blank-view defect. The final native Codex gate passes on the corrected artifact: loaded module digest matches, the user edit is preserved, and native restored/direct-control captures have identical visible pixels at 100% zoom. The direct same-scene control was captured after restoration and is distinguished from the older pre-edit capture. Native proof. These are separately recorded from the automated browser replays. Bifrost fork PR #15 is ready for review with final-head CI passed. No production service, merge, release or public App deployment was performed.

The upstream Vercel check reports “Authorization required to deploy.” No preview authorization or deployment was performed here; the built App was qualified in isolated Bifrost CI and native Codex.

Merge Danger

Door: two-way — source revert; checkpoint schema and stored elements are unchanged.

Blast Radius: rendering — complete and mixed checkpoint elements, and startup notification delivery. Geometry, fonts, drawing order, reciprocal bindings and eager/normal initialization are covered. Native confirmation of the final build passed; production deployment is outside this work.

Complete checkpoint text already stores top-left coordinates and measured dimensions. Reprocessing it as an Excalidraw skeleton subtracts text alignment offsets again. Retain complete elements while continuing to convert new shorthand.
@vercel

vercel Bot commented Oct 13, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Excalidraw Team on Vercel.

A member of the Team first needs to authorize it.

@sofianbll sofianbll changed the title fix: preserve checkpoint text geometry and new arrow bindings Oct 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant