Repository navigation
Give every stance one ✕ in the panel's row, and name the stance in the field - #3233
Merged
Merged
Conversation
…ield
Page search, the target picker, area capture, Draw mode and Design mode each
gave a finger a worded exit step (Close search, Cancel selection, Exit Draw
mode, ...) in the panel's row, where it took the On me and Threads counts'
place, and the field kept saying the agent's status, so in a mode the exit
step was the only sign of it.
Each of those scopes now marks its way-out row `exit` instead of giving it
`touch` words. While the innermost such stance stands, touch-controls.js
offers that row as one page control, which the panel draws as a ✕ at the
row's end, beside the counts or the stance's remaining steps, titled by the
row ("Exit Draw mode", "Close search", "Back to hints"). The ✕ is not subject
to the one-gesture-at-a-time rule, so a selection's Comment on selection or a
to-do's Done no longer hides it. status-context.js carries the stance's
title, which heads whatever the panel's passing seat says ("In Draw mode ·
Codex replied") or stands alone in place of the status.
Behavior that changed: the counts stay in the row during the picker and
Design mode; the picker's exit is named "Close picker" (its row's title)
rather than "Cancel selection"; tests that found exits as `.lf-fp-step`
chips find the `.lf-fp-exit` ✕ by its label.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Review of the stance ✕ found three things to change. The innermost stance is a fact about the register, so dispatch.js answers it (`innermostStance`, over register.js's `stances`), and both touch-controls.js and status-context.js read it there rather than one reading the other's paint. A stance now takes its place in the steps' order with no steps of its own, so standing in the picker no longer lets an outer scope's steps, such as a to-do's Done, stand in the row beside its ✕. The stance's name goes only to the empty page field: it heads a passing notice there and otherwise takes the status's place, read as its own `stance`. It no longer rides the passing-words seat, so the folded leaf's peek, the line over a field holding words, and a thread's reply field say what they said before. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/kernel/kernel.json
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 20, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 20, 2026
…s route (#3290) The review of why the floating panel's row holds gesture buttons ended in five proposals the user accepted, each giving a finger its route on what the gesture acts on: search walks from arrows in its box (#3251), the duplicate Undo stroke, Done and Select steps go and a press on the marked match selects it (#3267), lifting a capture's drag attaches it (#3262), and the page's field quotes and comments on selected words (#3275), beside the one ✕ a stance offers (#3233). With those landed, no page scope row stands in the row as a worded step, and the review's last proposal was the rule that keeps it so. **The rule.** A page scope's rows take no words. Each row of a page scope that runs a press is its stance's `exit`, which the panel's ✕ runs, or declares `touch: false`; `register.js` refuses a row that is neither, as it already refuses a page command without `touch`. So a new gesture meets "what does a finger press?" where it is declared, rather than gaining a worded button by construction. `keyboard/AGENTS.md` ("Touch routes") states it, and `bindings.js`'s contract for `touch` follows. **Deleted.** The steps half of `touchPresses` in `register.js` and `touch-controls.js`; route-level `touch` words and their check in `bindings.js`; gesture rows and their rank in `page-controls.js` (the ✕'s rank is now `exit`); the panel's step branch and the `.lf-fp-step` face, with the typing rule's exception for it. **Declared.** Thirty scope rows gain `touch: false`, across the thread landing, the command reference, the standing scope, the margin, the response bar and reactions, the composer, the target picker's hints, Go-to, and area capture's arrows. Each is reached by a tap on what it acts on or the surface's own control. **Tests.** `test_a_mode_entered_from_the_panel_offers_its_way_out_in_the_row` still expected Draw mode's counts to give way to a step, which #3267 had ended; it now expects them to stay. Assertions on the gone `.lf-fp-step` class are dropped, and the stale step prose in tests and runtime comments is rewritten. Checked: `pnpm run test:runtime`, `pnpm run check:browser`, probes of the feature gallery and review-a-plan (no register refusal), and the tests that drive each stance, the ✕, the field's offer and area capture. `test_reactions_keep_all_six_buttons_on_an_occupied_target[390-keyboard]` fails, and fails the same on `main`. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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.
Page search, the target picker, area capture, Draw mode and Design mode each gave the panel's row a worded exit step (Close search, Cancel selection, Exit Draw mode, Exit Design mode, Cancel capture). That step took the On me and Threads counts' place, and the field kept saying the agent's status, so in a mode the exit step was the only sign of it. The user reviewed why the row holds these buttons and accepted the first proposal: one ✕ leaves the stance, which the panel names.
The mechanism. Each of those scopes marks its way-out row
exitinstead of giving ittouchwords.dispatch.jsanswers which stance the user stands in (innermostStance, overregister.js'sstances).touch-controls.jsoffers that stance's exit row as one page control, whichfloating-panel.jsdraws as a ✕ at the row's end, beside the counts or the stance's remaining steps, titled by the row ("Exit Draw mode", "Close search", "Back to hints", "Close picker"). The ✕ is not subject to the one-gesture-at-a-time rule, so a selection's Comment on selection no longer hides a mode's way out. A stance with no steps of its own still takes its place in the steps' order, so standing in the picker stands down an outer scope's steps, such as a to-do's Done.What the field says.
status-context.jscarries the stance's title. The empty page field says it in the status's place (data-says="stance"), or ahead of a passing notice ("In Draw mode · 14 agent messages in 10 threads"). A thread's reply field, the folded leaf's peek and the line over a draft are unchanged.Behavior that changed.
.lf-fp-stepchips find the.lf-fp-exit✕ by its label; the Draw-mode panel test also asserts the field names the mode.Checked in Chromium (desktop and 390px touch) and Firefox with probe journeys through each stance, nested stances (search from the picker's hints, search inside Draw mode) and the folded panel;
pnpm run test:runtime,pnpm run check:browser, and the ten browser and journey tests that name these controls pass.