Repository navigation
Put the agent's word beside the leaf and Reply beside its key - #4510
Merged
Merged
Conversation
With a thread open, the empty comment field read "Reply · Your turn" and then the `c` badge, so the key stood after the agent's word rather than the action it enters, and the action and the agent's word shared one run of text in one face. Now whose turn it is, and a walk's position after it, stand beside the leaf in the field's dim face, as the agent's status does at rest, and Reply stands at the field's end in ink with its key, as the press it offers. Reply's key keeps its room while the panel doesn't hold focus, and the turn reading keeps the Send corner's room, so Reply doesn't move as focus or writing comes and goes. A narrow field shortens the agent's word first and keeps Reply whole. The composer's `hintAside` slot, used only by the panel, becomes `hintLead`, words standing before the hint. The user chose this arrangement on 27 October over three others: the key beside Reply with the turn at the field's end in one face, Reply alone with the turn left to the thread's messages, and the agent's words in a lane of their own before the seat. Behavior changed: test_a_thread_s_field_says_its_reply_beside_the_walk_s_position now asserts the walk's position stands before Reply and that Reply ends the field.
# Conflicts: # dist/kernel/kernel.json
leaf-agent
previously approved these changes
Oct 27, 2026
leaf-agent
approved these changes
Oct 27, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 27, 2026
A refused comment removes its temporary thread before the retained reply field finishes repainting. The shared `fieldReading` still classified that missing subject as “Reply”, allowing the turn lead added in #4510 to call `threadAttention` without a thread. The field reader now returns an empty reading while its subject is absent, so both the hint and its lead stop describing a reply until the panel retires the route. This preserves the retained composition renderer and native editor ownership from #4393. The rejected thread still disappears and the user's words, placement and focus return through the existing refusal recovery. No layout or styling changes are introduced. Both reported browser regressions reproduce the null dereference on the base and pass with the fix. Validation also passes 10 adjacent refusal cases, four panel cases covering status, reply/walk labels and sending, the browser build, and all 684 runtime tests. Existing tests cover the transition without another reproduction test. A served command-hub startup comparison against the base keeps 45 code requests through widget upgrade and first server-state presentation, adding 158 code bytes. Both arms show no console errors or layout shifts. The added branch belongs in the shared field reading rather than a second null guard in the attention reader; it states whether the retained field still has a subject. Closes #4522 — automated triage Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 28, 2026
The turn line beside the leaf in the panel's field (#4510) said a thread's word upright, so a thread whose update the agent doesn't have yet read "Queued for Claude" there in the agent's type, while the message head, Threads row, On Claude list and margin entry set it in Leaf's italic (#4513). `turnLead` now wraps the word in a span carrying the thread attention's `voice`, and `floating-panel.css` sets Leaf's in italic, as on a Threads row. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
added a commit
that referenced
this pull request
Nov 1, 2026
The touch checks counted retained DOM nodes rather than visible keyboard hints. The composer keeps an empty badge when a placeholder needs rich content, and the existing `.lf-key-badge:empty` rule hides it with `display: none`; the failing CI screenshot shows no key badge. Both touch checks now require zero visible badges, preserving the guarantee that a phone advertises no keyboard shortcuts without constraining the retained renderer's structure. Runtime behavior is unchanged. The reported field assertion fails on current main with one retained badge. After the assertion correction, both focused touch tests pass (2 passed): ```sh uv run pytest tests/browser/navigation/test_key_surfaces.py -q -n0 -k 'field_names_no_key_to_a_finger or coarse_pointer_keeps_useful_status' ``` The rich placeholder supports the separate speaker faces introduced in #4804 and the reply arrangement in #4510; this repair keeps those choices. The existing placeholder-text checks and navigation checks remain in place. Closes #4923 — automated triage Co-authored-by: leaf-agent <[email protected]>
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.
With a thread open, the panel's empty comment field read
Reply · Your turnand then thecbadge. The key stood after the agent's word rather than after the action it enters, and the action and the agent's word shared one run of text in one face.Now whose turn it is, with a walk's position after it, stands beside the leaf in the field's dim face, as the agent's status does at rest. Reply stands at the field's end in ink with its key, as the press it offers, the way selected words already read. Reply's key keeps its room while the panel doesn't hold focus, and the turn reading keeps the Send corner's room, so Reply doesn't move as focus or writing comes and goes. A narrow field shortens the agent's word first and keeps Reply whole.
The composer's
hintAsideslot, used only by the panel, becomeshintLead: words that stand before the hint (browser/runtime/composing/input.js,response.css). The panel fills it inturnLead(floating-panel.js) and places Reply infloating-panel.css.The user chose this arrangement on 27 October, from runtime renders of four candidates, over three others: the key beside Reply with the turn at the field's end in one face; Reply alone with the turn left to the thread's messages; and the agent's words in a lane of their own before the seat, at rest too. The panel's header records the choice, and the glossary and
docs/how-it-works.htmldescribe the new row.Behavior changed:
test_a_thread_s_field_says_its_reply_beside_the_walk_s_positionnow asserts the walk's position stands before Reply and that Reply ends the field.test_send_grows_thread_around_the_words[size1-0.75-…]fails onmainas well as here, so this change doesn't cause it.