Repository navigation
Draw Discard and Undo as one U-turn, and add a control legibility eval - #4856
Merged
Merged
Conversation
Discard throws an editor's unsaved words away, in a draft's toolbar and in a message rewrite. It wore Close's ✕, though Close keeps the words: closing a card leaves an open rewrite's words in its draft, and every other way out of a draft saves it. In a rewrite, Discard's ✕ stood two seats from the card's Close ✕. Discard now shows Undo's symbol. This reverses #4514, which gave the rewrite's Discard the ✕ because the undo arrow was "only related to discarding"; the user chose undo over ✕ for a reaction's removal on 23 October for the same reading. Undo's symbol was a left arrow whose tail turns down, which is Lucide's and VS Code's reply arrow and reads as Reply beside a message. It is now the arc Material's and Lucide's undo draw, so On me's Undo, a reaction's Undo and a drawing's Undo last stroke change with Discard. Behavior change: `ACTIONS.discard` shows the `undo` icon, which draws the arc; `action-offers.test.mjs` asserts Discard's symbol is `undo`. Co-authored-by: Claude Opus 5.5 <[email protected]>
The user chose the U-turn Apple's and Lucide's undo draw over Material's arc. It stays one entry, `ICONS.undo`, which both `ACTIONS.undo` and `ACTIONS.discard` name, so every Undo and Discard press draws it: a draft's and a rewrite's Discard, On me's Undo, a reaction's Undo and a drawing's Undo last stroke. Co-authored-by: Claude Opus 5.5 <[email protected]>
…h only on failure `evals/control-legibility/` asks what each item in a view does, to someone who has only seen it. `views.py`, a `leaf-dev probe` journey, draws a view from this working tree and numbers its controls; a reader model gets the picture and a line about the app and says what each numbered control does; a judge compares each reading with what the control does and lists every control read as another action or not understood. `pnpm run eval:legibility` captures and runs it through Promptfoo on the host's Claude login. Its first view is every icon an action shows, drawn alone through `offerAction`. `actions.json` says what each action does and must name exactly the actions `ACTIONS` holds, so a new action stops the capture until it has a line. The README says how the same parts grow to controls in place, word items, collisions within a view, more readers and a check against the merge base. After the slash fix, two samples each read 28 of 32 symbols as one of their actions, the U-turn among them. In all five samples Fit read as full screen or was unclear, and Arrange as an outline or unclear; the find bar's chevrons, drawn without the find bar, read as expand and collapse. The microphone drew its failure slash wherever a press didn't carry the dictation button's class, so the sheet showed a muted microphone. The slash now hides on any microphone not on a failed press; the dictation button at rest and on failure looks as before. Co-authored-by: Claude Opus 5.5 <[email protected]>
leaf-agent
approved these changes
Oct 31, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The focused dictation journey fails at its vertical alignment assertion (4px) on both this PR and current main (2b901d446d3e710780983734c35f3c777fdf865b). This is inherited and does not withhold approval under the repository’s test policy; the runtime suite passed 713/713.
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.
Discard throws an editor's unsaved words away, in a draft's toolbar and in a message rewrite. It wore Close's ✕, though Close keeps the words: closing a card leaves an open rewrite's words in its draft, and every other way out of a draft saves it. In a rewrite, Discard's ✕ stood two seats from the card's own Close ✕. Discard now shows Undo's symbol, which reverses #4514's ✕ for the rewrite; the user chose undo over ✕ for a reaction's removal on 23 October for the same reading.
Undo's symbol was a left arrow whose tail turns down, which is Lucide's and VS Code's reply arrow, so beside a message it could read as Reply. It is now the U-turn Apple's and Lucide's undo draw, the user's pick over Material's arc on a decision page that showed five candidates in the draft toolbar, the rewrite head and On me.
ACTIONS.undoandACTIONS.discardboth nameICONS.undo, the path's only copy, so every Undo and Discard press draws it: the draft's and rewrite's Discard, On me's Undo, a reaction's Undo and a drawing's Undo last stroke.Control legibility eval
evals/control-legibility/asks what each item in a view does, to someone who has only seen it.views.py, aleaf-dev probejourney, draws a view from the working tree and numbers its controls. A reader model gets only the picture and a line about the app and says what each numbered control does. A judge compares each reading with what the control does, and the result lists each control read as another action or not understood.pnpm run eval:legibilitycaptures the views and runs them through Promptfoo on the host's Claude login. The README says how the same parts would cover controls in place, word items, collisions within a view, more readers and a check against the merge base.Its first view is every icon an action shows, drawn alone through
offerAction.actions.jsonsays what each action does. It must name exactly the actionsACTIONSholds, so the capture refuses to run until a new action has its line. In five samples the U-turn read as Undo or Discard every time. Fit read as full screen in four samples and as unclear in one. Arrange read as an outline or as unclear in four. The find bar's chevrons, drawn without the find bar, read as expand and collapse.The microphone drew its failure slash wherever a press lacked the dictation button's class, so the sheet showed a muted microphone. The slash now hides on any microphone not on a failed press. The dictation button looks the same as before, both at rest and on failure (checked with
leaf-dev probe).Behavior changes:
ACTIONS.discardshows theundoicon, which now draws a U-turn;action-offers.test.mjsasserts Discard's symbol isundo. Runtime tests pass (713/713 before the merge with main).