Skip to content

test: run the scrolling-draft Send placement cases with scrollbars shown - #5218

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5174
Nov 3, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5174

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The two long-draft cases of test_send_grows_thread_around_the_words (size3, size4) have failed in every nightly test-macos run since #4841 (passing 10-31 at d995f3e6d, failing 11-01, 11-02 and on the 11-03 dispatch). The cause is the test's browser, not the product: the shared browser fixture launches with Playwright's --hide-scrollbars. With that flag, the comment box's overflow: auto bar takes no room, while the card's transcript still reserves its scrollbar-gutter: stable gutter, which #4841 adds once the transcript overflows. So only the card gives up the bar's width. On Linux that is 10px and fits within the card's slack. On macOS the card wraps narrower than the box, so lines rewrap and the words move (in the 11-02 run, a line-end word at x=918.98 drops to the next line and the transcript shifts 273px).

Measured on Linux Chromium at the size3 geometry, comparing the box's text column with the card's:

scrollbars box bar card gutter box column right card column right
hidden (shared browser) 0 10 990 993
shown (scrollbar_browser) 10 10 965 978
short draft, no overflow 0 0 1391 1404

With scrollbars shown, the box and the card give up the same bar and keep the card's usual 13px offset, as they do with no bar at all. Hiding scrollbars removes the box's bar but not the card's gutter, a pairing no user's browser makes. So the two cases now run on scrollbar_browser. On macOS that fixture may still draw overlay bars, and an overlay bar reserves no gutter on either side. The assertion is unchanged: a sent draft's words stay where they were typed.

Verification: both cases pass locally on Linux with shown bars. The macOS evidence comes from a ci dispatch on this branch, whose test-macos job runs them.

This leaves one part of #5174 open. On 11-02 at 05:46 the same two cases failed once on the Linux test job (run 41395985405) with a smaller rewrap: one line moved, and the card was again narrower. They have passed in every Linux run since. That run used hidden bars with Linux's 10px gutter, so this change does not account for it.

Refs #5174 — automated triage

test_send_grows_thread_around_the_words's two long-draft cases ran on the
shared browser, launched with Playwright's --hide-scrollbars. There the
comment box's `overflow: auto` bar takes no room, while the card's
transcript, which holds `scrollbar-gutter: stable` once it overflows
(#4841), still reserves the gutter: 10px on Linux Chromium. Linux absorbed
that inside the card's slack, but on macOS the card wrapped narrower than
the box, and both cases have failed every nightly test-macos run since
#4841 landed. With scrollbars shown, the box and the card give up the same
bar, as in a user's browser, so the cases now run on scrollbar_browser.
The behavior they protect, a sent draft's words standing where they were
typed, is unchanged.

Refs #5174
@leaf-agent
leaf-agent merged commit f213217 into main Nov 3, 2026
5 of 7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5174 branch November 3, 2026 15:17
max-sixty added a commit that referenced this pull request Nov 4, 2026
`running-tend` told a session fixing a failure only `test-macos` shows
to dispatch `ci` on the fix's branch and read that run's `test-macos`
job. A triage session takes that as evidence it must collect before it
finishes, so it polls the run for its whole length, four to five hours,
while it holds the only triage lane. Two Claude triage sessions did so
in their first day: #5174's waited 4 h 10 min and #5184's 4 h 46 min. In
both, the PR (#5218, #5267) merged within 20 minutes of the wait
starting, so the result changed nothing, and #5184's dispatched run
ended red after its PR had merged.

Leaf already chose not to have Tend sessions wait on CI (`await_ci:
false`, #2455), and Tend tells every triage session so. This
instruction, added in #3939, asked for a wait the setting doesn't
govern, since the dispatched run is outside the PR's checks. It also
supplied the "passes after" evidence the merge rule in **Fixing a CI
failure's cause** asks for. Now the merge rule says that for a failure
only `test-macos` shows, the checks the Linux runner can run suffice,
and the macOS paragraph names the next scheduled run on main, after the
merge, as the evidence after the fix. The landing sessions already
worked that way: both PRs merged before their dispatched runs ended. If
the scheduled run still fails, its CI report brings the failure back to
triage.

Supersedes #5315, which makes the same merge-rule change but still
dispatches the macOS run and leaves the cause issue open until a later
session reads it. That costs a macOS run and another triage session per
fix to learn what the next scheduled run reports anyway.

> _This was written by Claude Code on behalf of max-sixty_
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