Skip to content

[Bug]: A pending approval discards an ongoing dictation #39634

Open

Description

@harijoe

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Start a turn with a supervised permission mode, so the agent asks for approval before a command.
  2. While the agent works, start dictating a follow-up in the composer.
  3. Keep talking until the agent asks for an approval.

Expected behavior

Dictation keeps recording. The composer stays editable while an approval is pending (its placeholder says "Send feedback to decline this request"), so dictated text should land in the draft like typed text.

Actual behavior

The recording stops the moment the approval appears, and everything said so far is discarded. Nothing is transcribed into the draft.

dictationDisabled in apps/web/src/components/chat/ChatComposer.tsx includes isComposerApprovalState. When disabled turns true, useEnvironmentSpeechInput calls session.cancel(), which drops the recording instead of finishing it.

Impact

Major degradation or frequent failure

Version or commit

main @ 8a7035f

Environment

Any client that uses the web composer (web app in any browser, or desktop). Not specific to macOS, the desktop shell, or a provider: the bug is in apps/web, so it reproduces in a plain browser with any provider that requests approvals.

Workaround

Approve or decline first, then dictate. Anything dictated before the approval appears is lost.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions