Skip to content

iOS app: "Download recording" on a failed voice input does nothing, so the audio is lost #5302

Closed

Description

@darknoon

Summary

When voice transcription fails in the bb iOS app, the "Voice input failed" toast offers Download recording. Tapping it does nothing. The audio exists only in the page's memory, so once the toast is dismissed or the web view reloads, the recording is gone. The same button works in a desktop browser.

Versions and environment

  • bb server 0.45.0 (npx bb-app) on macOS, reached from the bb iOS app over Tailscale (no bb Connect).
  • iPhone on iOS 27.0.1, bb native app (production build).
  • Transcription provider: Codex (ChatGPT sign-in).
  • Code read at main 9a47d42.

Steps to reproduce

  1. In the bb iOS app, start voice input in any thread's composer and record a few seconds.
  2. Make transcription fail. Any failure works. Ours were Codex returning HTTP 500: Error in ASR API and a 10 s timeout. A reliable way is to stop the server's network access to chatgpt.com.
  3. In the "Voice input failed" toast, tap Download recording.

Expected vs actual

  • Expected: the recording is saved or offered through the iOS share sheet.
  • Actual: nothing happens, with no error and no prompt.

Evidence

Root cause, from reading the code (not yet confirmed in a debugger):

  1. The toast's cancel action calls downloadBlob(audioFile, audioFile.name):
    cancel: {
    label: "Download recording",
    onClick: () => downloadBlob(audioFile, audioFile.name),
    },
  2. downloadBlob creates a blob: object URL and clicks an <a download>:
    https://github.com/get-bb/bb/blob/9a47d42c78ca9689af0b78da9b3155a8c0b36251/apps/app/src/lib/download-blob.ts
  3. In the iOS app, that navigation goes through onShouldStartLoadWithRequest. A blob: URL is neither shell navigation nor "externally openable" (only http:, https: and mailto: are), so the handler returns false and silently drops it:
    onShouldStartLoadWithRequest={(request) => {
    if (isShellNavigation(request.url, profile.serverUrl)) return true;
    if (isExternallyOpenable(request.url)) {
    void Linking.openURL(request.url).catch(() => undefined);
    }
    return false;
    }}

    export function isExternallyOpenable(url: string): boolean {
    try {
    const { protocol } = new URL(url);
    return (
    protocol === "http:" || protocol === "https:" || protocol === "mailto:"
    );
    } catch {
    return false;
    }
    }
  4. Production builds set webviewDebuggingEnabled={__DEV__}, so the audio cannot be recovered with Safari Web Inspector either. We tried over USB with ios_webkit_debug_proxy: the device was listed, but it exposed no pages.
    webviewDebuggingEnabled={__DEV__}

Server log for one failed attempt (~/.bb/logs/server.47.log, 2026-10-09):

{"level":40,"component":"server","task":"voice","serviceId":"codex","pluginId":"provider-codex","errorMessage":"Codex transcription request failed with HTTP 500: Error in ASR API","msg":"Voice transcription failed"}
{"level":30,"component":"server","task":"voice","serviceId":"codex","pluginId":"provider-codex","timeoutMs":10000,"msg":"Voice transcription timed out"}

Possible fix: route the failed recording to native code, for example over the mobile bridge, and present it with the iOS share sheet. Alternatively, have onShouldStartLoadWithRequest handle blob: downloads.

What you ruled out

Suggested priority and effort

The user loses work: an important voice note was lost with no workaround on iOS. This affects every iOS app user whose transcription fails. The fix is small to medium.

AGENT GENERATED

Activity

  1. added theissue type on Oct 9, 2026
  2. added
    mobile
    ui
    partial-repro
    on Oct 9, 2026
  3. bb-slop-cop commented on Oct 9, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority High · Effort Medium; labels: mobile, ui, partial-repro. All were missing and have been applied.
    • Report: Reproduction and root-cause analysis.
    • Verdict: PARTIALLY REPRODUCED · root-cause confidence medium.
    • Root-cause findings: Recording export only clicks a page-local blob: download anchor, with no native file handoff; the existing native share contract rejects blob/data URLs. The proposed blanket navigation rejection is incorrect: same-origin blob URLs are allowed on root mounts, but rejected on prefixed mounts.
    • Verification: Two clean checkouts of trusted origin/main (6d3e82f35) produce identical diagnostic findings; each passes 17 probe/voice-hook tests, and the second passes 10 existing shell-URL tests. The second probe was forced, not cache replayed. Actual iOS saving and recording loss remain unverified.
    • No PR: Device-level failure is not fully reproduced; a native byte-transfer repair would also cross the bridge protocol, outside this rule's simple-fix limits.

    AGENT GENERATED

  4. darknoon commented on Oct 10, 2026

    @darknoon
    Author

    Human written:
    My ideal resolution here would be that the composer offers a button to retry, instead of the current "download the file" flow, and that it gets saved in the composer until it's successfully transcribed.

    Ie the user's data is not lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    mobilepartial-reproui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions