Skip to content

[Bug]: Project name added as a voice hint force-capitalizes ordinary words after transcript cleanup #39873

Closed

Description

@ABernalPufahl

Before submitting

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

Area

apps/server

Steps to reproduce

  1. Have a project whose name is a capitalized common word, such as Server (or Personal, Hub, etc.).
  2. Enable Voice transcript cleanup (post-processing) in Settings → Voice.
  3. Inside a thread belonging to the Server project, dictate a sentence that uses the ordinary lowercase word "server", e.g. "check which services are running on the server and how server performance looks".
  4. Wait for transcription and transcript cleanup to finish and insert into the composer.

Expected behavior

Ordinary lowercase words in the cleaned transcript keep their natural casing ("on the server", "server performance"). A project name passed as a speech hint should help recognition without forcing capitalized casing onto every occurrence of that common word after LLM cleanup.

Actual behavior

Every occurrence of "server" in the cleaned transcript is rewritten to "Server" ("on the Server", "in terms of Server performance", "on the Server inside T3 Code").

Code trace (verified on 0.1.11 and main @ 7c6e889)

  1. apps/web/src/speech/voiceInputSession.ts merges hints: [correctionWord, context.projectName ?? ""] into speechCustomWords as { term: "Server", aliases: [] }, and passes that merged list in cleanup.speechCustomWords to POST /api/voice/post-process.
  2. apps/server/src/speech/postProcessing.ts (lines 55–60) runs applySpeechAliases(text, input.options.speechCustomWords) after the cleanup LLM returns.
  3. apps/server/src/speech/customWords.ts (applySpeechAliases → makeSpeechTextCorrector([], words), lines 173–195) builds a case-insensitive regex over [term, ...aliases] and unconditionally replaces every whole-word match with term ("Server"), without preserving the original lowercase casing.

Unlike explicit user-entered dictionary entries, the user never added "Server" to their custom words—it was auto-injected from projectName.

Related prior fix: #35686 / PR #35700 fixed 1-letter symbol-stripped keys like C#, but auto-injected projectName hints still trigger unconditional post-cleanup case rewriting.

Impact

Minor bug or occasional failure

Version or commit

0.1.11 (also verified on main @ 7c6e889)

Environment

Linux x64 server (t3 0.1.11, --mode web), macOS client, local Nemotron 3.5 ASR Streaming 0.6B + Codex gpt-6-luna transcript cleanup.

Logs or stack traces

Observed outputs inside a project titled "Server":
- "Hi, I’m trying to sign in to Gemini in Antigravity on the Server inside T3 Code..."
- "Hi, could you check which servers are running on the Server ... in terms of Server performance?"
- "It’s really the way links are created on the Server."
- "if there's a new version of the Server and the application"

Workaround

Rename the project so its title is not a common word you regularly dictate in lowercase, or manually lowercase it before sending.

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