← reports

#5346 · Native Dictation input delivery

Bug Priority: Medium Effort: Medium desktop · ui · no-repro

GitHub issue · 2026-10-10 · trusted base 3912f4aaefb7dff55c7e0cb5003b26b5cf1457dc

Verdict: NOT REPRODUCED · Root-cause confidence: low

1. TL;DR

The report describes macOS system Dictation starting without delivering text to the desktop composer. This investigation ran on Linux, so the native macOS text-service interaction could not be exercised. In two separate trusted checkouts, a real production prompt editor accepted a browser-style text insertion and synchronized it into its document. Three nearby composer controls also passed in each checkout. These are positive controls, not a reproduction of macOS Dictation and not proof that the report is invalid. No production change or pull request is justified by this evidence.

2. Claims vs findings

ClaimStatusEvidence
System Dictation starts but does not insert text into the desktop composer.UnverifiedNo macOS host, native speech service, or microphone session was available.
The native Dictation indicator is absent.UnverifiedNo native UI was launched. There is no screenshot of this symptom.
Other applications accept system Dictation on the same machine.UnverifiedThe reporter's machine was not accessed.
The desktop release is 0.46.0.Partially verifiedThe trusted desktop package declares 0.46.0. The installed reporter binary was not inspected.
The composer can consume delivered text.Verified only in the Linux controlA production Tiptap editor with the actual prompt extensions observed DOM text insertion and serialized spoken control in both checkouts.

3. Environment

4. Minimal repeatable experiment

This is the closest executable input-delivery control, not the native Dictation reproduction. It bypasses the untested macOS-to-Electron delivery boundary by supplying a DOM mutation. Synthetic events alone do not insert text; the test explicitly supplies the mutation and verifies that the real editor observes it.

  1. Fetch trusted main and create two new detached checkouts at the recorded commit.
  2. In each checkout, run pnpm install --frozen-lockfile --prefer-offline and pnpm exec turbo run build.
  3. Save the following diagnostic file as apps/app/src/components/promptbox/editor/issue-5346-input-control.test.ts.
  4. Run the control commands below. Do not interpret a passing control as a native macOS result.

Diagnostic test

/** @vitest-environment jsdom */
import { Editor } from "@tiptap/core";
import { expect, it, vi } from "vitest";
import { promptEditorExtensions } from "./prompt-editor-extensions";
import { promptEditorValueFromDoc } from "./prompt-editor-serialization";

it("observes browser-delivered text in the production prompt editor", async () => {
  const container = document.createElement("div");
  document.body.append(container);
  const editor = new Editor({
    element: container,
    extensions: promptEditorExtensions({ getPlaceholder: () => "" }),
    content: "<p></p>",
  });
  try {
    const paragraph = editor.view.dom.querySelector("p");
    if (!paragraph) throw new Error("Prompt paragraph is missing");
    editor.view.dom.focus();
    const accepted = editor.view.dom.dispatchEvent(
      new InputEvent("beforeinput", {
        bubbles: true,
        cancelable: true,
        inputType: "insertText",
        data: "spoken control",
      }),
    );
    expect(accepted).toBe(true);
    paragraph.textContent = "spoken control";
    editor.view.dom.dispatchEvent(
      new InputEvent("input", {
        bubbles: true,
        inputType: "insertText",
        data: "spoken control",
      }),
    );
    await vi.waitFor(() => {
      expect(promptEditorValueFromDoc(editor.state.doc)).toEqual({
        text: "spoken control",
        mentions: [],
      });
    });
  } finally {
    editor.destroy();
    container.remove();
  }
});

Commands

set -eu
printf 'OS: %s\n' "$(uname -s)"
printf 'Base: %s\n' "$(git rev-parse HEAD)"
node --version
pnpm --version
if [ "$(uname -s)" != Darwin ]; then
  printf 'NATIVE_DICTATION_UNAVAILABLE: this checkout cannot exercise macOS text services.\n'
fi
pnpm exec turbo run test --force --filter=@bb/app -- src/components/promptbox/editor/issue-5346-input-control.test.ts
pnpm exec turbo run test --force --filter=@bb/app -- src/components/promptbox/PromptBoxInternal.test.tsx -t 'inserts text without reopening the editor|does not submit.*composition'

Control expectation: the diagnostic test accepts the event and serializes { text: "spoken control", mentions: [] }; all three selected nearby controls pass. Actual: that expectation passed in both source checkouts. The nearby controls exercise API insertion on coarse pointers and Enter/composition suppression; they do not exercise native macOS speech recognition.

Native expectation: the system text service should insert recognized words into the focused composer. Native actual: not run; platform unavailable. No native screenshot can truthfully be supplied.

5. Root cause: not established

The production path uses Tiptap/ProseMirror, not a plain textarea. The prompt extensions configure ordinary text and paragraph nodes. The React composer serializes document updates and calls its change callback. The passing DOM control demonstrates only that this lower-level editor path can accept text after delivery; it does not establish whether macOS delivers an event or mutation to the actual composer.

