Skip to content

Restore insertion text after suggestion Undo - #1687

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-37144903078
Oct 3, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-37144903078

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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.

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.
@leaf-agent
leaf-agent merged commit 28c0f22 into main Oct 3, 2026
3 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-37144903078 branch October 3, 2026 22:31
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant