Repository navigation
fix: measure compact Reply fields in refusal journey - #5012
Merged
Merged
Conversation
The diff reply intentionally rests without Send or Dictate after its words are sent. Measure the Reply field when it is the visible action, retaining refusal, retry, whitespace and admission coverage. Both diff seats and the margin case pass; the unchanged probe crashes before refusal on main. Closes #4945
The refusal journey compared Dictate's 32px box with Send's 24px box even though both center on the same line. Preserve the shared aim and following-passage assertions without pinning equal control heights; retain exact draft restoration and retry admission checks. All four refusal locations pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The refused-reply journey now measures the compact Reply field when an empty diff reply has no visible action button, and compares the panel controls' shared aim across refusal instead of requiring Dictate and Send to have identical heights. This preserves the compact reply behavior restored in #4586 and the shorter, centered Send introduced in #4714. No product rendering changes.
The panel failure reproduced at the prior PR head: Dictate occupied y=848–880 and Send y=852–876, both centered at 864. The corrected assertion still requires the action's horizontal position and vertical center, and the following passage's edges, to remain fixed. Exact draft restoration, refusal visibility, retry identity and single admitted reply assertions remain intact.
Validation: all four
test_refused_reply_retains_its_live_footcases pass (outlet, nested-end, margin and panel); Ruff lint, formatting and diff whitespace checks pass. The outlet missing-node crash was reproduced on unchanged main during the original repair.Closes #4945 — automated triage