Skip to content

Hold a margin card's top through a refused reply, as through the send it answers - #6199

Merged
max-sixty merged 1 commit into
mainfrom
canonical-drafts
Nov 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
canonical-drafts

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

A refused reply no longer drops its margin card: the card holds its top, as it does through the send, and its reply box rises into the refused turn's room. Since #6091 the card's top dropped 56px and its box rose 24px, sliding the card out from under the pointer, and test_refused_reply_retains_its_live_foot[margin] failed on main.

The card's one edge rule (heldEdge, thread-preview.js) holds the foot while the user writes words in its reply box. After a refusal the words return to the focused box under the refusal's cover, which shows no line being typed, so the rule now counts covered words as it counts an empty box. No hold, timer or memory of the send is added. errorOver moves from composing/input.js to errors.js, which owns the cover, so the box and the card read one definition.

Closes #6178: #6188 fixed its other journey, and this fixes the refused reply.

Max chose keeping the top still over letting the card drop, from captures of both on his Leaf page. Tests: the refused-reply journey passes at all four places; pnpm run test:runtime passes.

This was written by Claude Code on behalf of max-sixty

… it answers

Since #6091 a refused reply dropped its margin card 56px and raised its box 24px:
lifting the send's mask republishes the drafts list, so the margin re-places the card
after the words return, and heldEdge read words in a focused box as the user writing,
which holds the foot. Words under a refusal's cover show no line being typed, so the
rule now counts them as it counts an empty box, and the card holds its top while its
box rises into the refused turn's room. Max chose this over letting the card drop on
16 November 2026. errorOver moves to errors.js, which owns the cover, so the box and
the card read one definition.

test_refused_reply_retains_its_live_foot[margin] passes again.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This finishes #6178: #6188 fixed its missing comment marker, and this PR fixes its refused reply's 56px drop. Consider adding Closes #6178 to the description so the merge closes the cause issue. Locally, test_refused_reply_retains_its_live_foot passes in every parametrization, as does test_margin_card_holds_its_top_while_read_and_its_reply_while_written, the typed-rise case #6178 asked a fix to keep.

@max-sixty
max-sixty merged commit 474cd80 into main Nov 16, 2026
5 checks passed
@max-sixty
max-sixty deleted the canonical-drafts branch November 16, 2026 20:34
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.

Two margin-card journeys fail since #6091: no comment marker, and a refused reply moves the card's close control 56px

2 participants