Repository navigation
Land leftover open worktrees onto origin/main - #870
Conversation
Lock status/download/start/write/stop/cancel and desktop-only speech:changed across the six-place IPC declaration. Stub rejects until electron/speech.js. Partials are incremental suffixes (`delta`).
Add electron/speech.js, wire it through registerIpc/makeCtx, and construct it at boot with teardown plus media-permission gating. Tests inject fetch, spawn, and WebSocket so the 700 MB GGUF is never downloaded. Co-authored-by: Willem <[email protected]>
Mic pill next to attach, user-confirmed ~700 MB download, AudioWorklet 16 kHz PCM16, concatenated deltas, and cancel/restore on Escape, thread switch, archive, and unmount.
…to-text Plan and design spec for local speech-to-text (#845).
#846) Extract unique leftover from worktree b73e11. codex exec pins approval_policy=never and otherwise rejects MCP tools. Same scope as Claude --allowedTools=mcp__<name>__*: only our servers.
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ca576127fc
ℹ️ 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".
| dictatingRef.current = true; | ||
| setDictating(true); | ||
| try { | ||
| const capture = await startSpeechCapture({ |
There was a problem hiding this comment.
Start the speech session before requesting the microphone
In the packaged Electron flow, startSpeechCapture() calls getUserMedia() before api.start(), but the main-process permission handler grants audio only after api.start() sets recordingRequested. Because this await cannot complete until the permission decision is made, a new microphone request is denied and api.start() is never reached. Even with a previously granted permission, frames produced before the session ID arrives are dropped while their sequence numbers advance, so the manager rejects the first forwarded frame as out of order.
Useful? React with 👍 / 👎.
| } | ||
| if (msg.type === "conversation.item.input_audio_transcription.completed") { | ||
| const text = typeof msg.transcript === "string" ? msg.transcript : ""; | ||
| emit({ transcript: text }); |
There was a problem hiding this comment.
Publish ready after the completed transcript
On a normal stop, this emission occurs while state is still "stopping" and active still exists, so Composer stores a stopping snapshot. The handler then closes the socket and resolves the stop without changing state or emitting again; although a later synchronous status() call would derive "ready", the mounted Composer never makes that call. Its next microphone click therefore sees "stopping", matches none of the actionable branches, and dictation cannot be started again until the component remounts.
Useful? React with 👍 / 👎.
| if (err) lastError = err; | ||
| emit(extra || {}); |
There was a problem hiding this comment.
Surface sidecar termination as an error state
When the socket closes or the sidecar exits during recording, endRecording() clears active before this emission. deriveState() consequently reports "ready" because the model remains installed, merely attaching an error field. Composer only cancels capture when status.state === "error", so it stays read-only and apparently dictating after the backend has disappeared, while subsequent audio writes fail. Emit a state the renderer treats as terminal, or have the renderer react to the error field.
Useful? React with 👍 / 👎.
| if (!input.transcript) { | ||
| return { text: input.original, caret: input.originalCaret }; | ||
| } | ||
| const text = input.prefix + input.transcript + input.suffix; |
There was a problem hiding this comment.
Preserve word boundaries around inserted transcripts
When dictation starts at a caret adjacent to existing text, the final transcript is concatenated verbatim. NeMo's first/final text has no guaranteed leading or trailing whitespace, so dictating at the end of "Please" produces "Pleasecontinue", and inserting before a word similarly joins the other boundary. Normalize the two insertion boundaries while preserving existing whitespace so ordinary mid-draft and end-of-draft dictation remains readable.
Useful? React with 👍 / 👎.
Summary
Extracts unique leftover from the 14 open Solenta worktrees onto current
origin/main. Git-tab Merge would have landed on the checkout branch (coder/codex-resume-no-search), not origin/main (#770). Same recipe as #784 / #840: unique trees only, no remelt.Landed
726531): CoderApi.speech IPC, NeMo-Speech.cpp manager, live composer dictation, per-OS runtime packaging (Live speech-to-text in the composer (NeMo-Speech.cpp) #845). Covers worktrees e47061 / 1bbb82 / 4246d9 / 726531. Supersedes open PRs feat(speech): add CoderApi speech IPC namespace (#845) #858 and feat(speech): live dictation in the composer (#845) #865.3b4108/ docs: record native Linux/Windows live STT CI PASS (#845) #852 (feasibility.md only). Does not takespeech-spike.yml(that would undo ci: restrict leftover speech-spike.yml to workflow_dispatch (#860) #861).never#846 Codex first-party MCP auto-approve fromb73e11(memory-sup files only).Skipped (already on origin, or remelt)
65edb45c/ ci: restrict leftover speech-spike.yml to workflow_dispatch (#860) #861 restrict speech-spike.yml — unique=0.574112guardrail — unique=0 (already via docs: NeMo-Speech.cpp v0.1.0 live STT feasibility spike (#845) #850).mainat coder-release-build,69e960,d69207,3d265c— remelt Fork: Fork: Fix Solenta session blockers: forks, git, Planbo #868 and re-enable speech-spike on push.fc67d6worktrees.js — cleanupWorktree should null ghost fields when the dir is already gone #843 already on origin; remaining hunk conflicts.Closes #869
Closes #857
Closes #852
Closes #858
Closes #865
Test plan
npm run typecheck~/code/coder-release-builduntil this is onorigin/main; then reset it to origin/main (never force-push origin/main).github/workflows/speech-spike.ymlis stillworkflow_dispatchonly