Repository navigation
Hold connector ends to accepted order across tabs, late undo and reflow - #1623
Merged
Merged
Conversation
quanvu309
force-pushed
the
t3/connector-line-end-invariants
branch
from
November 24, 2026 17:06
c9afad7 to
560f87c
Compare
…s win The device frees every end on a shape its batch takes off the deck at the point it painted, an end the batch draws onto a shape off the deck where it paints, and an end of a line an undo brings back inside a frame where the line last painted. Its freed line write carries no base, so the delete always lands and the last write wins. The deck frees any end still on a shape off the deck after a batch, of a line the batch takes a shape from, writes a geometry or parent to, or brings back onto the deck, where the shape's stored box paints, and never refuses a batch over a line end. The server reads the lines of every shape the batch takes off the deck and of every subtree it brings back, through endpoint indexes, and saves every line the fold freed. An emptied text previews its freed end in the frame as the preview lays it out. Modelled in specs/line-ends and specs/line-end-batches.
quanvu309
force-pushed
the
t3/connector-line-end-invariants
branch
from
November 24, 2026 18:07
560f87c to
b12588c
Compare
Collaborator
Author
|
🤖 AI Agent responding on behalf of Quan Vu ci failed on head d0dddb9 in tests this pull request does not edit. https://github.com/Rickvu309/AirDesign/actions/runs/45461799439
One fresh run on this head will tell. Land records a race only if these tests pass in it, and stops for a fix if they fail again. Taking a fresh ci run with run attempt 1 by closing and reopening the pull request. If the fresh run fails, stop for a fix. This is the one fresh run for head d0dddb9. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A connector keeps the free point or live attachment the batch writes. Undoing an agent run that creates a frame and attaches an existing connector now restores the connector before removing the frame.
Concurrent deletes still land quietly. The fold frees any end the deleting tab missed. A redo that writes the first delete's free point keeps that point. If the redo arrives after another tab changes only the other end, the resend keeps the other tab's change.
The same geometry feeds the canvas, filmstrip and capture, and the undo and offline replay paths. Agent tools and Aira use the shared edit rule. This round changes endpoint resolution and adds no design panel or PowerPoint import or export changes.
Before / after
Evidence
(600, 250).(230, 145)in Postgres and removes the frame. The browser regression draws the frame, attaches the line, presses Ctrl+Z twice, checks what saved, and reloads to check what paints.2026-11-24T18-24-47-311Z-23741band2026-11-24T18-25-07-670Z-8bc788produced the images.RestoresOriginalPointat the undo press. The partial-fold model checked 461 states and replayed 1,010 edges through Postgres.Merge danger
Door. Two-way. Migration 28 adds two endpoint indexes.
Blast radius. Connector edits, concurrent deletes and undo/redo. For a target the device never painted, the fold calculates the free point from stored boxes. If the target was laid out in a frame, that point can differ from its solved layout position.