Skip to content

[Bug]: Enter during dictation does nothing when focus is on the chat timeline #44325

Done

Description

@BugByter123

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a thread that has messages.
  2. Click a message, or empty space in the chat. Focus moves to the timeline (.messages-timeline-scroll) or the Conversation region, not the composer.
  3. Start dictation with the shortcut.
  4. Speak, then press Enter while still recording.

Expected behavior

Enter stops dictation and sends the transcript, the same as when focus is on the page body.

Actual behavior

Nothing happens. Recording keeps going. Enter is ignored until you click the composer or stop dictation with the shortcut first.

useDictationSubmissionShortcut only takes Enter when the target is document.body or inside the composer editor. The timeline and the Conversation region are focusable, so Enter from them is dropped.

Impact

Minor bug or occasional failure

Version or commit

main at 57561ba. Also on v0.1.8 desktop.

Environment

Linux. Web (Chromium) and desktop (Electron dev build). Local transcription (Parakeet), toggle and auto shortcut modes.

Logs or stack traces

Driven with Playwright and a fake microphone playing a speech clip. Sends counted from outgoing orchestration.dispatchCommand frames.

Focus when Enter is pressed Web, main Desktop, main
Timeline (clicked a message) 0 of 8 sent, still recording 0 of 3 sent, still recording
Conversation region (clicked empty chat) 0 of 1 sent 0 of 1 sent
Page body sent sent

This differs from #44285, which was closed as not reproducible. That PR was about focus after dictation ends, and I could not reproduce that on main either.

Workaround

Stop dictation with the shortcut first, then press Enter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions