You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci-fix: code copy control changes authored sibling structure #1545
The nightly job in run 36930156190 failed test_page_fixture_renders on five pages because the code-copy runtime inserts a generated <wa-copy-button> after an authored <pre>. The apparatusAmongAuthored check reports it as a child of authored <section> or <details> markup. That sibling changes what page selectors such as pre:last-child and pre + p match, the same structural problem #1389 deliberately removed from other runtime controls.
The copy control uses the <pre> as a CSS anchor and stays adjacent to it in Tab order. Moving it inside <pre> was locally tested: the render gate and print check passed, but the button overlapped source text. Putting it inside <code> also lost the control when syntax highlighting replaced the code contents. A safe fix needs the control outside authored structure while preserving its visual anchor, copy feedback, and a nearby keyboard route. #1541 changed copy-button geometry but retained the sibling insertion.
#1543 fixed the two stale clock tests, and #1546 fixed the print and focus-ring readings; both merged after green CI. The authored-structure failures remain reproducible on the merged main tree. Keep the checker strict until the runtime placement and keyboard route are repaired.
Confirmed on current main: uv run pytest 'tests/test_render_gate.py::test_page_fixture_renders[current-proposed-comparison]' -q -n0 fails because two generated <wa-copy-button> elements stand among authored section children. The existing corpus test already preserves this regression, so I did not open a duplicate reproduction PR. The placement originates at pre.after(copy) in watchCodeBlocks(); a fix needs to keep authored child and sibling selectors intact while retaining the copy control's visual position and keyboard access. #1541 is changing this same runtime path, so a separate placement patch now would overlap that open PR.
Main CI run 36945384717 still reports the same generated wa-copy-button sibling in test_page_fixture_renders for current-proposed-comparison, root-tabs, review-queue, and feature-gallery. I reproduced current-proposed-comparison on the merged main tree. #1541 has merged, and watchCodeBlocks() still inserts the control with pre.after(copy); the geometry change does not remove the authored-structure violation. The render check should remain strict while the copy control receives a placement and keyboard route that preserve authored selectors.
Activity
leaf-agent commentedon Oct 2, 2026
Confirmed on current
main:uv run pytest 'tests/test_render_gate.py::test_page_fixture_renders[current-proposed-comparison]' -q -n0fails because two generated<wa-copy-button>elements stand among authored section children. The existing corpus test already preserves this regression, so I did not open a duplicate reproduction PR. The placement originates atpre.after(copy)inwatchCodeBlocks(); a fix needs to keep authored child and sibling selectors intact while retaining the copy control's visual position and keyboard access. #1541 is changing this same runtime path, so a separate placement patch now would overlap that open PR.Read printed disclosures and code copy focus rings correctly (#1546)
leaf-agent commentedon Oct 2, 2026
Main CI run 36945384717 still reports the same generated
wa-copy-buttonsibling intest_page_fixture_rendersforcurrent-proposed-comparison,root-tabs,review-queue, andfeature-gallery. I reproducedcurrent-proposed-comparisonon the merged main tree. #1541 has merged, andwatchCodeBlocks()still inserts the control withpre.after(copy); the geometry change does not remove the authored-structure violation. The render check should remain strict while the copy control receives a placement and keyboard route that preserve authored selectors.