Repository navigation
Conversation
Add verified Parakeet model downloads and device-local transcription. Keep OpenAI as an explicit cloud option. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$21.69`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=21.69 -->
Keep voice availability in the model hook. Separate model actions and recording key decisions. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$21.69`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=21.69 -->
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
🟢 e2e stories (Haiku): 14 passed22 agent steps · 7 replayed from cache · 15 model calls · 47.3k tokens (23% cached) All 14 tests in 9 files
e2e 0.20.0 · 1m 21s · web · run artifacts 🟢 e2e Electron stories (Haiku): 3 passed3 agent steps · 3 model calls · 7.9k tokens (22% cached) All 3 tests in 3 files
e2e 0.20.0 · 25.6s · electron · run artifacts 🟢 e2e agent repros (Haiku): no tests selectedSpend: $0.00 of the $1.00 cap (proxy ledger) e2e 0.20.0 · 7.9s · 2 targets (web, phone) · run artifacts |
Use dark-only desktop and phone variants. Existing stories do not show local model controls. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$30.94`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=30.94 -->
|
@codex review |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3622b471f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3622b471f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c6d18076c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Test audio downmix, cache-only requests, and resource cleanup. Cover concurrent calls, duration limits, missing cache entries, and cancellation. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$42.86`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=42.86 -->
Check download gating, cancellation, model selection, removal, errors, and provider navigation. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$38.71`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=38.71 -->
Check the completed cache after acquiring the download lock. Keep incomplete-cache cleanup unchanged. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$41.98`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=41.98 -->
Use a cancellable Web Lock for the full transcription lifecycle. Keep queued audio until inference starts, and clean resources before releasing the lock. Test queued cancellation and serialization after success, failure, and abort. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$42.86`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=42.86 -->
Disable voice in restricted Electron server windows without changing permissions. Release download chunks before checksum allocation. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$42.86`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=42.86 -->
Stop local capture at its deadline and preserve audio for transcription. Trim PCM to the processing limit when the capture timer runs late. Share the existing touch restriction between recording and model controls. Test deadline cleanup, cloud behavior, touch support, and PCM boundaries. Co-authored-by: Mux <noreply@coder.com> --- _Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$42.86`_ <!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=42.86 -->
2c6d180 to
36e7bca
Compare
|
@codex review |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 36e7bca6f8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| import wasmUrl from "onnxruntime-web/ort-wasm-simd-threaded.jsep.wasm?url"; | ||
| import mjsUrl from "onnxruntime-web/ort-wasm-simd-threaded.jsep.mjs?url"; |
There was a problem hiding this comment.
Load the WASM-only runtime for CPU inference
On macOS Safari, which supportsLocalVoice() admits as a non-touch browser, these JSEP assets make CPU-only backend: "wasm" inference consume several gigabytes and potentially terminate the tab. The upstream ONNX Runtime report reproduces this across releases beginning with 1.21, including the 1.24 family pinned here, while the plain WASM bundle avoids the blow-up. Use onnxruntime-web/wasm and the non-JSEP assets for this CPU-only worker.
Useful? React with 👍 / 👎.
|
|
||
| export async function removeVoiceModel(id: LocalVoiceModelId): Promise<void> { | ||
| await navigator.locks.request(voiceModelCacheName(id), async () => { | ||
| await caches.delete(voiceModelCacheName(id)); |
There was a problem hiding this comment.
Preserve model caches used by active recordings
When the selected model is removed from Settings—particularly from another app window—while a recording is active, queued, or decoding, this deletion can finish before transcribeLocally() acquires the cache lock. The completed recording then fails with the missing-download error and its dictation is discarded. Reserve the model from capture through cache loading, or defer removal while recordings depend on it.
AGENTS.md reference: AGENTS.md:L118-L118
Useful? React with 👍 / 👎.
Review statusNot ready. Review work pauses for a scope decision. Six earlier findings have fixes and resolved threads. The current review adds two unresolved findings:
The repeated cross-window findings show that the model-removal lifecycle needs a simpler contract. I pause under the review-loop rule instead of adding another reservation mechanism. Proposed scope reduction: keep the CPU-only runtime correction here, but remove model-removal controls from the initial feature. Track model removal separately with an explicit active-recording contract. This proposal needs maintainer direction. No scope reduction applies yet, and both findings remain open. The Codex gate fails. CI and visual review remain incomplete. No merge or auto-merge is enabled. Generated with |
Summary
Add local speech recognition in Settings → Voice. Users can download and select Parakeet TDT v2 or v3. OpenAI Whisper remains an explicit cloud option.
Background
Voice input currently requires an OpenAI API key. Local models let users dictate without sending audio to a cloud provider.
Implementation
Validation
An isolated local Xum deployment verifies both models with a real speech recording. External network requests stay blocked during transcription. Both models place the expected transcript in the composer.
The same deployment verifies download cancellation, transcription cancellation, model removal, and cross-window selection updates. Chromium and WebKit show the complete settings dialog at phone widths.
An isolated Electron instance verifies the production worker and bundled runtime from local files.
Screenshots
Desktop
Phone (375 px)
Download error
Restricted Electron server window (375 px)
Review status
Not ready. Review work pauses for a scope decision.
Six earlier findings have fixes and resolved threads. The current review adds two unresolved findings:
The repeated cross-window findings show that the model-removal lifecycle needs a simpler contract. I pause under the review-loop rule instead of adding another reservation mechanism.
Proposed scope reduction: keep the CPU-only runtime correction here, but remove model-removal controls from the initial feature. Track model removal separately with an explicit active-recording contract. This proposal needs maintainer direction. No scope reduction applies yet, and both findings remain open.
The Codex gate fails. CI and visual review remain incomplete. No merge or auto-merge is enabled.
Risks
Generated with
xum• Model:openai:gpt-6-astra• Thinking:xhigh• Cost:$55.38