Skip to content

test: wait for the mirrored reply draft instead of saveDraft's return value - #6189

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6176
Nov 16, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Two seat-mirrored cases of test_native_reply_edits_after_semantic_paint_keep_the_first_line have failed on main since #6124 moved drafts to the page's server. This changes only the test; Leaf's behavior is unchanged.

Verification: on f1b367375 (main), running the test function by node id gives 2 failed, 6 passed, with the two seat-mirrored cases failing. With this change all 8 pass.

Closes #6176 — automated triage

… value

#6124 moved drafts to the page's server, so saveDraft no longer reports a durable localStorage write: it returns nothing and the words reach the other tab through the server's drafts news. The seat-mirrored journeys asserted that return value, so they failed at once. The journey now calls saveDraft and waits for the words to arrive in the first tab, which it already did.

The composing case also wrote from a tab that had not yet heard the first tab's composing words. Under #6124's compare-and-set, the stale write gives way to the first one, so "First line" never arrived. The second tab now waits until it has heard "Composing" before writing over it, so the journey still checks that mirrored words land in a composing field without moving it. No behavior changes; saveDraft's documented contract (module-input.md) never promised a return value.

Closes #6176
@leaf-agent
leaf-agent merged commit c94ab14 into main Nov 16, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6176 branch November 16, 2026 17:28
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.

test_native_reply_edits_after_semantic_paint_keep_the_first_line: saveDraft returns nothing since #6124 moved drafts to the server

1 participant