Skip to content

refactor(tui): remove dictation (/speak) feature - #5136

Open
rumpl wants to merge 1 commit into
docker:mainfrom
rumpl:remove-tui-dictation
Open

rumpl wants to merge 1 commit into
docker:mainfrom
rumpl:remove-tui-dictation

Conversation

@rumpl

@rumpl rumpl commented Dec 6, 2026

Copy link
Copy Markdown
Member

Removes the TUI dictation (/speak) feature and all related audio capture and transcription code (pkg/audio, TUI speech handlers/commands/editor recording mode, -tags no_audio in Dockerfile, and docs).

There are many, many dedicated dictation apps out there that already do this well — some can even run local models and are actually pretty good — so maintaining our own macOS-only CoreAudio + OpenAI Realtime API integration in the TUI isn't worth the extra complexity.

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl
rumpl requested a review from a team as a code owner December 6, 2026 21:52
Copilot AI balanced review requested due to automatic review settings December 6, 2026 21:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No actionable issues were found in the reviewed changes.

No open issues 🎉

What changed in this PR

Removes built-in /speak dictation from Docker Agent’s TUI, reducing maintenance by dropping the macOS audio capture and OpenAI transcription integration.

Changes:

  • Removes dictation commands, speech lifecycle handling, and editor recording mode.
  • Deletes audio capture/transcription packages and related tests.
  • Removes dictation documentation and obsolete build flags.
File Description
pkg/​tui/​tui.go Removes speech state, options, and event handling.
pkg/​tui/​tui_speak_test.go Deletes speech integration tests.
pkg/​tui/​tui_exit_test.go Removes speech-related test scaffolding.
pkg/​tui/​speech.go Deletes speech lifecycle implementation.
pkg/​tui/​messages/​input.go Removes speech messages.
pkg/​tui/​help.go Removes transcription-specific help.
pkg/​tui/​composer_height_test.go Removes speech-send resizing test.
pkg/​tui/​components/​editor/​editor.go Removes recording mode and speech-only methods.
pkg/​tui/​commands/​defaults/​speak_other.go Deletes unsupported-platform command stub.
pkg/​tui/​commands/​defaults/​speak_darwin.go Deletes macOS /speak command.
pkg/​tui/​commands/​defaults/​speak_darwin_test.go Deletes command tests.
pkg/​tui/​commands/​defaults/​commands.go Removes speech command registration.
pkg/​audio/​transcribe/​transcribe.go Deletes OpenAI transcription implementation.
pkg/​audio/​transcribe/​transcribe_test.go Deletes transcription tests.
pkg/​audio/​transcribe/​transcribe_other.go Deletes unsupported-platform flag.
pkg/​audio/​transcribe/​transcribe_darwin.go Deletes macOS support flag.
pkg/​audio/​transcribe/​finish_test.go Deletes transcription finalization tests.
pkg/​audio/​capture/​capture.go Deletes shared capture types.
pkg/​audio/​capture/​capture_other.go Deletes unsupported-platform capture stub.
pkg/​audio/​capture/​capture_other_test.go Deletes capture stub tests.
pkg/​audio/​capture/​capture_darwin.go Deletes CoreAudio capture implementation.
pkg/​audio/​capture/​capture_darwin_test.go Deletes macOS capture tests.
docs/​guides/​secrets/​index.md Removes dictation API-key reference.
docs/​features/​tui/​index.md Removes voice-input documentation.
Dockerfile Removes obsolete no_audio build tags.
cmd/​root/​run.go Stops passing the speech-only environment option.

Review effort: Balanced

@aheritier aheritier added area/docs Documentation changes area/tui For features/issues/fixes related to the TUI kind/refactor PR refactors code without behavior change labels Dec 6, 2026
@rumpl
rumpl enabled auto-merge December 6, 2026 22:19

This branch has not been deployed

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

Labels

area/docs Documentation changes area/tui For features/issues/fixes related to the TUI kind/refactor PR refactors code without behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants