Skip to content

[macOS] Switching conversations with Audio visualizer enabled breaks voice input across apps #42998

Open

Description

@LeonLiuMercaso

Switching conversations with Audio visualizer enabled repeatedly prevents voice input from starting in Codex and in third-party input methods on macOS.

Codex App version and platform

  • Codex desktop app version 26.901.41123, build 7942 (from the installed app's Info.plist; bundle identifier com.openai.codex).
  • macOS 15.7.2, Apple Silicon / arm64, MacBook Air.
  • Default input: built-in MacBook Air microphone, mono, 48 kHz.

Steps to reproduce and observed behavior

  1. With Audio visualizer enabled, switch between Codex conversations/tasks.
  2. Try voice input. Codex voice input and the WeChat and Doubao input methods can become unable to start recording, including outside Codex. The input-method UI stays at 准备录音中 (Preparing to record).
  3. Terminate only the app's system-audio-spectrum helper, leaving Codex and coreaudiod running. Voice input recovered during testing.
  4. Switch conversations again. A new system-audio-spectrum process appeared and voice input failed again. This sequence was observed more than once.
  5. Disable Settings → General → Toys → Audio visualizer. The user then reported that voice input continued working when switching conversations during the subsequent test.

Troubleshooting and limits of the evidence

  • Restarting coreaudiod temporarily restored voice input, but the problem returned while the visualizer remained enabled.
  • iFlyrec and Oray virtual audio components were temporarily removed from the HAL directory and the audio service restarted. The problem still recurred on conversation switching. After disabling the visualizer, those components were restored and reloaded; voice input remained functional during the subsequent test. Their removal is therefore not required for the observed workaround.
  • Earlier system logs included HALS_IOContext_Legacy_Impl::StartIOThread: got an error from starting the IO thread, Error: 0x3C and Initialize failed - thread hasBeenStopped: 1 and shouldExit: 1. These errors were not consistently present on later reproductions and do not establish the root cause.
  • Core Audio snapshots did not report an exclusive/hog owner for the audio devices. We have not established that the helper exclusively locks the microphone or identified the exact underlying audio-session failure.

The main additional finding is that conversation switching appears to retrigger the issue and it can affect third-party voice input system-wide, not just Codex Dictation. Disabling Audio visualizer is the working workaround in this environment so far.

No private conversations, recordings, account details, or full logs are included.

Expected behavior

Switching Codex conversations should not interrupt or prevent microphone recording in Codex or other applications. Audio visualizer should coexist with voice input and release its capture resources correctly.

Subscription

Not provided.

Related issue

Related to #42229. This report documents conversation switching as a repeated trigger, effects on third-party input methods, and a different app/macOS version.

Activity

  1. added
    bug
    app
    on Sep 5, 2026
  2. github-actions commented on Sep 5, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. duroey commented on Sep 6, 2026

    @duroey

    I can confirm a similar issue on macOS 26.6.2 with ChatGPT/Codex desktop 26.901.41600 (build 7982).

    With Audio visualizer enabled, other voice input methods intermittently take tens of seconds or several minutes to start recording. This also happens with the built-in microphone, so it is not limited to an external device.

    Diagnostics captured CoreAudio waiting in StartTapOutput(), with repeated roughly 14-second startup failures. After disabling Settings → General → Toys → Audio visualizer, voice input recovered; a subsequent microphone startup took about 48 ms instead of minutes.

    This strongly implicates the visualizer's interaction with CoreAudio, although the exact underlying defect remains unconfirmed. A decorative audio feature should not block microphone recording in other applications; please investigate its audio-resource lifecycle and fail-safe cleanup.

  4. musterkill007 commented on Sep 9, 2026

    @musterkill007

    Confirmed on ChatGPT/Codex desktop 26.901.51231, macOS 26.6.2 (25G83), using the built-in MacBook Air microphone.

    Working workaround: turn off Settings → General → Toys → Audio visualizer. After disabling it, dictation worked again in my immediate test. Long-term recurrence has not yet been tested.

    Observed during troubleshooting:

    • Dictation initially worked, then entered the recording UI without a waveform or transcription. Switching conversations could reproduce the failure, including in a conversation that had just worked. Other applications' microphone input was also affected during the incident.
    • Restarting the Codex audio-service subprocess gave partial/temporary relief. Fully restarting the desktop app did not resolve the issue.
    • Restarting coreaudiod temporarily allowed two consecutive successful transcriptions, but switching conversations brought the failure back.
    • Stopping only system-audio-spectrum, while leaving the desktop app and coreaudiod running, restored dictation in the current conversation. After switching conversations, a new helper process appeared and dictation failed again.
    • Disabling Audio visualizer through Settings then restored dictation.

    Two failure sequences in the local system logs showed the helper requesting system audio capture and a CoreAudio MultiTap device being registered before microphone startup subsequently failed. Repeated failures took approximately 14 seconds and included:

    HALS_IOContext_Legacy_Impl::StartIOThread: got an error from starting the IO thread, Error: 0x3C
    Initialize failed - thread hasBeenStopped: 1 and shouldExit: 1
    

    The first successful recording also had a normal StopIO and cleanup record, so the evidence does not establish that dictation simply never released the microphone. The stop-helper/relaunch behavior strongly implicates the visualizer's interaction with audio capture, but the exact defect remains unconfirmed. Closing only the helper is temporary because it can be launched again; disabling the setting is the effective workaround observed here.

  5. SiavashShams commented on Sep 10, 2026

    @SiavashShams

    I reproduced this on ChatGPT/Codex 26.903.61454 (build 8378), macOS 26.6.2, using the built-in microphone. I found a specific configuration worth testing in the native visualizer helper.

    The shipped SystemAudioSpectrum.start() creates a private aggregate with kAudioAggregateDeviceTapAutoStartKey = true, then calls AudioDeviceStart. Apple's SDK says a nonzero value makes that start wait until a tapped process receives its first audio.

    That matches the timing I captured: microphone initialization began immediately, but hardware I/O started about 12.3 seconds later, just after speaker output and the visualizer tap became active. In a later stall, a process sample caught Codex's audio service blocked in AudioDeviceStart / HALB_IOThread::StartAndWaitForState, alongside repeated CoreAudio StartIOThread errors (0x3C). After stopping only system-audio-spectrum, microphone startup completed on the next retry. I did not restart Codex or coreaudiod for that intervention.

    Could you test setting kAudioAggregateDeviceTapAutoStartKey to false in the native helper? This would remove the documented wait for playback. It is a proposed fix, not yet a validated hardware A/B result. Please test starting in silence, starting playback later, switching conversations, and recording from another app. The existing stop routine already includes IO stop, IOProc destruction, aggregate destruction, and tap destruction, so I would not describe this as simply missing cleanup.

    I prepared a source-level diff and confirmed that the configuration typechecks, but I couldn't prepare an upstream implementation PR because the native desktop source is not in the public repository. Happy to provide the small diff if useful. Related: #42229.

  6. myfunc commented on Sep 15, 2026

    @myfunc

    Sometimes, in some chats in Codex, I noticed that voice doesn't work and my mic cannot be initialized. When I press the mic icon, it loads for about 15 seconds, then looks like it started, but the mic doesn't respond.

    I also have Wispr Flow. When this bug is reproduced in Codex, the same bug happens with Wispr Flow on that very page: my mic doesn't work there either. So Codex takes exclusive control of my mic.

    I realized the CLI is different under the hood, and the harness itself is not covering this case. Just FYI, guys.


    Details

    The statements about exclusive microphone ownership and different CLI versions above describe my interpretation of the symptoms. They are not established root causes; the diagnostic findings below qualify them.

    Observed sequence

    This happened intermittently over the last week. One older task repeatedly showed the problem, while newly opened chats did not show it in my observations. Starting Voice could also make the UI appear hung.

    1. Open the affected existing task.
    2. Press the microphone / Voice control.
    3. Wait about 15 seconds. The UI appears to start, but receives no usable microphone input.
    4. Try Wispr Flow while that affected Codex page is active. Its microphone input also fails.
    5. Compare with a new chat, where I have not observed the same failure.

    This is the observed sequence, not a deterministic minimal reproducer. It has not been established whether Wispr Flow also fails outside Codex during this incident.

    Environment

    • ChatGPT/Codex desktop: 26.908.70816, build 9275 (installed application bundle metadata).
    • macOS: 26.3 (25D125), Apple Silicon.
    • Input: built-in MacBook Pro microphone, system default, mono, 48 kHz.
    • Wispr Flow: 1.6.827.
    • Installed bundled CLI: 0.154.0-alpha.6.2.

    Diagnostics

    This closely matches #42998 and #44596. A further check of the macOS unified log found eight distinct system-audio-spectrum PIDs during the incident window, identified as com.openai.codex.system-audio-spectrum. For example, helper initialization was logged at 09:17:55 and 09:23:37 PDT, followed by microphone-start errors at 09:18:10 and 09:23:52. This is correlation, not a controlled causal test.

    Local diagnostics on September 15 found repeated CoreAudio microphone-start failures approximately 14 seconds apart:

    HALS_IOContext_Legacy_Impl::StartIOThread: got an error from starting the IO thread, Error: 0x3C
    Initialize failed - thread hasBeenStopped: 1 and shouldExit: 1
    

    The corresponding microphone-start / audio power-assertion records identified a process verified through its command line as Codex's audio.mojom.AudioService utility. This establishes involvement of Codex's audio service, not an exclusive/hog lock or the precise cause of the startup failure.

    Only that verified audio-service subprocess was terminated with SIGTERM. The desktop app automatically recreated it, while the main app and app-server remained running. No matching CoreAudio errors appeared during the following approximately 100-second observation window. Successful Voice and Wispr transcription after this intervention has not yet been confirmed, so this is not a validated fix.

    The older task's creation metadata records CLI 0.153.4; a new task records 0.154.0-alpha.6.2. The old task was successfully resumed by the current desktop app using its shared bundled app-server. The metadata difference therefore does not establish that each chat runs a separate old/new executable. No causal link between CLI version metadata and microphone failure was found.

    The Audio visualizer setting itself was not inspected, and disabling it has not yet been tested in this setup. The helper was absent from a later process snapshot, but the historical log confirms it was running during the incident. A shared root cause remains unconfirmed.

    Please investigate why microphone startup can stall in particular existing conversations and affect third-party dictation, and ensure a failed startup releases audio resources and leaves a recoverable UI.

    No recordings, private conversation content, task IDs, account details, or full logs are attached.

  7. ivanxia1988 commented on Sep 16, 2026

    @ivanxia1988

    I can reproduce this on macOS 26.6.2 (25G83), Apple Silicon, with Codex desktop 26.908.70816 (build 9275).

    Reproduction observed

    1. Open one particular existing Codex task/conversation.
    2. Attempt voice input, using either the built-in Codex dictation or a third-party dictation tool.
    3. Voice input stalls.
    4. After the stall begins, microphone input also stops working in other applications system-wide.
    5. Run sudo killall coreaudiod.
    6. Microphone input recovers immediately.
    7. Return to the same affected Codex conversation and attempt voice input again; the system-wide failure can recur.
    8. Other Codex conversations do not trigger the problem in the same way.

    The Codex system-audio-spectrum helper is currently running in this environment, which is consistent with the suspected Audio visualizer interaction described in this issue. I have not yet performed a controlled A/B test with Audio visualizer disabled, so I am reporting that as correlation rather than a confirmed cause.

    The conversation content, recordings, task ID, account details, and full logs are not included.

    This looks like a conversation-specific trigger in Codex that can leave Core Audio input unusable for the whole system until coreaudiod is restarted.

  8. arthurbnhm commented on Sep 16, 2026

    @arthurbnhm

    Additional reproduction: disabling Audio visualizer was followed by recovery of microphone startup in Monologue, without restarting Core Audio.

    Environment: Codex 26.908.70816, macOS 26.6 (25G72), Monologue 1.5.0, built-in MacBook Pro microphone at 48 kHz.

    Microphone activation intermittently stalls in both Codex and Monologue. Restarting coreaudiod provided only temporary relief; the issue returned the next morning.

    During the recurrence, the Codex system-audio-spectrum helper was present. Local logs showed three consecutive microphone-start failures in Monologue, approximately 14 seconds per attempt, with:

    HALS_IOContext_Legacy_Impl::StartIOThread:
    got an error from starting the IO thread, Error: 0x3C
    
    HALC_ProxyIOContext::IOWorkLoop:
    the server failed to start, Error: 0x3C
    

    After disabling Settings → General → Toys → Audio visualizer:

    • The system-audio-spectrum helper was no longer running.
    • Two subsequent Monologue microphone starts succeeded in approximately 5 ms and 6 ms, measured between Core Audio initialization and its StartIO success log.
    • coreaudiod retained the same PID. No application restart, driver removal, or microphone-permission reset was performed during this comparison.

    This strongly supports the visualizer as a trigger in this environment, including effects on third-party dictation. It does not establish the underlying locking/session mechanism. A controlled re-enable test and long-term stability have not been verified, and task switching was not independently confirmed as the trigger here. The measured successful post-change starts were in Monologue.

  9. ZenAlexa commented on Sep 21, 2026

    @ZenAlexa

    Exactly the same.

    Disabling Audio visualizer is the only solution to me.

  10. jellybebra commented on Sep 28, 2026

    @jellybebra

    Confirmed on ChatGPT/Codex desktop 26.924.22138 (build 11645), macOS 26.6.2 (25G83), Apple Silicon, using the built-in microphone at 44.1 kHz.

    Dictation intermittently stalls at startup in both the desktop app and ChatGPT in Chrome. Restarting coreaudiod helped temporarily, but the failure returned with Audio visualizer enabled.

    Evidence captured during the stall

    A CoreAudio process sample caught two BuiltInMicrophoneDevice threads waiting in:

    IOWorkLoopInit → StartTapOutput → IOWorkLoop_SleepUntilWakeTime → HALB_Guard::WaitFor
    

    A tap wait thread was blocked in WaitForTapStart / BlockStartOnTapStart. The unified log and TCC records associate this tap with the desktop app's system-audio-spectrum helper.

    Microphone startup attempts from both the desktop app and Chrome failed after approximately 14 seconds with:

    HALS_IOContext_Legacy_Impl::StartIOThread:
    got an error from starting the IO thread, Error: 0x3C
    

    When the helper's tap was unregistered, both recording clients started approximately 95 ms later, without a CoreAudio restart.

    Verified workaround

    After disabling Settings → General → Toys → Audio visualizer:

    • system-audio-spectrum stopped.
    • Repeated microphone starts completed in approximately 28–30 ms.
    • Dictation worked in both the desktop app and Chrome.
    • coreaudiod retained the same PID throughout this comparison.

    This was a one-way disable test; re-enabling and long-term stability were not tested. Conversation switching was not independently confirmed as the trigger here. The evidence implicates the visualizer's interaction with CoreAudio tap startup, but does not establish the exact implementation defect.

    Please include microphone startup in other applications, including Chrome, in regression testing for Audio visualizer.

  11. Pakyu commented on Oct 7, 2026

    @Pakyu

    Additional reproduction on ChatGPT/Codex desktop 26.930.61225 (build 13232), macOS 26.6.2 (25G83), Apple Silicon, with WeChat Input / WeType 2.2.3 (657) and a Hollyland USB Wireless Microphone (system default input, 48 kHz, 2 input channels).

    Reproduction and user-visible impact

    1. With Settings → General → Toys → Audio visualizer enabled, open Codex and keep it in the foreground.
    2. Start WeType voice input in the Codex composer (left Control + left Shift was used in this case).
    3. WeType repeatedly remains at “录音准备中” / preparing to record and produces no text.
    4. Codex's own Voice chat can also fail with “Voice chat took too long to start” after 10 seconds.
    5. Fully quitting Codex restores WeType without restarting the input-method process.
    6. Reopening Codex can reproduce the WeType failure without clicking Voice chat or starting dictation in Codex.
    7. Disabling Audio visualizer was followed by the user confirming that voice input worked normally; the spectrum helper was absent in a subsequent process check.

    The failure initially appeared specific to particular conversations, but later testing showed the broader foreground/reopen trigger above. This is not evidence of a permanent per-conversation incompatibility.

    Controlled component comparison

    • Terminating the verified Chromium audio.mojom.AudioService subprocess twice caused it to be recreated, but did not resolve the current failure. The application log confirmed both exits.
    • During the reopen reproduction, no Chromium AudioService subprocess was running, but Codex's system-audio-spectrum helper was running.
    • We then terminated only system-audio-spectrum, leaving the Codex main process, WeType, and coreaudiod running.
    • The unified log recorded the spectrum helper stopping its virtual audio input at relative time t = 0, followed by WeType starting the Hollyland input approximately 95 ms later.
    • Previously recurring audio-input startup errors, approximately 14 seconds apart, were absent in the following approximately 40-second observation window. This is a short observation, not a long-term stability claim.
    • After locating the Audio visualizer setting, the user confirmed normal voice input. We did not restart coreaudiod, remove audio drivers, reset microphone permissions, or modify the signed app.

    Sanitized error excerpts from the failure window:

    WeType: HALC_ProxyIOContext::IOWorkLoop:
    the server failed to start, Error: 0x3C
    
    coreaudiod: HALS_IOContext_Legacy_Impl::StartIOThread:
    got an error from starting the IO thread, Error: 0x3C
    
    coreaudiod: Initialize failed -
    thread hasBeenStopped: 1 and shouldExit: 1
    

    Evidence boundaries

    The component-stop comparison and successful workaround strongly implicate the visualizer's system-audio capture path in this environment. We have not established the exact implementation defect or whether the interaction is in the helper, CoreAudio, or USB-device handling. A device snapshot did not report a hardware exclusive/hog owner. Process samples taken later did not establish a blocked capture stack. Controlled re-enabling and long-term stability have not been tested.

    Please include third-party input-method recording with USB microphones, app reopen without starting Voice, and foreground/background transitions in regression testing. An optional decorative audio feature should not prevent microphone startup in other software.

    No recordings, private conversation content, account/session identifiers, filesystem paths, device identifiers, or complete raw logs are included.

  12. xkyball commented on Oct 23, 2026

    @xkyball

    Independent confirmation: system-wide built-in microphone input failure; resolved so far by disabling Audio visualizer (October 23, 2026)

    Reporting a separate occurrence on a MacBook Pro with the built-in microphone, during heavy use of ChatGPT/Codex desktop speech-to-text dictation.

    Observed with Audio visualizer enabled:

    • The built-in microphone intermittently stopped delivering any input system-wide, not just in ChatGPT/Codex. It remained visible under System Settings → Sound → Input, but the system input-level meter did not move.
    • The failure was not observed in the middle of an active recording; it appeared between recordings, after previously successful dictation sessions.
    • sudo killall coreaudiod restored the microphone temporarily. The time until the next failure varied, and this workaround had to be repeated.

    After disabling Audio visualizer: The user continued their usual intensive transcription workflow and reported no further microphone failures as of October 23, 2026, unlike the frequent failures beforehand. No special changes to the recording workflow were required.

    This is an observational one-way disable test, not a controlled disable/re-enable comparison. The exact app/macOS builds, CoreAudio failure logs, duration/number of recording cycles after the change, and underlying defect have not been independently verified. It is therefore evidence for Audio visualizer as a likely trigger, not proof of the specific CoreAudio mechanism or a universal fix.

    Practical workaround for affected users: ChatGPT/Codex desktop → Settings → General → Toys → turn off Audio visualizer. If the microphone is already stuck, restarting coreaudiod may still be needed to restore it immediately.

    This independently corroborates the cross-application failure and temporary coreaudiod recovery described here and complements #44596. No recordings, private chat contents, personal identifiers, or raw logs are shared.

  13. joshmouch commented on Nov 6, 2026

    @joshmouch

    Additional occurrence on ChatGPT/Codex Desktop 26.1027.61615 (build 24141), macOS 26.6.2 (25G83) on an Apple Silicon MacBook Pro, with Wispr Flow 1.6.1400 and the built-in microphone (48 kHz).

    Wispr Flow intermittently captured zero audio. During one failure, the built-in microphone was still selected in System Settings → Sound → Input, but the system input meter stayed flat while speaking. Switching to another input and back, then adjusting input gain, restored capture. The two actions were performed together, so their effects are unknown individually.

    A CoreAudio trace from one occurrence showed the Codex system-audio-spectrum helper exiting and its temporary capture device being deactivated. About 264 ms after deactivation, Wispr Flow logged AudioObjectGetPropertyData: no object with given ID 216. Flow then recorded a no_audio attempt. Two other silent attempts were logged within about nine seconds after a spectrum-helper exit. The trace does not identify the missing object as the helper’s device, and the timing alone does not establish causation.

    I later stopped just the visualizer helper while ChatGPT, Wispr Flow, and coreaudiod continued running. Flow logged a successful built-in-mic dictation, and Audio visualizer was then disabled in Settings. The helper stayed absent at the next check. The controlled stop did not reproduce the fault, and the follow-up was too short to assess recurrence.

    Please include third-party dictation and the macOS input meter when testing visualizer capture teardown on this build.

  14. skylar-deepmind commented on Nov 8, 2026

    @skylar-deepmind

    Reproduced with Typeless 2.10.0 on an M4 Mac mini running macOS 15.6.1, with desktop app 26.1103.41825 (build 25679) and a 3.5 mm headset mic.

    With Audio visualizer enabled, Typeless worked for a few dictations, then reported that the mic was unavailable and hung on retry. The macOS Sound settings input meter also failed to start the same mic. Core Audio repeatedly timed out after about 14 seconds with StartIOThread error 0x3C. A sample of coreaudiod during the stall showed it waiting in StartTapOutput().

    When I disabled Audio visualizer, system-audio-spectrum exited at 12:18:34.824. The pending mic start reached PerformStartIO at 12:18:34.864, about 40 ms later. Typeless then successfully transcribed speech before it was restarted. After the mic sat idle for over three minutes, three more mic starts from the Typeless settings panel took about 10 ms each.

  15. ogail commented on Nov 10, 2026

    @ogail

    Additional November 9 occurrence: Codex and Wispr Flow microphone startup stalls

    I’m seeing this on ChatGPT/Codex desktop 26.1103.41825 (build 25679), macOS 26.6.2 (25G83), with Wispr Flow 1.6.1400 and the MacBook Pro built-in microphone at 48 kHz.

    Both Codex dictation and Wispr Flow intermittently fail to start capturing audio. Flow shows a flat/dark recording bar, and Codex also fails to activate its microphone. Repeated cancellations/retries sometimes restore capture after a minute or two. I usually notice it after opening/waking the laptop, although the captured evening occurrence was well after the last logged full wake, so wake is not established as a necessary trigger.

    Diagnostic evidence

    Times below are November 9, America/Los_Angeles (UTC−08:00).

    • CoreAudio logged repeated approximately 14-second microphone startup failures:
    HALS_IOContext_Legacy_Impl::StartIOThread:
    got an error from starting the IO thread, Error: 0x3C
    
    Initialize failed - thread hasBeenStopped: 1 and shouldExit: 1
    
    • Failed starts were associated with the built-in microphone contexts used by both Wispr Flow’s audio helper and Codex’s audio helper.
    • At 19:43:13.290, a Codex dictation attempt started. At 19:43:13.314, permission was ready and the device was requested (about 27 ms after activation). It never logged microphone_ready or first_audio before cancellation at 19:43:30.623. That stall occurred after permission approval and before capture readiness.
    • system-audio-spectrum repeatedly created system-audio capture sessions during the failure window. At 19:44:08.298, macOS explicitly attributed its system-audio capture request to ChatGPT.app / com.openai.codex. CoreAudio registered temporary MultiTap/aggregate contexts for those helper processes. This is time correlation, not proof of a particular lock or implementation defect.
    • Capture also recovered before the settings change: a Codex attempt beginning at 19:44:33.384 reached first_audio in about 161 ms and completed. The failure is intermittent; I’m not claiming the later setting change caused this earlier recovery.

    Workaround and immediate testing

    1. Changed Flow’s dictation input from Auto-detect to Built-in mic (recommended), and verified that the choice persisted.
    2. Confirmed Codex’s Audio visualizer was ON, then turned it OFF.
    3. Completed four prompt dictation tests across Flow and Codex, including after changing chats. All produced text promptly.
    4. Closed/reopened and unlocked the laptop, then tested both apps again. Both worked promptly.

    The successful transcription and close/reopen tests are my user-reported results. A subsequent process check found no system-audio-spectrum helper, and a short log check found no new matching audio-start errors. That short window contained no new Codex startup telemetry, so absence of errors is not being used as independent proof that the tests succeeded.

    We did not restart coreaudiod, reset permissions, remove drivers, or modify the signed app during this investigation. Flow’s input selection and the visualizer setting were both changed, there was no controlled re-enable test, and long-term stability has not been established. The evidence supports the visualizer/CoreAudio interaction as a likely trigger, not a proven exclusive microphone lock or precise source-level root cause.

    Please investigate the visualizer’s system-audio tap/aggregate lifecycle and add regression coverage for repeated microphone starts in Codex and third-party dictation apps, including built-in microphones, silence/no playback, chat switching, and sleep/wake. An optional visual effect should not interfere with microphone capture in other apps, and stalled capture should surface a recoverable error.

    Related: #44596.

    Only sanitized diagnostic details are included here: no recordings, transcripts, account identifiers, device UIDs, private chat contents, or complete raw logs.

  16. zclllyybb commented on Nov 26, 2026

    @zclllyybb

    Reproduced on Codex desktop 26.1120.50957 (build 30866), macOS 15.7.3 (24G419), MacBook Air M4, using the built-in microphone and speakers. Typeless 2.13.0 intermittently captured silence, reported “Microphone unavailable,” and took several seconds to dismiss with Esc. Disabling Settings → General → Toys → Audio visualizer restored dictation.

    I isolated this from Typeless using the bundled system-audio-spectrum helper and a native client that calls AudioDeviceStart on the built-in microphone. With the visualizer off, the call returned in 57 ms. With the helper running and speaker output idle, two calls remained blocked until I released the tap about 8 seconds into each test. Hardware mic I/O then started 60 ms and 35 ms after tap release, respectively.

    The tap can also stay registered while the microphone recovers. While the native client was blocked, I started playback of all-zero PCM and kept the visualizer alive. Core Audio logged the following sequence, relevant to the volume-change observation in #44596.

    Local time Event
    10:19:13.780 Built-in microphone I/O initialization begins
    10:19:16.006 Built-in speaker I/O initialization begins
    10:19:16.123 Visualizer audio session reports setPlayState Started
    10:19:16.283 Digital Mic Starting IO
    10:19:16.286 Digital Mic Start of IO result 0
    10:19:16.335 Visualizer tap unregistered during test cleanup

    A one-second sample of coreaudiod during a separate blocked start captured the same frames in 92/92 samples on each thread:

    • Built-in microphone I/O thread — IOWorkLoopInit → StartTapOutput → IOWorkLoop_SleepUntilWakeTime → HALB_Guard::WaitFor
    • Tap wait thread — WaitForTapStart → BlockStartOnTapStart → IOWorkLoop_SleepUntilWakeTime → HALB_Guard::WaitFor
    • Thread handling the start request — External_Start → StartIOThread → StartAndWaitForState

    One lead for triage is the helper's readiness signal. It emitted ready before the microphone stalled, and the desktop SpectrumCapture wrapper clears its 60-second startup timer on that event. It may be worth checking how the wrapper handles an idle output device when the helper reports readiness but the Core Audio tap is still waiting to start.

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