Skip to content

Wrapped margin reply Send moves less than the expected 30px #4472

Closed

Description

@leaf-agent

Scheduled CI run 40492069054, on 7cbf67854494bde6f7245fff62a3b1861d1cd661, records this failure.

The initial arrival and reply-wrap position checks pass. The send coordinate grows from 332.046875 to 354.92657470703125, failing the expected increase above 30px. This is a wrapping assertion, unlike #4255’s post-send placement failure.

Affected cases (JUnit names):

  • tests.journeys.test_render_margin::test_margin_card_holds_its_top_as_a_turn_arrives_and_as_a_reply_wraps
Deciding CI diagnostics
macOS:
AssertionError: ('send', {'cardTop': 152.046875, 'cardBottom': 380.046875, 'turn': 165.046875, 'editorTop': 326.046875, ...}, {'cardTop': 152.046875, 'cardBottom': 419.046875, 'turn': 165.046875, 'editorTop': 326.046875, ...})
assert 354.92657470703125 > (332.046875 + 30)

This report session read the failed run and JUnit diagnostics; it did not reproduce locally or establish the introducing change. Reproduce on current main, inspect prior CI results and the introducing change, and distinguish an obsolete assertion from a product regression before choosing a repair. A passing rerun alone does not clear an intermittent defect.

Cause of a failure tracked in #4225.

Activity

  1. added
    tend-ci-cause
    on Oct 27, 2026
  2. leaf-agent commented on Oct 29, 2026

    @leaf-agent
    CollaboratorAuthor

    #4689 fixes the reported wrapping race: the editor has already grown by two lines while Send is still travelling to its new position. Waiting for the card's finite animation before measuring fixes that reading without relaxing the 30px threshold or the per-input stability checks. I reproduced the exact Send failure on Linux by extending the existing resize animation to 30 seconds; with the wait, the wrapping assertions pass under the same condition.

    The issue remains open because the complete journey is still red. The PR is deliberately partial; the queued review owns its follow-up, with CI waiting disabled as requested.

    Remaining journey diagnostics and next repair boundary

    The macOS artifacts from scheduled runs 40492069054 and 40675368197 both show the wrapping failure; their measured Send deltas are approximately 22.88px and 27.18px. The Linux artifact from 40675368197, and local runs before and after the wrapping fix, instead fail later: the tall card ends at 892px, against the probe's expected 834px.

    #4555 intentionally lets a card beside the floating panel use the full window height. CARD_AND_REPLY in tests/browser/margin/__init__.py still calls shownWindow({gap: 8}) without the card's horizontal bounds. The next repair should first bring that probe into agreement with the placement contract (across: box) and exercise its consumers.

    A temporary experiment with that probe correction exposed subsequent checks, which are not changed in #4689:

    • Shrinking the draft gives cardTop: 51.328125, versus the original 152.328125. Recording the page scroll explains the entire difference: scrollY changes from 530 to 631 during the tall insertion, and stays at 631 through the shrink. The card returns to its source's document position; the assertion compares the old viewport position. Distinguish the native insertion's page scroll from the card's attachment policy before choosing a repair.
    • Accounting for that source movement reached the send-placement check: the next compose button stood at 264px, versus the pressed Send's 227.328125px. That remains an unresolved diagnostic, not a verified cause or product fix.

    Reproduction command: uv run pytest tests/journeys/test_render_margin.py::test_margin_card_holds_its_top_as_a_turn_arrives_and_as_a_reply_wraps -q -n0. The 892px versus 834px failure also reproduces with --cpu-throttle 6. No experiment overrides or changes to the later assertions are committed. macOS verification remains outstanding.

  3. leaf-agent commented on Nov 4, 2026

    @leaf-agent
    CollaboratorAuthor

    The whole journey, test_margin_card_holds_its_top_as_a_turn_arrives_and_as_a_reply_wraps, passed on Linux and macOS in the latest scheduled ci run, 41622727492 (2026-11-03, at 19757c94c) and in 41432142330. That covers the later 892px-vs-834px failure as well as the wrapping race #4689 fixed. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions