d3ro-voice/apps/desktop/tests/main/services
Yun Chan d63854db67
Some checks failed
ci / 정본·보안·린트·타입·테스트 (push) Successful in 56s
ci / .NET API 서버 테스트 (push) Successful in 10s
deploy-site / deploy (push) Successful in 38s
ci / 모바일 린트·타입·Jest (push) Successful in 44s
ci / 워크스페이스 빌드 검증 (push) Successful in 54s
ci / Supabase Edge Functions + Cloudflare Worker (push) Successful in 22s
portable-unsigned / portable-windows (push) Failing after 35s
release / release-windows (push) Failing after 13s
fix(desktop): stop pinning local models in memory and cap audio buffers
The PC-wide slowdown was not a leak but model residency: boot warmup loaded
gemma4:e4b (~11.6 GB RAM incl. 5.9 GB pinned host buffer, no mmap on Windows
CUDA) and kept it for 30m, next to the large-v3 sidecar. Measured on the HEAD
build: free RAM 7.9 GB -> 32 MB within 20 s; after this change 10.8 GB with no
Ollama model loaded until typing starts.

- single LOCAL_LLM_KEEP_ALIVE (10m) for every local request; no boot warmup
- unload this app's resident Ollama models (keep_alive 0) on quit
- sidecar POST /unload for the aux slot; captions release it on stop
- partial dictation copies only the tail window, not the whole recording
- cap the voice-conversation listen buffer at 5 minutes
- mic test: generation guard so re-entry cannot orphan lease/timers
- startRealtime: single-flight and removeChannel to stop duplicate bindings
- meeting WAV save writes header and PCM without a concat copy

Docs: AI-01 policy note, GAP-PERF-01 with remaining work.
2026-10-11 11:35:15 +09:00
..
audio-capture-redteam-r1-3.test.ts refactor(desktop): session-scoped voice runtime, STT/LLM ports, caption ownership and meeting export fixes 2026-09-28 00:53:43 +09:00
audio-capture-redteam-r2-7.test.ts fix(voice): stop mic-test ref stealing, unblock action queue, keep tail audio, and move context/LLM routing behind ports and pure policies 2026-09-28 02:16:16 +09:00
caption-owner-redteam-r1-3.test.ts refactor(desktop): session-scoped voice runtime, STT/LLM ports, caption ownership and meeting export fixes 2026-09-28 00:53:43 +09:00
caption-stop-failure-redteam-r2-1.test.ts fix(desktop): harden session, meeting, caption and LLM lifecycles; route LLM calls through the gateway 2026-09-28 02:16:15 +09:00
caption-streaming.test.ts
ChainService.test.ts refactor(instructions): share instruction template rendering via @d3ro/core 2026-09-28 00:53:44 +09:00
ConfigService.test.ts fix(suggestion): stop generating mid-typing and let a pause bring a suggestion at once 2026-09-27 22:55:26 +09:00
CustomInstructionService.test.ts
dictionary-file-codec.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
dictionary-redteam-r3-26.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
DictionaryIo.test.ts
DictionaryService.test.ts
file-transcription-cancel-redteam-r2-1.test.ts fix(desktop): harden session, meeting, caption and LLM lifecycles; route LLM calls through the gateway 2026-09-28 02:16:15 +09:00
file-transcription-redteam-r1-5.test.ts fix(file-transcription): provision ffmpeg before converting so clean installs stop failing with ENOENT 2026-09-28 00:53:43 +09:00
history-redteam-r1-0.test.ts fix(sync): bind sync engine to its user DB, scope instructions/templates per account, harden navigation 2026-09-28 00:53:42 +09:00
HistoryService.test.ts
input-flow-domain.test.ts
input-flow-services.test.ts fix(suggestion): stop generating mid-typing and let a pause bring a suggestion at once 2026-09-27 22:55:26 +09:00
input-intelligence.test.ts
input-telemetry-focus-flicker.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
input-telemetry-ime-keys.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
input-telemetry-redteam-r1-1.test.ts refactor(suggestion): drive suggestion decisions from one core step and split SuggestionService collaborators 2026-09-28 00:53:42 +09:00
keybinding-altgr-redteam-r3-8.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
keybinding-redteam-r2-16.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
license-entitlement-r1-11.test.ts fix(license): keep signed offline keys across restarts and cloud sign-out 2026-09-28 00:53:45 +09:00
LicenseService-redteam-r1-11.test.ts fix(license): keep signed offline keys across restarts and cloud sign-out 2026-09-28 00:53:45 +09:00
llm-gateway.test.ts refactor(desktop): session-scoped voice runtime, STT/LLM ports, caption ownership and meeting export fixes 2026-09-28 00:53:43 +09:00
llm-limits-routing-redteam-r2-1.test.ts fix(desktop): harden session, meeting, caption and LLM lifecycles; route LLM calls through the gateway 2026-09-28 02:16:15 +09:00
llm-prompts-redteam-r1-7.test.ts refactor(instructions): share instruction template rendering via @d3ro/core 2026-09-28 00:53:44 +09:00
llm-prompts.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
local-llm-chat-contract-r1-6.test.ts fix(llm): keep system prompts on premium chat, reject incomplete streams, stop double-charging quota 2026-09-28 00:53:44 +09:00
local-llm-service.test.ts fix(desktop): stop pinning local models in memory and cap audio buffers 2026-10-11 11:35:15 +09:00
meeting-condense-redteam-r3-3.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
meeting-live-segment-edits-redteam-r1-29.test.ts fix(meeting): persist transcript segment edits, restore live recording view, and route settings deep links by tab id 2026-09-28 00:54:03 +09:00
meeting-session-redteam-r2-1.test.ts fix(desktop): harden session, meeting, caption and LLM lifecycles; route LLM calls through the gateway 2026-09-28 02:16:15 +09:00
personal-graph-context.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
premium-llm-redteam-r1-6.test.ts fix(llm): keep system prompts on premium chat, reject incomplete streams, stop double-charging quota 2026-09-28 00:53:44 +09:00
rag-docx-redteam-r1-3.test.ts refactor(desktop): session-scoped voice runtime, STT/LLM ports, caption ownership and meeting export fixes 2026-09-28 00:53:43 +09:00
rag-redteam-r2-0.test.ts fix(sync,rag): keep restored rows, reconcile after tombstone pruning, reject partial knowledge docs, surface RAG indexing failures 2026-09-28 02:16:14 +09:00
runtime-install-release-redteam-r2-14.test.ts fix(runtime): release engine file holders right before swapping a reinstalled runtime 2026-09-28 02:16:19 +09:00
runtime-provisioner-redteam-r1-8.test.ts fix(runtime): stage runtime installs strictly, time out only on stalls, and make reinstall actually reinstall 2026-09-28 00:53:44 +09:00
runtime-provisioner-redteam-r3-5.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
screen-context-redteam-r1-3.test.ts refactor(desktop): session-scoped voice runtime, STT/LLM ports, caption ownership and meeting export fixes 2026-09-28 00:53:43 +09:00
screen-context-redteam-r2-7.test.ts fix(voice): stop mic-test ref stealing, unblock action queue, keep tail audio, and move context/LLM routing behind ports and pure policies 2026-09-28 02:16:16 +09:00
SoundEffectService-redteam-r1-15.test.ts fix(sound): apply the Sound switch at once instead of after a restart 2026-09-28 00:53:47 +09:00
stt-fallback-redteam-r1-3.test.ts refactor(desktop): session-scoped voice runtime, STT/LLM ports, caption ownership and meeting export fixes 2026-09-28 00:53:43 +09:00
stt-sidecar-redteam-r2-6.test.ts fix(stt): gate local fallback on installed engine and extract SidecarSupervisor 2026-09-28 02:16:16 +09:00
stt-timeout-redteam-r3-1.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
STTManager.test.ts
suggestion-redteam-r1-1.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
suggestion-redteam-r2-3.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
suggestion-redteam-r3-1.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
SuggestionService.test.ts fix(desktop): stop pinning local models in memory and cap audio buffers 2026-10-11 11:35:15 +09:00
textinsert-redteam-r1-2.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
textinsert-redteam-r2-4.test.ts fix(text-insert): drop nut-js 300ms key delay and send paste as one chord 2026-09-28 02:16:15 +09:00
tts-redteam-r1-14.test.ts fix(tts): pass Windows TTS text via env and let stop() only cancel its own playback 2026-09-28 00:53:46 +09:00
TypoCorrectionService.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00
UnifiedSearchService.test.ts feat: add mobile shell and unified search 2026-09-28 23:23:36 +09:00
update-service-redteam-r1-3.test.ts fix(update): re-evaluate policy on every update transition and skip NSIS updater on portable installs 2026-09-28 02:16:18 +09:00
update-service-redteam-r2-11.test.ts fix(update): re-evaluate policy on every update transition and skip NSIS updater on portable installs 2026-09-28 02:16:18 +09:00
voice-command-redteam-r3-9.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
voice-conversation-redteam-r2-1.test.ts fix(desktop): harden session, meeting, caption and LLM lifecycles; route LLM calls through the gateway 2026-09-28 02:16:15 +09:00
voice-intent.test.ts fix(voice): stop mic-test ref stealing, unblock action queue, keep tail audio, and move context/LLM routing behind ports and pure policies 2026-09-28 02:16:16 +09:00
voice-mode-redteam-r1-3.test.ts refactor(desktop): session-scoped voice runtime, STT/LLM ports, caption ownership and meeting export fixes 2026-09-28 00:53:43 +09:00
voice-mode-redteam-r2-7.test.ts fix(voice): stop mic-test ref stealing, unblock action queue, keep tail audio, and move context/LLM routing behind ports and pure policies 2026-09-28 02:16:16 +09:00
voice-recording-store-redteam-r3-1.test.ts fix(ci): point release-metadata checks at the relocated update and publish guards 2026-09-28 20:55:11 +09:00
VoiceConversationService.test.ts fix(desktop): stop pinning local models in memory and cap audio buffers 2026-10-11 11:35:15 +09:00
VoiceModeService.test.ts refactor(instructions): share instruction template rendering via @d3ro/core 2026-09-28 00:53:44 +09:00
windows-child-process-hide.test.ts fix(voice): stop mic-test ref stealing, unblock action queue, keep tail audio, and move context/LLM routing behind ports and pure policies 2026-09-28 02:16:16 +09:00