minutes icon indicating copy to clipboard operation
minutes copied to clipboard

MCP-spawned recordings capture silence (-91 dB); same binary works from Terminal

Open anacristyvaldes-dev opened this issue 8 months ago • 2 comments

Summary

minutes record spawned by the MCP server captures pure silence (-91 dB). The exact same binary run directly from Terminal captures audio perfectly (peak level 1). This has been broken since March 31 on my setup.

Reproducible A/B test (April 2, 2026)

Same machine, same mic permissions, same binary, ~10 minutes apart:

How started Audio level Words Job ID
Terminal: minutes record peak 1 (max) 58 job-20260402102929978
MCP: start_recording -91.0 dB (digital zero) 2 (hallucination) job-20260402104309187

The .wav files from MCP recordings contain all-zero samples. Verified with ffmpeg -af volumedetect.

Investigation log

Here's the full debugging trail (done with Claude Code), documenting what we checked and how we narrowed it down.

Step 1: Checked the logs

Compared all recordings across ~/.minutes/logs/:

Mar 30          current.wav → WORKED (15, 3281, 202, 66 words)
Mar 31 11:58    current.wav → 5356 words ✓ (last working recording)
Mar 31 12:40    job-*.wav   → 0 words ✗ (first failure)
Mar 31–Apr 2    job-*.wav   → all silence (-91 dB)
Apr 2           job-*.wav   → 58 words ✓ (Terminal — works fine)

All working MCP recordings used ~/.minutes/current.wav (foreground path). All broken MCP recordings used ~/.minutes/jobs/job-*.wav (background queue path). The terminal test also used the job queue path — and worked. So the job queue itself is fine.

Step 2: Analyzed the surviving .wav file

Found a preserved .wav at ~/.minutes/jobs/job-20260401123608176-79258-0.wav (state: needs-review):

Duration: 00:00:35.88, bitrate: 256 kb/s
Stream: pcm_s16le, 16000 Hz, mono
mean_volume: -91.0 dB
max_volume: -91.0 dB
histogram_91db: 574123 (every single sample)

Pure digital silence. The mic is not being captured at all.

Step 3: Found the trigger event in MCP server logs

In /Library/Logs/Claude/mcp-server-Minutes — Meeting Memory for AI.log, found that on March 31 a stop_recording call timed out:

Recording started (PID: 53010). Say "stop recording" when done.
...
Stop failed: Stopping recording (PID 53010)...
Processing meeting.........................................................
Error: recording process did not stop within 120 seconds

The recording eventually processed (5356 words), but after this timeout, every subsequent MCP recording switched from the current.wav foreground path to the job-*.wav background queue path — and all captured silence.

Step 4: Terminal A/B test

Ran minutes record --title "foreground test" directly from Terminal:

INFO matched macOS system default input device device=MacBook Air Microphone
INFO audio capture config sample_rate=48000 channels=1 format=F32
INFO audio capture started
...
INFO audio capture stopped samples=411648 duration_secs="25.7"
[minutes] Captured 411648 samples (25.7s), peak audio level during recording: 1

Result: 58 words, perfect bilingual (Spanish/English) transcript. Same binary, same machine.

Step 5: Tested MCP again after fresh permission grant

  • Toggled Claude's mic permission OFF in macOS Privacy settings
  • Relaunched Claude
  • Toggled mic permission back ON
  • Ran MCP start_recording → still -91.0 dB silence

What we ruled out

  • Mic permissions: Claude has mic access in macOS Privacy & Security. Toggled off, relaunched, toggled on — still silent.
  • Microsoft Teams Audio virtual device: Was present during the March 30 recordings that worked fine.
  • Stale state from the timeout crash: Fresh relaunch of Claude, same result.
  • The minutes binary: v0.9.3 works perfectly from Terminal.
  • Whisper/VAD/processing pipeline: The .wav files contain silence before Whisper ever sees them.
  • The job queue path itself: Terminal recording also queued to job-*.wav and produced 58 words.

Possible root cause

The MCP Node.js server spawns minutes record as a child process. Something about how that subprocess is spawned (detached process group, redirected stdin/stdout, missing environment, or CoreAudio session inheritance) prevents it from receiving audio samples. The process thinks it's recording (runs for the correct duration, writes a .wav file) but the samples are all zeros.

Suggested investigation

  1. How does the MCP server spawn minutes record? Check if the child process has a proper CoreAudio session.
  2. Why did recordings switch from current.wav to job-*.wav after the stop timeout? Is there state that controls which path is used?
  3. Try adding --verbose to the MCP-spawned command to see which audio device is selected and whether sample counts match the terminal version.

Environment

  • macOS Darwin 25.2.0, Apple Silicon (MacBook Air)
  • Minutes CLI: 0.9.3
  • MCP server: 0.7.3 (Node.js, via Claude Desktop extension)
  • Audio devices: MacBook Air Microphone, Microsoft Teams Audio
  • Surviving silent .wav: ~/.minutes/jobs/job-20260401123608176-79258-0.wav

Investigated by @anacristyvaldes-dev with Claude Code

anacristyvaldes-dev avatar Apr 02 '26 18:04 anacristyvaldes-dev

Hey @anacristyvaldes-dev, thanks for opening this! 👋

Minutes is actively maintained and we read every issue. If you're interested in tackling this yourself, check out CONTRIBUTING.md to get started.

We'll take a look soon.

github-actions[bot] avatar Apr 02 '26 19:04 github-actions[bot]

This is fixed in v0.9.4 -- thank you for the incredible bug report. The A/B test with dB levels and the timeline made this a 30-minute fix instead of a multi-day investigation.

Root cause: detached: true in the MCP spawn calls setsid(), which creates a new macOS audit session and severs the TCC microphone grant inherited from Claude Desktop. CoreAudio then delivers all-zero samples with no error. The process thinks it's recording, but every sample is silence.

Fix: Removed detached from the three audio-capturing spawn sites (record, dictate, live). The MCP server is long-lived and the child already ignores SIGTERM, so child.unref() alone is sufficient.

Commit: 03199ff
Release: https://github.com/silverstein/minutes/releases/tag/v0.9.4

To upgrade: ```bash brew update && brew upgrade silverstein/tap/minutes

or

cargo install minutes-cli ```

Closing since the fix is shipped. Your earlier blank transcript report also directly drove the rescue filter, VAD retry, and timeout cap in v0.9.2 -- credited there too now. Thank you for making Minutes better.

silverstein avatar Apr 02 '26 19:04 silverstein