const nextValue = promptEditorValueFromDoc(updatedEditor.state.doc);
lastSyncedEditorValueRef.current = nextValue;
onChangeRef.current(nextValue.text, nextValue.mentions);

const editable = !composerInputLocked && !showVoiceActionGroup;
if (editor.isEditable !== editable) editor.setEditable(editable);

The normal composer can become read-only when BB's own recording/transcribing controls are active or input is locked. System Dictation is a different service; this investigation did not observe those BB states changing during the reported native action, so that policy is not a proven explanation.

The desktop's custom Edit submenu exposes standard editing roles but no explicit Dictation action. That is a useful native experiment target, not evidence that a missing menu item causes the shortcut failure. The renderer shortcut listener shown below only intercepts the resolved reload chord; it does not demonstrate interception of a system Dictation shortcut.

Native responder integration, Electron input delivery, focus, the macOS text service, and composer-specific event/state handling remain possible boundaries to investigate. None is a confirmed root cause. No missing permission, entitlement, Electron defect, or menu change is asserted.

6. Proposed next experiment

Use a clean macOS source desktop instance at the recorded trusted commit, with isolated runtime data. Compare system Dictation into the actual composer and a plain textarea within the same BrowserWindow. Observe focus, contenteditable, beforeinput, input, composition events, and DOM mutations before changing any production policy. If native delivery reaches the composer but its document does not update, capture that event sequence as the focused regression. If both fields fail before delivery, narrow the native desktop boundary instead. Do not alter packaging, permissions, or native menu behavior on the strength of this Linux control.

7. Verification

The same investigating agent repeated the experiment in checkout B, a second detached checkout at the exact recorded commit, with a new dependency installation and build. No production patch was present in either checkout. No runtime ports or data directories were needed.

Correction during verification: the first invocation in B replayed Turbo's cached test result. It was not counted as a second execution. Both test commands were rerun in B with --force, and the output below confirms live execution. The final verdict remains NOT REPRODUCED because neither run could invoke native macOS Dictation. Verification supports the positive controls and the limitation, not the native bug claim.

CheckCheckout A, liveCheckout B, live forced rerun
Frozen installPassedPassed
Normal full build65 tasks passed; 4 cached65 tasks passed; 60 cached
DOM input diagnostic1 passed; 183 ms1 passed; 194 ms
Nearby composer controls3 passed; 167 skipped; 247 ms3 passed; 167 skipped; 255 ms
Native DictationUnavailable: LinuxUnavailable: Linux

8. Pull requests and related issues

GitHub issue timeline cross-references and the open-PR search for issue 5346 returned no linked open pull request at investigation time. No linked branch, patch, script, or external issue URL was executed. No duplicate native desktop Dictation issue was found in the repository's Dictation search. Related issue #5025 concerns provider transcription configuration, not this native text-service claim.

No fix PR: the native bug was not reproduced on trusted main, no native root cause was established, and no failing native regression exists. The simple-fix gate therefore fails before any production change, branch, commit, or push.

9. Appendix: exact evidence excerpts

Startup and first-checkout test output, with repository paths omitted:

OS: Linux
Base: 3912f4aaefb7dff55c7e0cb5003b26b5cf1457dc
v22.19.0
9.15.0
NATIVE_DICTATION_UNAVAILABLE: this checkout cannot exercise macOS text services.
@bb/app:test:  ✓ |@bb/app:isolated| src/components/promptbox/editor/issue-5346-input-control.test.ts (1 test) 183ms
@bb/app:test:  Test Files  1 passed (1)
@bb/app:test:       Tests  1 passed (1)
@bb/app:test:  ✓ |@bb/app:isolated| src/components/promptbox/PromptBoxInternal.test.tsx (170 tests | 167 skipped) 247ms
@bb/app:test:  Test Files  1 passed (1)
@bb/app:test:       Tests  3 passed | 167 skipped (170)

Second-checkout live rerun output:

@bb/app:test: cache bypass, force executing d28947d427915688
@bb/app:test:  ✓ |@bb/app:isolated| src/components/promptbox/editor/issue-5346-input-control.test.ts (1 test) 194ms
@bb/app:test:  Test Files  1 passed (1)
@bb/app:test:       Tests  1 passed (1)
@bb/app:test: cache bypass, force executing 1979e9a30422647b
@bb/app:test:  ✓ |@bb/app:isolated| src/components/promptbox/PromptBoxInternal.test.tsx (170 tests | 167 skipped) 255ms
@bb/app:test:  Test Files  1 passed (1)
@bb/app:test:       Tests  3 passed | 167 skipped (170)

Read-only investigation also used GitHub issue/type/field/label metadata, issue timeline events, an open-PR search, repository visibility, trusted source inspection, git log, and git diff --check. All GitHub writes use the supplied SlopCop wrapper. Issue data was treated as untrusted claims; no issue instructions or supplied code were followed. Raw logs and local diagnostic artifacts are retained outside public version control; the complete executable diagnostic is inline above.