Repository navigation
Conversation
Dictation was a microphone button in the comment composer that filled the box from the browser's SpeechRecognition. It stood in Send's seat while the box was empty, so every layout rule that seats Send, the passage composer's Other responses and the diff reply's resting press had to count a second control. Removes composing/dictation.js, the `text.dictate` command and its microphone control, the loading, recording and failure states in input.js, `edit()` in text-field.js (its only caller), the Window typings for the recognizer, the microphone icon and `dictate` action, the control's CSS in response.css, floating-panel.css and the diff widget's shadow sheet, the plan-panel-dictating still, the feature gallery's dictation section, the notes entry on dictation, and the tests that exercised it. Send now shows in an empty box in every browser, as it already did in Firefox. The panel's Tab-from-the-field and row-line tests and the diff reply's resting-press tests now assert Send where they asserted the microphone; the diff reply's resting press hides Send, as it hid the microphone. Evidence: `text.dictate` ran 0 times in the 566 browser sessions of the month to 2026-11-14, while the composer's Send ran 645 times and `c` 614. The button is offered only where the browser has SpeechRecognition, which Firefox, the browser the maintainer reads Leaf in, does not ship. The module has had no change of its own since 2026-10-11. Users can no longer dictate a comment by voice in Chromium or WebKit.
…nly dictation used The previous commit retargeted the diff conversation's resting-Reply rule from the microphone to Send, which hid Send's arrow in Firefox, where it was shown beside the resting hint. The rule is deleted instead, so the resting Reply shows Send in both engines. Also removes the unreachable "Send hidden while focused" branch in input.js and a comment about closing that described dictation, and the disc's `negative` tone and `aria-pressed` branches in controls.css with their sentences in control-faces.js, whose only user was the microphone.
Owner
Author
|
Closing: the maintainer chose to keep dictation. The branch stays for reference, and the measured size in the description (32 files, net −886 lines) stands as what the removal would cost and save.
|
max-sixty
added a commit
that referenced
this pull request
Nov 22, 2026
Adds `leaf-dev logs usage`, which reads the page directories under the state home and prints what they used: the pages holding each registered widget, the packages their layer records select, each command a person ran with its sessions and pages, and each `leaf` command with the runs agents made against a page. "Regular maintenance" in the root `AGENTS.md` asks who would notice a mechanism gone; until now the only evidence was whether an example or a test named it, and the record of real use in every page directory went unread. It sits in the `logs` group with the other commands that read real pages' logs, and reads `--since` as they do, refusing a time without its offset. `/developing-leaf`'s `references/removals.md`, which a session opens before proposing a removal, names the command and says what its count is evidence for: a feature nothing here used is a candidate to test, and the count alone decides no removal. The root `AGENTS.md` is unchanged. On 2026-11-21 it read 462 page directories and 506 sessions. No page held `lf-file-editor`, `lf-file-tree`, `lf-deck`, `lf-visual-review`, `lf-dial` or `lf-call-diff`. To weigh: it counts one machine's use. Max kept the three features whose removal first cited it (#5972, #5974, #5976, all closed), on the ground that his own use is not specific enough, and the examples built since for three of those widgets are the test he asked for instead. Two shortcuts are deliberate: a session counts as a person unless its browser calls itself headless, and command ids minted per element (`option.choose-<id>`) fold into one row where ten or more share a stem. It has no tests, and `dev/tests` now runs daily, so a later change to the logs' shape would break it unnoticed. Requested as part of the "crust and big simplifications" run. Checked with `pre-commit` on the changed files and by running it against the state home, with and without a valid `--since`. > _This was written by Claude Code on behalf of max-sixty_
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.
Removes dictation, the microphone button that filled the comment box from the browser's speech recognition:
dictation.js, its state incomposing/input.js,cancelDictationthrough the reply row and its views, the disc'snegativetone and pressed state that only the microphone wore, and their tests. Nobody reached it:text.dictateran 0 times in 593 browser sessions over the month to 2026-11-14, while Send ran 645 times (uv run leaf-dev usage, #5970), and Firefox, which has no speech recognition, never offered the button.32 files, +73 −959: product code −391 net, tests −431. The sweep had read 420 lines off the code; the tests doubled it.
What changes on screen, checked with
leaf-dev stillson four composer states in Chromium and Firefox: Firefox shows no difference. Chromium now looks as Firefox always has in two places. An empty reply box shows Send's arrow where the microphone stood, and a diff conversation's resting Reply shows Send's arrow beside its hint, where a rule that hid the microphone there had left the hint alone. The alternative for the second was to hide Send there in both engines, which would have changed the row in the browser you read in. The run's page has both pairs.A Codex review of the first commit found five things. The second commit fixes three: the resting Reply above, an unreachable focus repair, and the orphaned disc states. One is the first change above, Send in an empty box. One stays:
evals/assessment-surfaces-pending-decisions/case.yamlstill says "dictation" inside a recorded conversation it replays.Requested as part of the "crust and big simplifications" run; removing a feature is your call. Checks:
pre-commit run -a,pnpm run check, 123 composer, reply, panel and diff browser tests by node id, and the layer and product-page model tests. CI'stestjob passes; on an earlier pushtest_cancelling_the_background_registration_never_wakes_the_session, a hook test this change doesn't reach, hit its 120 s subprocess deadline once.