Repository navigation
Fix six phone defects blind judges hit, and show each choice's consequence on On me cards - #4270
Merged
Merged
Conversation
Four blind judges answered the same 22 pending decisions on a phone in a claude.ai artifact and in a Leaf page built from the same brief. Three preferred the Leaf page, but scored its looks 4 of 7 against the artifact's 6, and named six defects in Leaf rather than in the page. Max chose to fix all six in one change. - Margin pins stood over words where a clear seat was in reach. A pin whose seats were all taken took the least-covering one, often the heading line above its target, before trying its corner seat slid left past the target's controls. Now that slid seat counts as a clear seat, tried after the others, so an option group's pin stands beside its first option's mark, in the room the title leaves. On the judges' page at 390px, pins over words went from 3 of 23 to 0. - An option group drew digit faces on a touch screen once the user was in it. The command hints now draw faces only where `advertisesKeys` holds, the rule the composer's send key already follows; controls keep their `aria-keyshortcuts` for an attached keyboard. - Return in "Add another option" broke a line on a phone's keyboard, since composers leave Return native there. A field marked `aria-multiline="false"` now sends on Return from every keyboard and takes no Shift+Return line; the option field is the one so marked. - A draft's edit said `Edited "q9-note"`, and its editor was named `Edit q9-note`: both used the element's id. Both now name the draft as the rest of the chrome does (`addressableLabel`), else "the draft". - An open draft stayed open, unsaved, when the user tapped elsewhere, so a note needed the pencil, the words and the check mark. A press away from the draft now saves it as Save does, through `onPressAway`, now exported to package widgets. Discard and Escape still discard. Saving at each pause in the typing was rejected: each save is an edit delivered to the agent, which would read half-written words. - A picked option said so by its tint alone, about 1.1:1 against the card in the dark palette, in the same green as a recommended tag. A picked cell or row now also wears a 2px inset ring in that green. Tests that pressed elsewhere while a draft editor was open now leave it by the keyboard or `blur()`, since a press there saves it, and tests that found the editor by its id-based name find it by its tag. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # dist/kernel/kernel.json # dist/kernel/leaf.js # dist/kernel/runtime/bundle-layer-client.js # dist/kernel/runtime/widget-api.js # tests/journeys/test_render_projection.py
# Conflicts: # dist/kernel/kernel.json # dist/kernel/leaf.js # dist/kernel/runtime/bundle-errors.js # dist/kernel/runtime/widget-api.js
An On me card answered a choice question with a button per option's title, so on a phone the user picked without the recommendation or what the option does unless they pressed Show. Of four drafts drawn on a real panel at 390px, Max chose D: the title, the recommended tag, and the option's consequence in two lines. A Decision command row's `description`, which already showed under its title in a touch menu, now shows under the choice's name on an On me card too, and a new `recommended: true` on the row marks the answer the page advises; `decisionControls` and `choicesOf` carry both. A choice that has either takes a full line, its name over the tag and at most two lines of words; one with neither stays a compact button, and a long name wraps rather than running past the card. `lf-options` declares, for a card-shaped option, the words after its title up to any picture as the description, and `recommended` where it wears the `recommended` tag. Rejected: the whole option, whose tags and picture let one choice fill a phone's screen (draft C), and wrapping titles alone (draft B). `lf-suggestion` drops its Accept/Reject descriptions, "Accept the suggested change", which repeated the title and section heading against the rule `bindings.js` states for descriptions, and would otherwise have stretched a suggestion's two answers into two full lines. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # dist/kernel/kernel.json # dist/kernel/leaf.js # dist/kernel/runtime/bundle-errors.js # dist/kernel/runtime/widget-api.js
Main's #4205 made every widget-api export public and dropped textNodesUnder, so lf-options reads the words after a title with `wrote`, keeping the spaces it trims at an element's edges. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- A paragraph after an option's title, as ideas-to-implement writes its options, is the consequence an On me card shows; only inline words were. - A pin's corner seat slides left past words as well as controls to find a clear seat, so a right-aligned title beside a control no longer sends the pin over the heading. - A refused save from a press away reopens the draft without pulling the focus back from where the press took the user, such as the next draft. - A one-line field turns a pasted or platform-inserted line break into a space; only Shift+Enter was blocked. - module-input.md documents `aria-multiline="false"` on a wired box. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 26, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 26, 2026
This was referenced Oct 26, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 26, 2026
The option-field test still expected multiline growth after #4270 deliberately made option titles single-line so Return submits on phone keyboards. It now checks that pasted line breaks become spaces, the field keeps its height, and the Add control retains its alignment. This preserves #4270's intended interface and changes no product behavior. The reported test failed locally with `21 > 21` before this update. Both the corrected test and the phone Return/paste test pass afterward (`2 passed`). The preceding CI run's JUnit records a pass before #4270; its diff introduces the single-line declaration and newline normalization. Closes #4277 — automated triage Co-authored-by: leaf-agent <[email protected]>
This was referenced Oct 26, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 26, 2026
The resume-writing test clicked the heading to leave a draft open, but #4270 intentionally made a press outside the draft save it. The editor therefore disappeared before the test could resume it. The preceding passing run, 40354764131, was on the earlier commit f30d37b. Use Tab to leave the editor and Enter to activate Resume writing in the command reference. This keeps the existing assertions for recovered text and caret position, preserves press-away saving, and changes no product behavior. The reported test reproduced the missing-editor failure on current main before this change. Afterward, it and `test_a_press_away_from_an_open_draft_saves_it` both pass (2 tests). Closes #4276 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 26, 2026
PR #4270 made described On me choices take full rows. The card retained its height after answering, but its shorter result pulled Show upward; Undo restored the choices and moved Show down 105 px. Keep the answers at the foot of the retained card using flex layout, so Show stays in place through both transitions. Choice descriptions, recommendations and neighboring card positions are preserved. The changed screen state is an answered On me choice card: the result and Undo now sit at its foot beside Show, with the retained space above them. Unanswered cards keep their existing layout. Added catalogue states cover the unanswered card and the result on desktop light/dark and phone. Validation: the reported test fails on current main with the exact 104.96875 px shift, and passes on the parent of #4270. A new explicit Show-position assertion fails before this fix and passes afterward. The repaired journey passes normally and at 6×/20× CPU slowdown; three neighboring On me tests, all 668 runtime tests, and `pnpm run check` pass. Four base/head still pairs were captured and inspected: the unanswered state is unchanged, and answered light/dark/phone states retain Show at the card's foot. An independent code and visual review found no findings. Closes #4279 — automated triage Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
In Firefox, a row of option cards laid across left a card whose chips wrap a chip line or two below its neighbours on load (titles at 701, 657, 657 in test_cards_laid_across_align_their_titles_whatever_chips_open_them), until a resize realigned them. #4270, merged from main, gave each option's command row a description computed in the render: `consequence()` reads each node's computed display, which in Firefox forces a layout, taken between the render's insertions of key badges and marks. Firefox 155 keeps baseline content-alignment only through a layout of the whole row; a later reflow that dirties one card (an absolutely positioned child inserted, a padding change) drops another card's shift, in a plain grid with no Leaf code as well. The row now declares its description as a function, which the command contract already accepts, so the read happens when On me, the reference or a touch menu shows it, after the row's first layout. The Firefox defect goes into notes/browser-support.md beside the Chromium gap the same rule meets. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
#4323) UI defects kept reaching the user one screenshot at a time because nothing judged a change the way its user would, and Leaf let each widget choose its own control faces. This branch narrows Leaf's control vocabulary to one face per role, removes 22 things shown at rest that no task needed, and makes a UI review use the change before reading its code. The user picked each removal from proposals with captures on a Leaf page. ### Controls are built by role A widget names a role and never a face's classes: `offerAction(role, className, label, {title, icon})`, or `offeredAction(…)` in a template, from `widget-api.js`. The four roles are `symbol`, `word`, `commit` and `mark`. Their face classes are spelled once, in `ACTION_FACES` in `browser/runtime/prepaint.js`, and `test_controls_are_built_by_role_and_never_by_face` fails when any other bundled module spells one. Every runtime and package control is cut over, including controls main added while this branch was open (the Other responses trigger, the playground's instruction bar, page diagnostics). Symbols and worded buttons are quiet until hovered or reached by key; only the committing press keeps a frame, in the accent. The word role absorbs the old item role. `module-authoring.md` lists the roles for package authors, and says a control shows a symbol only where a standard one for its action exists. A pressed quiet button no longer keeps its hover chip, and a tapped button no longer keeps its hover face on a touch screen: hover faces apply only where a pointer hovers. ### Removed at rest The twelve clear cuts from the surface audit, nine of its judgment calls, and the panel seat's agent-message count: - Panel and threads: an untitled thread view's repeated heading; "New" on unread rows in Threads; the seat's "2 agent messages in 2 threads" (now announced only); the widget kind on On me cards; a message's age where it repeats the one above; the "Chose X — sent" notice (announced only). - Decisions: the § reference where all rows point at one block; the "✓ selected" chip on a picked card; the option count on a settled decision. - Queues: "To answer" under rows the user owes. - Diffs: the filter bar on a one-file diff; the open reply field under each conversation, which now rests as a one-line Reply that click, Tab or `c` opens; "Changed" on worktree rows. - Evidence: the trace timeline's legend line; four of the five places a trace showed its playhead time; the count in "Moments (3)"; a visual-review case's empty discussion box, its "Unchecked" label and its long capture caption. - Playgrounds and samples: the "Controls" and "Starting points" labels (kept as accessible names); "LIVE SAMPLE ·" and "INTERACTIVE SAMPLE ·" captions (quoted samples keep "QUOTED ·"). Each module whose header recorded the old behavior as a product choice now records the new one and the alternative it replaced. ### Alignment Option titles line up across a row whatever chips a card has, a row of metric tiles sets every figure on one line, and a board card's prose starts on its title's next line in every shape. Where chips wrap, Chromium still sets that title lower; `authoring-on-me.md` now asks for labels of a word or two, and the `options-label-what-sets-them-apart` eval gained a `labels-fit-one-line` metric (both arms 3/3; `facts-labelled` 1/3 → 3/3). ### Review and tests - `developing-leaf` states the review a UI change gets in place of the `/ui-sweep` line sessions skipped: use the live change for the user's task by every route before reading its code, judge each control against its neighbours, and keep appearance in any reviewer's brief. Fresh sessions writing a reviewer brief asked for that on 3 of 3 runs with the new text and 0 of 3 with the old. - The shift watch credits a sticky box's animated inset only by its move within its block. Box-motion's ride animates sticky heads' `top` against the carry, and the watch read that as an offset; `test_send_grows_thread_around_the_words` failed at random on main too. - The stills catalogue gains states for the timeline, Threads, a pick's notice, option references, the visual review, a picked card, a settled option and an interactive sample. ### Two regressions from main, fixed here - Main's #4270 read an option's computed `display` while lf-options rendered, forcing a Firefox layout mid-render that drops a card's baseline shift, so one card's title sat 44px low. The option's consequence is now read only when On me, the command reference or a touch menu shows it (`notes/browser-support.md` records the Firefox behaviour). - Main's #4302 dropped `!important` from the print rule hiding the inline response bar, which a more specific rule then beat, so an open comment field printed. The rule that shows an open bar now applies on screen only. ### Behavior changes in tests Tests that asserted removed words or framed faces now assert their absence; the worktree column and playground region tests were adjusted for rows without a status word and a rail without labels; the trace journeys read each playhead fact from its one label; a side-list Back check that main's #3998 superseded is removed. Each commit message names the behavior it changed. Focused tests for each change, `pnpm run test:runtime` (668) and `pnpm run check` pass locally; the broad suite runs here. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
… words (#3856) On a phone, the back gesture closed nothing Leaf opened: a finger that opened the page menu, the Threads view, Draw mode or a selection had only the panel's ✕ or a tap elsewhere to leave it, and back left the page instead. Now back takes the step Escape would. In an editor whose words the user changed, it closes the editor but keeps those words. The platform turns the back gesture into a close request (HTML, "Close requests and close watchers"; CloseWatcher ships in Chrome 126 and Firefox 149, desktop and Android). `keyboard/close-requests.js` holds one CloseWatcher while Escape has a step to take, read in the repaint frame beside the touch controls, and its close takes that step through the dispatcher (`answerCloseRequest`). With nothing to take the page holds none, so back goes back in history as before. A real Escape keydown the dispatcher answers is canceled, which the spec says ends the close request before any watcher hears it, so a key still takes one step. Native modals and popovers keep their own watchers, and where one opens over the page's watcher while Escape still has a step of Leaf's to take inside it, the watcher is made again above it, so back takes that step before the layer closes, as Escape does. Safari lacks CloseWatcher and keeps today's behaviour. **Back never throws away unsent words.** In an open `lf-draft` editor or a message rewrite, Escape's step is Discard, which nothing undoes. On Android the first back hides the keyboard and the next would discard, so a stray edge swipe would lose the edit. A command row whose `run` throws away unsent words now declares `keep` (`keyboard/bindings.js`), which a close request runs in place of `run`: - `lf-draft`: an unchanged editor closes as on Discard. A changed one closes and leaves its words in the draft store. A notice says "Edit kept", and the closed box's toolbar stays in view saying "unsaved edit" beside Edit, where focus lands. Edit, Resume writing (a row in the panel's menu under a finger) or a reload opens the words again. - A message rewrite: the editor closes keeping its draft. A notice says "Edit kept", and the message's head says "unsaved edit", as it already does for words a reload or a refusal kept. Focus lands on the message's Edit control, not the reply box, whose caret would raise a phone's keyboard and cover the notice. Opening the rewrite or Resume writing finds the words. Both signs' tooltips say "The edit is kept; open it to save or discard" (the rewrite's said "save or cancel"). Escape and the Discard control still discard. A press away from an open draft saves it, as main does since #4270; back, which may be an accidental edge swipe, keeps the words unsaved instead. **A call Max may reverse: back keeps a changed edit and closes the editor.** Rejected: - Back taking no step in a changed editor, which an earlier version of this PR shipped. Chrome and Firefox let a watcher rebuilt after each close catch every back, so this held the user in the editor with only Save, Discard or a tap elsewhere to leave, and nothing on screen said so. An independent review measured 10 of 10 backs caught in a changed draft and in a changed rewrite, and 12 of 12 in plain HTML on Chromium 153, Chrome 155 and Firefox 155. - Back saving the words, as Mod+Enter does, which sends the agent a turn the user didn't ask for. `lf-draft.js` and `message-edit.js` rejected keeping words for Escape because a closed box gave no sign of holding them. Back now gives that sign beside the control that reopens them. The notice is short enough for the panel's seat at 390px; the sign beside the edit control says where to reopen the words. The rule is stated where it is owned: the row field in `bindings.js`, the close path's decision in `close-requests.js`'s header, the owners' headers, the Escape section of `keyboard/AGENTS.md`, and the row reference package authors read in `skills/leaf/references/module-input.md`. The command log names the step a close request ran: "keep" where a row's `keep` ran, not the row's own "Discard" (`answerCloseRequest`). **Every browser test now checks that back keeps words.** Android's back reaches the page only as a close watcher's `close`, which `tests/input_work_watch.js` now treats as an input. `tests/words_watch.js` counts that close as putting typed words away only where the page's storage still holds them, bare or as a JSON string, as Leaf's draft store keeps them. Escape may discard; back may not. So a widget whose Escape discards and which declares no `keep` fails the suite on back. The rule reads storage, not the event's trust, since a script's `close()` or `requestClose()` also fires a trusted close. Evidence, `uv run leaf-dev probe release-notes --touch --viewport 390x844 --journey .tmp/back-journey.py`, which taps the menu, sends a back close request, taps Threads and sends two more: - before: menu stayed open after back; the Threads view stayed open after two backs. - after: the first back closed the menu, the second the Threads view. Tests, in tests/browser/navigation/test_key_scopes.py: - `test_a_back_gesture_takes_the_step_escape_would` (390x844, touch) and `test_escape_takes_one_step_where_a_back_gesture_would_take_it` (a real Escape closes the view and leaves the selection beside it for the next back). Both fail with the painter unwired. - `test_a_back_gesture_never_throws_away_unsent_words[draft|rewrite]`: back closes an unchanged editor. Back on a changed editor closes it, shows "Edit kept" and the "unsaved edit" sign, logs "keep", lands on the Edit control and doesn't go back in history. Reopening finds the words, and Escape then discards. With the runtime that held the user in the editor, both cases fail where the editor should close. With the runtime where back discards (18b1a78), both fail and the words watch reports "typed words left the screen without a key or press". - `test_a_back_gesture_takes_a_step_inside_a_modal_before_the_modal`: with Threads open, a modal whose button declares an Escape command opens; back runs the command and leaves the modal open, the next back closes the modal, the next the view. With the watcher kept from before the modal, the first back closed the modal. In tests/browser/test_render_words_watch.py, `test_words_a_close_request_puts_away_only_words_it_keeps[close-keeps|close-discards]`: a plain page stores its words on input, and a CloseWatcher closes the box, keeping or removing them. With the watch that counted every close, the close-discards case fails (no finding); now both pass. A test-held CloseWatcher, added as an init script so it stands before the page's watchers, takes the close requests the page holds no watcher for. It counts backs that reach history. Ran: test_key_scopes.py, drafts/test_draft_editing.py, drafts/test_sending.py, threads/test_rewrites.py and test_render_words_watch.py (215 passed), the rewrite tests in test_render_threads.py, `pnpm run test:runtime` (559 passed), `node --test tests/watch_owner.test.mjs`, `pnpm run check:browser`. Screenshots at 390x844 touch and 1200x700 show the notice whole, the kept sign beside Edit in a draft and on a rewrite's head, and focus on the rewrite's Edit control after back. After merging main: the two back-gesture walk tests open Threads by the On me mark's tab (`open_threads`), since the panel's row no longer has a Threads control (#4144). `pnpm run test:runtime`, `pnpm run check`, and the back, close-request and words-watch tests pass. `test_a_press_away_from_an_open_draft_saves_it` fails the same way on main (the panel field's placeholder reads "Away c"), so it is not this change's. Not verified: a real Android device (the close request was driven by Chrome's uncanceled-Escape route, which the spec defines as the same request); Firefox's CloseWatcher in a probe; Draw mode and page search by back (both are Escape steps, so they follow, but no test drives them). How far back reaches: HTML lets a page hold one close watcher without user activation, and this design holds at most one at a time, rebuilt after each close. The review above measured Chrome and Firefox catching every back such a rebuilt watcher stands for. A ladder of steps therefore unwinds one back at a time, and back goes to history once nothing Escape would take remains, with nothing holding the user on the page. Also a call Max may reverse: the watcher is held in exported pages too, for widget Escape steps. Part of #4027. **On landing, update** #4027: drop "Android's back gesture closes nothing (the Escape ladder could answer it)" and "an `lf-draft` has no close that keeps the edit". > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 27, 2026
The margin journey clicked outside the draft before checking Save. Since #4270, that press deliberately saves and closes the editor, so the journey waited for a control whose job was already done. Remove that outside click so the journey exercises the explicit Save route while retaining its Save/Discard visibility, saved text after reload, and Page Map reaction undo assertions. This changes only the test sequence. Validation: the original 390px case failed locally waiting for Save; the corrected journey passes at 390px and 1440px, and the separate press-away saving test passes (3 passed). Closes #4371 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 28, 2026
Remove the runtime exports left behind when their callers moved: `submitLabel` after #4270 gave each field its own send label, `agentLabel` after #4325 removed the named-agent notice, and the external `liftReach` API after #4379 moved shadow measurement inside box motion. Keep the shadow helper private and delete the two unused label helpers, preserving those changes' behavior. The same audit on current main also finds `quietWord`, `ICONS`, and the `icons.js` re-export of `showAction`. Keep the first two private and remove the redundant re-export; `showAction` remains exported by its owning module for its real caller. Rebuilt the kernel: only its source hashes change; the compiled JavaScript is byte-for-byte unchanged. Validation: the existing export audit failed before the change with all six names. After the change the audit and the shipped-page browser render gate both pass (2 tests). The browser build and all 695 runtime tests also pass. Closes #4461 — automated triage Co-authored-by: leaf-agent <[email protected]>
This was referenced Oct 28, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 28, 2026
The obligation keyboard journey still expected multiline option titles after #4270 deliberately made “Another option” single-line. Update the journey to verify that Shift+Enter preserves the title and Enter adds it without line breaks, retaining the checks for Tab traversal and the obligation's numbered action context. Product behavior is unchanged. The original journey reproduced the reported concatenated-value failure on current main. The updated journey and the phone option-entry test both pass (2 tests). Earlier scheduled run 40186470627 passed this journey before #4270; run 40492069054 records the obsolete newline assertion failing on both Linux and macOS. Closes #4473 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 29, 2026
…4692) The Resume writing test scrolled to its return destination before resizing. With the keyboard-only setup introduced in #4270, Chromium's resize returned the viewport to the still-focused disclosure summary. Resume therefore had no departure to record, and Back left the document instead of returning to “Elsewhere.” Resize before establishing the reading position, and assert that destination is visible before resuming. This keeps the draft open as #4270 intended and preserves the assertions for panel clearance, caret, words and Back navigation. No product behavior changes. The original `[False]` case failed locally with the reported missing-element error. Diagnostic reads showed `scrollY: 71` before and after Resume, with the same single navigation entry. Both variants pass after the setup correction, at normal speed and with 6× CPU throttling. Closes #4670 — 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.
Four blind judges answered the same 22 pending decisions on a 390px phone, once in a claude.ai artifact and once in a Leaf page built from the same brief. Three preferred the Leaf page, but they scored its looks 4 of 7 against the artifact's 6 and named six defects in Leaf itself rather than in the page. This fixes all six, and shows each choice's consequence and recommendation on an On me card, the design Max picked from four drafts.
The six phone defects
margin-placement.js). On the judges' page, pins over words went from 3 of 23 to 0.advertisesKeys()holds, as the composer's send key already did; controls keeparia-keyshortcutsfor an attached keyboard.leaf-textmarkedaria-multiline="false"now holds one line: Return sends it from every keyboard, Shift+Return inserts nothing, and a pasted line break becomes a space (documented inmodule-input.md). The option field is the one so marked.Edited "q9-note"and its editor was namedEdit q9-note. Both now useaddressableLabel, else "the draft".onPressAway, whichwidget-api.jsnow exports (documented inmodule-input.md). Discard and Escape still discard, and a refused save reopens the draft without pulling the focus back from where the press took the user. Saving at each pause was rejected: each save is an edit delivered to the agent, which would read half-written words.--ok.On me cards say what each choice gives
An On me card answered a choice question with one button per option title, so on a phone the user picked blind unless they pressed Show. Now a choice whose option has a sentence after its title takes a full line: its name, the
recommendedtag where the page advises it, and that sentence in two lines at most. A label-only option, Another option and a suggestion's Accept and Reject stay compact buttons; a long name wraps.The widget supplies the words and the panel names no widget. A Decision command row's existing
description, which already showed under its title in a touch menu, now also shows on the card, and a new optionalrecommended: truerow field marks the advised answer;decisionControlsandchoicesOfcarry both (bindings.js,obligations/view.js,module-input.md).lf-optionsdeclares, for a card-shaped option, the sentence after its title, inline or as a following paragraph, andrecommendedwhere it wears therecommendedtag.lf-suggestiondrops its Accept/Reject descriptions, which repeated the title and section heading against the rulebindings.jsstates for descriptions. Rejected: the whole option (its tags and picture let one choice fill a phone screen) and wrapped titles alone.Testing
pnpm run test:runtime,pnpm run check, and the browser tests that cover each change: the new phone options and On me card tests, press-away saving, resume writing, the On me, floating panel and command reference files, and the tests whose draft editor locators changed. The six fixes were checked on a copy of the judges' page in WebKit with emulated touch at 390×844, and the On me cards on a re-vendored decisions page at 390px (light and dark) and in Firefox at 1440px. Not run on a real phone.