Skip to content

Keep a draft's posture while the caret is away from the field - #3392

Merged
max-sixty merged 1 commit into
mainfrom
attachment-escape-rewrap
Oct 20, 2026
Merged

max-sixty merged 1 commit into
mainfrom
attachment-escape-rewrap

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

While the field holds a draft, Send now stays in the field's corner and the counts stay aside for it, whether or not the caret is in the field; they come back when the field empties. Before, the counts came back as the caret left, which narrowed the field (494px to 389px at a desktop width) and rewrapped the draft each time the user stepped out of it and again as they came back. The user chose this on 20 October, reversing the 15 October note in notes/floating-panel/GOAL.md, which is updated.

The posture (drafted in floating-panel.js, data-drafted on the panel) reads the draft alone and changes only at the user's typing or a view changing; standing no longer moves it. Send and the field's end room show while the user writes or while the field holds a draft. This replaces the page field's half of #3390, whose guard in the writing reader is deleted; the rewrite's guard stays, since it holds the thread view's height, not the posture.

test_send_stands_in_the_counts_place_while_the_field_holds_a_draft now asserts the field's box is unchanged after a press away and a press back, and that the counts return once the field empties; it fails with the old rule. Checked in Firefox with a probe. test_a_draft_draws_a_bullet_list_as_the_message_will fails on this branch's base as well, so it is inherited.

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

While the field holds a draft, Send stays in its corner and the counts stay aside, whether or not the caret is in the field; they come back when the field empties. The counts coming back as the caret left rewrapped the draft each time the user stepped out and again on the way back. The user chose this on 20 October, reversing the 15 October entry in notes/floating-panel/GOAL.md.

The posture (`drafted`, `data-drafted`) reads the draft alone and moves only at typing or a view changing. Send and the field's end room show while the user writes or the field holds a draft. The page field's modal guard from #3390 is deleted, since the posture no longer reads standing; the rewrite's guard stays.

The send-stands test now asserts the field's box survives a press away and back, and that the counts return when the field empties.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 47c7360 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the attachment-escape-rewrap branch October 20, 2026 23:58
max-sixty added a commit that referenced this pull request Oct 21, 2026
#3392 moved the draft-posture rule (Send in the corner while the field
holds words) into floating-panel.js beside `drafted`, the last departure
the note held that the code did not. The one about the line over the
field naming where words go was already reversed by the header's 17
October decision. TODO #28 points at the module header.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 21, 2026
…side it (#3396)

A survey of `notes/` against the code and history at d91b67b. Where a
note's design has landed, its contract moves beside the code if it
wasn't already there, and the note or section goes; what is still
unresolved stays.

- **Deleted:** `floating-panel/GOAL.md` (every departure is now recorded
in `floating-panel.js` and `styles/floating-panel.css`; #3392 moved the
last one, the draft posture, beside `drafted`, and this adds the
no-key-hints decision to the header), `browser-reactivity.md` (its
design is in module headers; why paints that must land in the turn use
`render` moves to `assets/AGENTS.md`, and the margin's double draw
becomes a TODO implementation candidate) and `chrome-and-covers.md`
(`page-layout.md` holds the workspace decision; the `layouts.css`
Workspace comment now records the rejected main-region-scrolls design).
- **Trimmed:** `agent-usability-evals.md` drops the findings through
2026-10-12, which have landed. `comparisons.md` drops the phone-pin
finding (#2680), the 4 October follow-up proposals and two landed
lessons. `user-feedback-responsiveness.md` narrows delegated work to
Codex and Pi (#3370) and drops "Explicit stdin" (#3375). `threads.md`
drops request buttons (#1327), placement (#2134) and notification
transitions. `shared-decisions.md` points at the recorded owner
contract. `browser-support.md` drops two fixed entries and owners #3100
removed.
- **TODO.md** follows each: #28 points at the module header, #25 asks
for the board's write rather than an owner, the annotation-placement
item loses its landed phone half, and the delegated-work and
reply-budget items lose what #3370 and #3372 settled.
- Smaller corrections in `shift-watch-cost`, `undo-reach` (#3271),
`named-widget-interfaces`, `codex-integration` (`codex_tool.py`), the
long-read eval's provenance comment, and `motion.js`'s fold comment. The
runtime comment edits rebuild `kernel.json` only.

No behavior changes.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.

2 participants