Skip to content

fix: finish editor rendering before scrolling away in the thread test - #4977

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-4917
Nov 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-4917

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The scrolled-away reply test could scroll before the editor finished rendering. The macOS failure capture shows the reply box still on screen with “1 new reply”, so the test was exercising the visible editor's news hold rather than its intended off-screen arrival.

Wait for rendering after typing, then scroll away and assert that the focused box is below the viewport before delivering the reply. The message-count and reading-position assertions remain unchanged; no runtime or interface behavior changes.

Validation: holding rendering frames across typing and scrolling reproduced the wrong setup locally (box y=790 in a 900px viewport). Releasing those frames and waiting for rendering before scrolling passed the same experiment. Both existing variants pass normally and at 10× CPU throttle. The macOS result remains for CI verification.

Closes #4917 — automated triage

The macOS failure picture has the focused reply still visible with its new-reply notice. Holding rendering frames across typing and the test scroll reproduces that setup: after release the editor returns to y=790 in a 900px viewport. Waiting for rendering before the scroll preserves the intended off-screen setup and the incoming turn appears without moving the reading position. Assert the off-screen precondition so a setup regression fails at its cause. No runtime behavior changes.

Closes #4917
@max-sixty
max-sixty merged commit 2bd33d8 into main Nov 1, 2026
5 of 7 checks passed
@max-sixty
max-sixty deleted the fix/issue-4917 branch November 1, 2026 18:59
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.

Bounded thread never displays its second message after server delivery

2 participants