Skip to content

Land leftover open worktrees onto origin/main - #870

Merged
currentbits merged 9 commits into
mainfrom
coder/land-open-worktrees-869
Sep 3, 2026
Merged

currentbits merged 9 commits into
mainfrom
coder/land-open-worktrees-869

Conversation

@currentbits

Copy link
Copy Markdown
Owner

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

Skipped (already on origin, or remelt)

Closes #869
Closes #857
Closes #852
Closes #858
Closes #865

Test plan

  • npm run typecheck
  • renderer: speechIpc, speechDraft, pcmWorklet, composer (112/112)
  • electron: speech-ipc, speech, speech-packaging, memory-sup, mcp-inject, orch-server (156/156)
  • CI electron + renderer jobs
  • After merge: do not reset ~/code/coder-release-build until this is on origin/main; then reset it to origin/main (never force-push origin/main)
  • Confirm .github/workflows/speech-spike.yml is still workflow_dispatch only

Willem and others added 9 commits September 3, 2026 09:53
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.
… Fork: execute this live speech-to-text design.

Speech product stack for #845: CoderApi.speech IPC, NeMo-Speech.cpp
manager, live composer dictation, and per-OS runtime packaging.
Superset of e47061 / 1bbb82 / 4246d9.

Closes #857
…to-text

Plan and design spec for local speech-to-text (#845).
Extract the unique feasibility verdict from worktree 3b4108 / #852.
Does not take speech-spike.yml (that would undo #861).
#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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-03T14:05:28.675317Z ca57612 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@currentbits
currentbits merged commit 399828d into main Sep 3, 2026
3 of 6 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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({

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Comment thread electron/speech.js
}
if (msg.type === "conversation.item.input_audio_transcription.completed") {
const text = typeof msg.transcript === "string" ? msg.transcript : "";
emit({ transcript: text });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Comment thread electron/speech.js
Comment on lines +464 to +465
if (err) lastError = err;
emit(extra || {});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment thread src/speechDraft.ts
if (!input.transcript) {
return { text: input.original, caret: input.originalCaret };
}
const text = input.prefix + input.transcript + input.suffix;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

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.

Land leftover open worktrees onto origin/main Speech IPC namespace (CoderApi.speech)

1 participant