Repository navigation
Restore insertion text after suggestion Undo - #1687
Merged
Merged
Conversation
Keep a retired suggestion wrapper in the layout tree while its slot is hidden. This avoids a failed return from display:none for insertion-only suggestions and preserves the position to which Undo restores the words. The margin browser case now checks both the retired slot and the visible suggestion after Undo; its original journey failed under load and passes with the CSS change.
max-sixty
added a commit
that referenced
this pull request
Oct 4, 2026
Adds a "Layout stability" theme under Next in `TODO.md`, so a later session can pick up the remaining work on boxes that move without input. Each item says what is wrong, where it lives, the proposed approach, and what to check first. The items: the feature gallery's Undo xfail (which #1687 may have half-fixed), the playground, activity feed, text document, contents map, gallery margin entry and targeting widgets that `tests/known_widget_findings.py` lists as changing size after first paint, Command Hub's outcome tiles at 320px (unrendered, so marked Unconfirmed), and whether margin markers paint in place in their first frame. Each claim was checked against current `main`. Two survey items are left out: news growing a short open panel card is already the existing "Find a better shape for news in a short Threads list" item, and `test_a_decision_undone_leaves_every_suggestion_pin_where_it_stood`'s TypeError was the hidden-suggestion defect #1687 fixed. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 4, 2026
Both quarantines from `notes/margin-stuck-style.md` now pass under load, so they assert again. The gallery actions journey (`test_the_feature_gallery_keeps_its_real_actions_reachable`) loses its non-strict xfail, and the pin round trip (`test_a_decision_undone_leaves_every_suggestion_pin_where_it_stood`) loses its conditional xfail, so a rejected insertion that stays painted fails the test outright. Measured on 379cfea with load averages between 16 and 48 on 18 cores: - The actions journey passed 3 of 3 plain runs at every width with `--runxfail`, and 18 of 18 `leaf-dev flake` copies at both 1440 and 1200px. The note recorded 3-6 of 18 failing at 1440px. - The pin round trip passed 3 of 3 plain runs with `--runxfail`, and 18 of 18 flake copies, none of them reaching the retirement xfail. The note recorded 15 of 18 reaching it at 0859381. The actions xfail was last verified failing at ef89dfd, which predates #1687. That change stopped hiding an emptied suggestion with `display: none`, which matches the 0x0 suggestion after Undo, so #1687 is the likely fix; this is inferred, not bisected. Which later commit cleared the stale style on the rejected insertion was not bisected either, and the note's stuck-style probe harness was not rerun. The note is deleted with its TODO bullet, since nothing it describes still reproduces. `--nightly-changed-since`, which both landing gates use to add the nightly tests a change edits, read a pure deletion as only the line before the gap. Deleting a test's decorators therefore selected nothing, and the first CI run of this PR left the gallery actions journey out. A deletion now counts the lines on both sides of it, so removing a test's decorators or its last lines both select the test. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
A rejected insertion sometimes stayed invisible after Undo in the full main run. The decision hid the suggestion's entire wrapper with
display: none; after Undo removed the decision marks, the wrapper and its text sometimes still had no layout rectangle. The retired slot already hides the rejected words, so this change keeps the empty wrapper in the layout tree for Undo to fill again.The existing margin journey now checks that rejection hides the inserted words and Undo restores every suggestion before comparing pin positions. On the original CSS, 14 of 18 loaded copies failed; with this change, 18 of 18 passed. Six focused suggestion, Undo, and gallery rest checks also passed.
Refs #1592. The separate sample-view HTTP 400 failures in that main run are covered by #1686.