Skip to content

fix(vscode): surface macOS speech capture errors - #12821

Merged
marius-kilocode merged 1 commit into
mainfrom
fix/mac-speech-error-diagnostics
Aug 7, 2026
Merged

fix(vscode): surface macOS speech capture errors#12821
marius-kilocode merged 1 commit into
mainfrom
fix/mac-speech-error-diagnostics

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Follow-up to #12814. The native macOS speech bridge already captures an NSError when AVAudioRecorder initialization fails, but discarded it and reported only a generic startup error.

Include the NSError localized description when available, while retaining the generic fallback when macOS does not populate the reference. This makes microphone permission, device, and format failures actionable in the existing speech-capture diagnostics without changing the recording lifecycle.

@kilo-code-bot

kilo-code-bot Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
packages/kilo-vscode/src/speech-to-text/capture.ts 51 Missing changeset for a user-facing diagnostics change
Files Reviewed (2 files)
  • packages/kilo-vscode/src/speech-to-text/capture.ts - 1 issue
  • packages/kilo-vscode/tests/unit/speech-to-text-capture.test.ts

Fix these issues in Kilo Cloud

Previous Review Summary (commit fea1393)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit fea1393)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • packages/kilo-vscode/src/speech-to-text/capture.ts
  • packages/kilo-vscode/tests/unit/speech-to-text-capture.test.ts

Reviewed by kimi-k3 · Input: 43.8K · Output: 7.2K · Cached: 334.6K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode changed the base branch from optimize-stt-initialization-performance to main August 4, 2026 12:45
@marius-kilocode
marius-kilocode force-pushed the fix/mac-speech-error-diagnostics branch from fea1393 to 661c094 Compare August 7, 2026 11:52
if (!recorder || !recorder.prepareToRecord || !recorder.record) throw new Error("Could not start recording")
if (!recorder || !recorder.prepareToRecord || !recorder.record) {
const description = error[0] && error[0].localizedDescription
throw new Error(description ? description.js : "Could not start recording")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Missing changeset for a user-facing diagnostics change

This PR changes the error text users see when native macOS speech capture fails to start, which is user-visible behavior in the VS Code extension. Per the repo's changeset guidance, user-facing fixes should ship with a .changeset/*.md entry (e.g. a patch bump for kilo-code) so the improvement shows up in release notes.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine for now

@marius-kilocode
marius-kilocode merged commit 2f6cc71 into main Aug 7, 2026
23 checks passed
@marius-kilocode
marius-kilocode deleted the fix/mac-speech-error-diagnostics branch August 7, 2026 12:30
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…diagnostics

fix(vscode): surface macOS speech capture errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants