Skip to content

[macOS][Global Dictation] Late composer acknowledgement starts both composer and global dictation #37623

Open

Description

@danielha

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

Codex Desktop 26.730.61639 (6234)

What subscription do you have?

ChatGPT subscription; exact tier is not relevant to this local shortcut-routing bug.

What platform is your computer?

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

What issue are you seeing?

The configured global dictation shortcut can intermittently start both composer dictation and the global dictation fallback from a single keypress.

When this happens, both sessions record the same speech. Stopping both sessions inserts two copies of the transcription into the composer.

The same routing problem also appears in a milder form where the first shortcut press seems to do nothing and a second press is required.

Current shortcut state:

globalDictationToggle = Command+Shift+D
composer.startDictation = unbound
globalDictationHold = unbound

Inspection of the packaged app shows this sequence:

  1. The global controller sends global-dictation-in-app-start to the focused renderer.
  2. It waits only 150 ms for global-dictation-in-app-started.
  3. If the acknowledgement does not arrive within that window, it starts the global fallback via showAndStart.
  4. A cold, busy, mounting, or focus-transitioning composer can start dictation but acknowledge slightly after the 150 ms deadline.
  5. The late composer start is not cancelled or reconciled with the fallback, leaving two active dictation sessions.

The relevant packaged-controller symbols are tryStartInAppSession, waitForInAppDictationStart, and the 150 ms timeout.

This is not primarily microphone startup latency. Local CoreAudio traces showed the pinned built-in microphone beginning capture in roughly 20 ms; the failure occurs in ownership/acknowledgement between the global controller and composer.

What steps can reproduce the bug?

  1. In Settings → Keyboard Shortcuts, bind Toggle Dictation / globalDictationToggle to Command+Shift+D.
  2. Leave the app-scoped composer dictation command and global hold command unbound.
  3. Open or switch to a Codex task, especially a newly opened or busy task where the composer is mounting or changing focus.
  4. Focus the composer and press Command+Shift+D.
  5. Repeat across new tasks or during composer focus transitions.

Intermittent observed outcomes:

  • The first press appears ineffective and the second press starts dictation.
  • Both composer dictation and the global dictation UI start from one press.
  • After speaking and stopping both sessions, the same transcription is inserted twice.

What is the expected behavior?

A single shortcut press must create at most one dictation session.

If the composer starts after the acknowledgement deadline, the global controller should reconcile that late success and cancel the fallback, or cancel the late composer session. More robust options would be to:

  • extend or retry the in-app acknowledgement window;
  • queue the request until the focused composer is ready;
  • use a single ownership token/state machine for composer and fallback startup;
  • guarantee mutual exclusion between composer and global recording sessions.

Additional information

Restarting Codex can temporarily reduce broadly stuck behavior by rebuilding hotkey and renderer state, but it does not eliminate this per-composer race.

A faster computer may reduce frequency but cannot guarantee correctness because the fixed deadline also races renderer lifecycle and focus eligibility.

Related issues:

Activity

  1. added
    bug
    app
    on Aug 8, 2026
  2. denikatsman commented on Sep 7, 2026

    @denikatsman

    Confirmed on ChatGPT/Codex 26.901.51231, macOS 26.6.2 (25G83), Apple Silicon, built-in microphone. Global toggle: Option-Command-L; global hold shortcut unbound.

    A single invocation produced global and composer recordings starting 222 ms apart. Stopping the global recording inserted the correct transcript, but the composer continued recording for 16.55 seconds, until cancelled. This explains the visible symptom of transcription completing while the waveform and Stop button remain active.

    A read-only inspection of this installed build still finds the 150 ms in-app acknowledgement deadline and no cancellation of the timed-out composer request. An isolated harness using the installed routing methods, with windows/audio replaced by fixtures, gives:

    • 20 ms renderer response: one composer recorder; Stop leaves none.
    • 400 ms renderer response: global fallback plus late composer recorder; Stop leaves the composer active.
    • Outside-app invocation: one global recorder; Stop leaves none.

    The harness confirms the routing defect; acknowledgement latency during the original incident was not measured separately. The installed application was not modified.

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

    appbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions