feat(input,voice): instant first-word-after-focus PC layout fix and speech disfluency post-processing (INPUT-04, INPUT-19, AI-03, AI-05)

This commit is contained in:
Yun Chan 2026-10-29 19:05:01 +09:00
parent dbed97c348
commit 7a86afa7b0
22 changed files with 359 additions and 39 deletions

View file

@ -29,6 +29,7 @@ import { getLocalLLMService } from './LocalLLMService'
import { getLlmGateway } from './llm/LlmGateway'
import { buildInstructionInvocation, resolveTargetLanguage } from './llm-prompts'
import { D3ROError, ErrorCode } from '@d3ro/core/errors'
import { cleanDictatedText } from '@d3ro/core/dictation-cleaner'
import { TIMING } from '@d3ro/core/constants'
import { RecognitionState, AudioState } from '@d3ro/core/types'
import type { KeyBindingActionId, VoiceMode, VoiceState, LLMAction } from '@d3ro/core/types'
@ -948,6 +949,9 @@ class VoiceModeService extends EventEmitter {
}
if (!this._isCurrent(run)) return
// 결정적 구어 군더더기·추임새·말바꾸기·중복·동음이의어 1차 정리 (LLM 유무와 무관하게 0ms 즉시 적용)
effectiveText = cleanDictatedText(effectiveText)
const route = this._resolveLlmRoute(overrideInstructionId)
if (route.kind === 'insert-raw') {
if (route.reason === 'llm-unavailable') {