Skip to content

Show an unplaced margin row again, and list the seat tests' marker arrival as a known shift - #1495

Merged
max-sixty merged 1 commit into
mainfrom
agent-ac559427b1778ee2b
Oct 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
agent-ac559427b1778ee2b

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

#1493 hid a margin row until the layout placed it, so an arriving marker's move into the rail would not read as a layout shift on Linux. The nightly run on its branch then failed two feature-gallery tests that main's run before it passed:

  • test_render_margin.py::test_the_feature_gallery_keeps_its_real_actions_reachable[700]: the margin's Undo for bg-insert stayed "not visible" for 30s.
  • test_render_navigation.py::test_the_feature_gallery_keeps_a_choice_when_its_proposal_is_undone.

On Linux's headless shell an unplaced row stands at the window's origin, visible and pressable, and some rows stay there, so hiding unplaced rows hid them. The margin projection also parks a row before placing it on purpose, so its controls are in the tab order from their first render.

This removes the theme.css rule. The marker that an agent's new thread or reopening brings into the two seat tests of test_render_read_state.py is listed in tests/known_shifts.py as the defect it is, matched to lf-margin- nodes only, so any other shift in those tests still fails them.

Follow-up: place a margin row in the frame it is inserted. Today registerMarginRow schedules the layout pass for the next frame (margin-layout.js), so a row the projection inserts paints unplaced first; placing it in the same frame removes the known-shift entry and the stranded rows at the origin.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

…rival as a known shift

#1493 hid a margin row until the layout placed it, to stop an arriving marker's move
into the rail reading as a layout shift on Linux. The nightly run on its branch then
failed two feature-gallery tests that main's run before it passed: an Undo row the
margin had not placed stayed hidden (test_the_feature_gallery_keeps_its_real_actions_reachable[700]),
and test_the_feature_gallery_keeps_a_choice_when_its_proposal_is_undone. On Linux's
headless shell an unplaced row stands at the window's origin, visible and pressable,
and some rows stay there. The margin projection also parks a row before placing it on
purpose, so its controls are in the tab order from their first render.

The rule goes. The marker an agent's new thread or reopening brings into the two seat
tests is listed in known_shifts.py as the defect it is: a row inserted unplaced and
placed a frame later.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 0f765e3 into main Oct 1, 2026
7 of 8 checks passed
@max-sixty
max-sixty deleted the agent-ac559427b1778ee2b branch October 1, 2026 06:14
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.

2 participants