Skip to content

fix: measure compact Reply fields in refusal journey - #5012

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-4945
Nov 1, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-4945

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

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_foot cases 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

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.
@leaf-agent
leaf-agent merged commit dd51754 into main Nov 1, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4945 branch November 1, 2026 22:51
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.

Refused diff reply probe reads a missing node and reports editor movement

1 participant