Skip to content

fix: identify the margin surface in refused reply checks - #4687

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4460
Oct 29, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The refused-reply test now recognizes the margin card's ground surface in shift diagnostics. #4183 deliberately let a refused turn give its room back; the shared box motion in #4379 reports that movement beside div.lf-box-ground.lf-margin-preview-ground, while this test still matched the enclosing aside. This updates that reference without changing the runtime or adding another accepted surface.

The margin case fails before the change and passes after it, including whole draft text, card bounds, retry identity and exactly one admitted reply. The panel case also passes. Ruff check and format check pass.

The outlet and nested-end cases fail on both unchanged main (cf15e623131b432e234cf80c6d9ed0e1c3ba367f) and the candidate: pose() cannot find a visible action button and dereferences undefined; teardown also reports shifts. Those failures are separate from the margin diagnostic repaired here.

Closes #4460 — automated triage

The refusal test permits the card to give a refused turn its room back, as chosen in #4183. Its diagnostic matcher still named the aside, while the shared box motion introduced in #4379 reports the card ground. Match that surface without widening the accepted movement to unrelated elements. The margin reproduction failed before this change and passes after it; draft, retry and card-bound checks remain in place.

Closes #4460

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The red CI result does not invalidate this repair. Its margin case passed, and the only failing cases were outlet and nested-end, both failing in pose() before reaching the changed matcher because no action button was visible. I reproduced the outlet failure and its 12px editor-shift diagnostic on unchanged current main (e43fc34fa79fcd4c50a049c3d786d8c094d2e769). The margin and panel cases pass locally on this PR's head (2 passed).

The test-only diff preserves the permitted card movement and the draft/retry assertions, replacing the obsolete enclosing-aside reference with the actual ground surface. Under the repository's CI-repair landing policy, the unrelated terminal failures do not block this fix; they remain with the main-suite failure tracking in #4225.

@leaf-agent
leaf-agent merged commit a472f29 into main Oct 29, 2026
6 of 7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4460 branch October 29, 2026 10:38
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 margin reply reports an uncredited 83px message header move

1 participant