#5346 · Native Dictation input delivery
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
| Claim | Status | Evidence |
|---|---|---|
| System Dictation starts but does not insert text into the desktop composer. | Unverified | No macOS host, native speech service, or microphone session was available. |
| The native Dictation indicator is absent. | Unverified | No native UI was launched. There is no screenshot of this symptom. |
| Other applications accept system Dictation on the same machine. | Unverified | The reporter's machine was not accessed. |
| The desktop release is 0.46.0. | Partially verified | The 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 control | A production Tiptap editor with the actual prompt extensions observed DOM text insertion and serialized spoken control in both checkouts. |
3. Environment
- Trusted repository: public
get-bb/bb. The checkout's legacy origin resolves through GitHub to that repository. - Base:
3912f4aaefb7dff55c7e0cb5003b26b5cf1457dc, fetched fromorigin/main. - Execution: Linux; Node
v22.19.0; pnpm9.15.0; desktop manifest pins Electron44.3.0. - Two detached temporary source checkouts, A and B, started from the same clean commit; only the authored diagnostic test was added.
- No live BB instance, runtime data, providers, browser session, ports, or data directory were used. No new dependency was added.
- Frozen installation and the normal full Turbo build succeeded in both checkouts:
65 successful, 65 total. - The reported macOS installation and hardware were not available or verified.
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.
- Fetch trusted main and create two new detached checkouts at the recorded commit.
- In each checkout, run
pnpm install --frozen-lockfile --prefer-offlineandpnpm exec turbo run build. - Save the following diagnostic file as
apps/app/src/components/promptbox/editor/issue-5346-input-control.test.ts. - 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.
- Composer editor creation.
- Actual prompt extensions used by the diagnostic.
- Document synchronization and editable-state policy.
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.
- Custom Edit submenu.
- Application renderer reload interception and reload chord resolver.
- Application BrowserWindow web preferences.
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.
| Check | Checkout A, live | Checkout B, live forced rerun |
|---|---|---|
| Frozen install | Passed | Passed |
| Normal full build | 65 tasks passed; 4 cached | 65 tasks passed; 60 cached |
| DOM input diagnostic | 1 passed; 183 ms | 1 passed; 194 ms |
| Nearby composer controls | 3 passed; 167 skipped; 247 ms | 3 passed; 167 skipped; 255 ms |
| Native Dictation | Unavailable: Linux | Unavailable: 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.