Skip to content

Offer no Send in an empty comment box where the browser cannot dictate - #3287

Closed
max-sixty wants to merge 2 commits into
mainfrom
fp-empty-field-no-send
Closed

max-sixty wants to merge 2 commits into
mainfrom
fp-empty-field-no-send

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A comment box's one main press is Dictate while it is empty and Send once it holds something to send. Where the browser has no speech recognition, as in Firefox, an empty box showed a grey Send that sent nothing, and Tab from the empty panel field stopped on it. Now that seat stands empty: Send is hidden, so it leaves the tab order and Tab goes on to the row's counts, and it shows with the first word, or an attached image or drawing. The rule lives in wireInput's paintSubmitVisibility, so the panel field, a passage's comment box, replies and a seat's first message all follow it. The press floats over room the words already keep, so nothing moves when it appears. A rewrite's Save and an option's Add keep their own presses; browsers that dictate are unchanged.

Picked as fix-send on the floating-panel review page.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits October 20, 2026 00:38
A comment box's one main press is Dictate while it is empty and Send once it
holds something to send. Where the browser has no speech recognition, as in
Firefox, an empty box showed a grey Send that sent nothing, and Tab from the
empty panel field stopped on it. Now that seat stands empty: Send is hidden,
so it leaves the tab order and Tab goes on to the row's counts, and it shows
with the first word, or an attached image or drawing. The rule lives in
wireInput's paintSubmitVisibility, so the panel field, a passage's comment
box, replies and a seat's first message all follow it. The press floats over
room the words already keep, so nothing moves when it appears. A rewrite's
Save and an option's Add keep their own presses; browsers that dictate are
unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner Author

we should have a gray send button if there's no dictate

but is there reallyno dictate in Firefox??

@leaf-agent

Copy link
Copy Markdown
Collaborator

Yes for the Firefox build we test: Firefox 155 reports both SpeechRecognition and webkitSpeechRecognition as undefined. Mozilla has since landed speech recognition work targeted at Firefox 157, so this is a browser capability check, not a permanent Firefox rule. Mozilla's tracking bug has the release details.

Agreed on the control: when Dictate is unavailable, an empty comment field should retain the grey, unavailable Send button. The code before this PR already does that: without a microphone button, Send remains in the field and its aria-disabled state follows whether the draft can send. This PR hides it, so I'll close it and keep the existing behavior.

@max-sixty max-sixty closed this Oct 20, 2026
max-sixty added a commit that referenced this pull request Nov 23, 2026
…der that the user chose the greyed Send (#6706)

Four small corrections that a survey of the shipped instructions turned
up.

- `page-checkpoints.md`, "Ending", listed two of the five conditions on
which `leaf page close` refuses. It now gives the command's own list,
from `leaf page close --help`: an unread update, worker's report or page
error, an update that still owes its answer, or an open to-do.
- `module-authoring.md` gave `mountSample` a signature without `source`,
which `browser/runtime/sample.js` takes in place of `template`. It now
names it and points to `live-samples.md`, "Generated samples".
- `module-state.md` said Leaf doesn't set the property of an `lf-diff`
showing its inline patch. `ElementData.initialize()` in
`browser/runtime/element-data.js` sets it once, to the text of the
widget's `<pre>`, as `package-data.md` and `module-reading.md` already
say.
- The header of `browser/runtime/composing/input.js` now records one of
Max's calls. Where the browser can't dictate, an empty comment box keeps
Send, grey and unavailable; he chose that on #3287 over a box that shows
no Send until it holds words. A fresh agent given the root guidance and
that choice ships the hidden Send in three answers of three, so the
decision needs to stand where the next change to the box reads it.

**To weigh.** #5981, an open draft, edits the paragraph after the
`module-state.md` sentence and leaves the sentence itself, so whichever
lands second may have a one-line conflict there.

No behaviour changes. The three reference edits correct facts, so none
was scored.

Asked for by Max. `pre-commit` passes.

> _This was written by Claude Code on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants