D3RO Voice — 멀티플랫폼 AI 음성 어시스턴트 (Monorepo & CI/CD)
Find a file
Yun Chan 99f06c253c fix(llm): stop leaking instruction prompts instead of processed text
Running a custom instruction (translate, summarise, rewrite, explain code,
free prompt) inserted the instruction's own wording instead of the result.
Two faults stacked:

The instruction was passed as the text to process, leaving the system-prompt
argument empty. `BASE_SYSTEM_PROMPTS` has no `custom` key, so resolution fell
back to `refine` without saying so, and the model dutifully polished the
instruction it had been handed. The transcript never reached it.

And only `{{text}}` was substituted, which none of the five built-in
instructions use — they carry `{{targetLanguage}}`, `{{userPrompt}}`, or no
placeholder at all. The substitution was a no-op from the day it was written:
the presets landed ten hours before the code that expected them.

- Instruction prompts now go to the system-prompt argument and the transcript
  to the text argument. Instructions that spell out `{{text}}` keep their old
  meaning, so hand-written ones still work.
- `renderInstructionPrompt` resolves `{{text}}`, `{{userPrompt}}` and
  `{{targetLanguage}}` in one place, and warns by name when a placeholder is
  left standing rather than letting it reach the model.
- `resolveSystemPrompt` no longer drops silently to `refine` for `custom`.
- Voice shortcuts no longer die at the `defaultLLMAction === 'none'` gate; an
  explicitly named instruction outranks the default. Without one, `none` still
  passes the transcript through untouched.
- `translate` receives its target language instead of relying on a default two
  call frames away. It is still always English — `AppConfig` has no key for it,
  and neither `language` (UI locale) nor `sttLanguage` (source language) can
  stand in. Choosing a target language needs a setting and is not in this fix.
- Chains ran instructions with placeholders intact; they share the same
  resolution now.
- The command screen's pipeline bench called `llm.generate`, which preload does
  not expose, so every run threw and the catch showed the input back as if it
  had succeeded. It uses `llm.process` now, over the same path production
  takes, and a failure reads as a failure.

Present since the feature shipped: the custom-instruction path has never
worked. Plain actions (refine, summarise, grammar, expand) were unaffected and
are now covered by tests so they stay that way.
2026-09-21 14:39:26 +09:00
.agents feat: complete release preparation, 10+ ad mediation, CI/CD, and docker deployment 2026-08-20 11:12:05 +09:00
.claude agent update 2026-07-23 11:14:13 +09:00
.codex feat: complete release preparation, 10+ ad mediation, CI/CD, and docker deployment 2026-08-20 11:12:05 +09:00
.forgejo/workflows fix(desktop): render popup overlays in packaged builds 2026-09-19 08:24:03 +09:00
.github/workflows fix(desktop): render popup overlays in packaged builds 2026-09-19 08:24:03 +09:00
apps fix(llm): stop leaking instruction prompts instead of processed text 2026-09-21 14:39:26 +09:00
bucket fix(desktop): recommend the model the app actually uses 2026-09-18 17:15:37 +09:00
docs fix(llm): stop leaking instruction prompts instead of processed text 2026-09-21 14:39:26 +09:00
memory fix(release): stop shipping native modules built for the wrong runtime 2026-09-18 15:45:03 +09:00
packages chore(release): v1.4.0 2026-09-21 13:41:59 +09:00
release chore(release): v1.4.0 2026-09-21 13:41:59 +09:00
scripts fix(release): point the download centers at the published installer 2026-09-19 08:41:37 +09:00
server fix(site): serve the landing domain from the Pages deployment 2026-09-19 09:21:27 +09:00
site chore(release): v1.4.0 2026-09-21 13:41:59 +09:00
tests/e2e feat: complete release preparation, 10+ ad mediation, CI/CD, and docker deployment 2026-08-20 11:12:05 +09:00
.dockerignore feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
.editorconfig v1.0.0 배포 준비: CHANGELOG, LICENSE, 프로젝트 메타 파일 추가 2026-04-06 09:29:27 +09:00
.env.example feat(server): deliver push without a Firebase project 2026-09-16 23:24:44 +09:00
.eslintignore fix(V2-1): minor 이슈 정리 [M4][M5] 2026-04-09 02:32:37 +09:00
.eslintrc.cjs feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
.gitattributes v1.0.0 배포 준비: CHANGELOG, LICENSE, 프로젝트 메타 파일 추가 2026-04-06 09:29:27 +09:00
.gitignore feat(desktop): make local speech transcription work end to end 2026-09-18 00:48:47 +09:00
.gitlab-ci.yml fix(release): stop shipping native modules built for the wrong runtime 2026-09-18 15:45:03 +09:00
.nvmrc feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
.prettierrc Phase 1+2 구현: Electron 뼈대 + STT/핫키/오케스트레이터 2026-04-05 02:01:37 +09:00
AGENTS.md docs: record the 1.1.0 release and add the infrastructure map 2026-09-16 23:27:52 +09:00
CHANGELOG.md chore(release): v1.4.0 2026-09-21 13:41:59 +09:00
CLAUDE.md docs: record the 1.1.0 release and add the infrastructure map 2026-09-16 23:27:52 +09:00
CONTRIBUTING.md v1.0.0 배포 준비: CHANGELOG, LICENSE, 프로젝트 메타 파일 추가 2026-04-06 09:29:27 +09:00
design.md feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
docker-compose.nas.yml feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
docker-compose.yml feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
Dockerfile.admin feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
global.json feat(release): prepare 1.1.0 candidate 2026-08-29 18:33:45 +09:00
LICENSE v1.0.0 배포 준비: CHANGELOG, LICENSE, 프로젝트 메타 파일 추가 2026-04-06 09:29:27 +09:00
package-lock.json chore(release): v1.4.0 2026-09-21 13:41:59 +09:00
package.json chore(release): v1.4.0 2026-09-21 13:41:59 +09:00
pnpm-workspace.yaml feat: complete release preparation, 10+ ad mediation, CI/CD, and docker deployment 2026-08-20 11:12:05 +09:00
README-NAS.md feat: complete release preparation, 10+ ad mediation, CI/CD, and docker deployment 2026-08-20 11:12:05 +09:00
run-desktop.bat fix(desktop): clean single-instance lock exit and suppress devtools console crash 2026-08-20 22:48:58 +09:00
SECURITY.md v1.0.0 배포 준비: CHANGELOG, LICENSE, 프로젝트 메타 파일 추가 2026-04-06 09:29:27 +09:00
skills-lock.json agent update 2026-07-23 11:14:13 +09:00
tsconfig.base.json feat(V2-1a): Monorepo 구조 전환 — apps/desktop으로 V1 이동 2026-04-08 14:04:41 +09:00
tsconfig.json fix(V2-1a): 루트 workspace 설정 3파일 보충 2026-04-08 14:29:40 +09:00
turbo.json feat(V2-1a): Monorepo 구조 전환 — apps/desktop으로 V1 이동 2026-04-08 14:04:41 +09:00