Repository navigation
Description
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
- Have a project whose name is a capitalized common word, such as
Server(orPersonal,Hub, etc.). - Enable Voice transcript cleanup (post-processing) in Settings → Voice.
- Inside a thread belonging to the
Serverproject, 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". - 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)
apps/web/src/speech/voiceInputSession.tsmergeshints: [correctionWord, context.projectName ?? ""]intospeechCustomWordsas{ term: "Server", aliases: [] }, and passes that merged list incleanup.speechCustomWordstoPOST /api/voice/post-process.apps/server/src/speech/postProcessing.ts(lines 55–60) runsapplySpeechAliases(text, input.options.speechCustomWords)after the cleanup LLM returns.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 withterm("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.
Activity