Skip to content

App-scoped composer dictation shortcut should support tap-to-toggle and hold-to-talk #32249

Open

Description

@danielha

What version of the Codex App are you using (From "About Codex" dialog)?

ChatGPT/Codex app 26.707.31428 (CFBundleVersion 5059)

What subscription do you have?

Not relevant to this issue / not provided.

What platform is your computer?

macOS 26.5.2 (25F84), Apple Silicon (arm64)

What issue are you seeing?

Every app update, I have to reapply a local patch to restore natural keyboard behavior for native dictation in the composer.

I want one app-scoped composer shortcut, currently Command+Shift+D, to behave like this:

  • Tap once: start dictation and leave it running.
  • Tap again: stop dictation and insert the transcript.
  • Press and hold: start dictation immediately, then stop and insert on release.

I do not want to use the OS-global dictation feature. I only want this shortcut active while the ChatGPT/Codex composer is focused.

The current app separates these into different command surfaces:

  • composer.startDictation: app-scoped, but currently behaves as hold-to-dictate because key-up always stops the recording.
  • globalDictationToggle: global toggle.
  • globalDictationHold: global hold-to-dictate.

That means the only supported way to get both toggle and hold behavior requires two global shortcuts. It also brings in global hotkey registration and the floating/global dictation UI, which are unnecessary for composer-only dictation.

I believe the composer shortcut behaved as a toggle in an earlier build. The regression from toggle to hold-only is also reported in #30208.

What steps can reproduce the bug?

  1. In Settings -> Keyboard Shortcuts, bind Start Dictation / composer.startDictation to Command+Shift+D.
  2. Leave the global Toggle Dictation and Hold to Dictate shortcuts disabled.
  3. Focus the composer.
  4. Quickly tap Command+Shift+D.

Actual behavior:

  • Dictation starts on key-down.
  • Dictation stops immediately on key-up.
  • A quick tap therefore cannot leave dictation running.
  • Pressing the shortcut while dictation is already active does not provide an app-scoped toggle-off action.

What is the expected behavior?

The app-scoped composer shortcut should support the common hybrid interaction with one configurable key combination:

  • A short tap toggles dictation on or off.
  • A longer press acts as push-to-talk and stops on release.
  • The shortcut remains app-scoped and does not register an OS-global listener or show the global dictation window.

An explicit mode setting for Toggle, Hold, or Hybrid would also solve the underlying problem, but hybrid behavior is especially ergonomic because it supports short and long dictation with one shortcut.

Additional technical information

The packaged renderer already receives both onKeyDown and onKeyUp for the app-scoped composer shortcut. In the current bundle, the handler roughly does this:

  1. On key-down, start dictation and mark the key as active.
  2. On key-up, if the key was active, stop dictation and insert the transcript.
  3. If dictation is already active, the key-down path exits instead of toggling it off.

A small local renderer patch proves the desired behavior can be implemented within the existing app-scoped path:

  • Record the key-down timestamp.
  • If dictation is already active on key-down, stop it as a toggle action.
  • Otherwise start dictation immediately.
  • On key-up, stop only when the press duration exceeds a threshold (currently 350 ms).
  • For a shorter tap, leave dictation running.

This patch only changes the app-scoped renderer hotkey handler. It does not enable the global dictation commands. My local state is:

composer.startDictation = Command+Shift+D
globalDictationToggle = disabled
globalDictationHold = disabled
global-dictation-keep-visible = false

The workaround modifies app.asar, invalidates the sealed-resource signature, and is replaced by every app update, so it is not a sustainable user solution. The patch has had to be adapted repeatedly as minified asset names change, while the underlying handler behavior remains the same.

Related issues:

Activity

  1. added
    enhancement
    app
    on Jul 10, 2026
  2. Kl-11 commented on Aug 18, 2026

    @Kl-11

    Confirming this remains reproducible in the current macOS desktop app 26.814.41407 (build 6720).

    The app-scoped Dictation command still behaves only as push-to-talk: recording begins on key-down and stops on key-up. A short tap therefore cannot leave dictation running, and remapping the command changes the key combination but not its interaction mode.

    A supported composer-scoped option is still needed:

    • Toggle: tap once to start; tap again to stop and insert
    • Hold: record only while the shortcut is held
    • Hybrid: a short tap toggles; a long press behaves as push-to-talk

    The important requirement is that Toggle works directly in the focused chat composer and does not require the separate OS-global dictation route. The official command reference lists Dictation and keybinding customization but exposes no interaction-mode control.

    This is more than a shortcut-registration problem: the supported app-scoped command lacks a toggle action.

  3. tfmoraes123 commented on Aug 29, 2026

    @tfmoraes123

    One additional interaction would make this match the ChatGPT composer behavior even better:

    While app-scoped dictation is active, pressing Enter should stop recording and insert the transcript.

    My preferred behavior would be:

    • Press the configured app-scoped shortcut once (for example, Ctrl+Shift+T) → start dictation and keep recording.
    • Press the same shortcut again → stop and transcribe.
    • Or, while recording, press Enter → stop and transcribe.
    • Outside the Codex composer, the shortcut should do nothing — no global hotkey registration and no global dictation window.

    This would give Codex the same very natural voice-input workflow available in ChatGPT while keeping dictation strictly scoped to the Codex composer.

  4. kumestra commented on Nov 19, 2026

    @kumestra

    I can reproduce this inconsistency in the ChatGPT Windows desktop app.

    In Chat mode:

    1. Press Ctrl+Shift+D to start dictation.
    2. Speak a message.
    3. Press Enter.
    4. Dictation stops and the transcribed text appears in the prompt composer.

    In Codex mode:

    1. Press Ctrl+Shift+D to start dictation.
    2. Speak a message.
    3. Press Enter.
    4. Nothing happens. I have to manually click the UI button to stop dictation and insert the transcript.

    Expected behavior: Pressing Enter during active dictation in Codex should stop recording and insert the transcript into the prompt composer, matching Chat mode.

    This breaks a keyboard-only workflow and creates an unnecessary inconsistency between Chat and Codex within the same Windows desktop app.

    Please consider supporting this behavior in Codex as well.

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

    appenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions