Skip to content

fix(prompt): stop base system prompt forcing language guesses on all providers - #350

Merged
quiet-node merged 1 commit into
mainfrom
fix/issue-349-default-language
Jul 21, 2026
Merged

fix(prompt): stop base system prompt forcing language guesses on all providers#350
quiet-node merged 1 commit into
mainfrom
fix/issue-349-default-language

Conversation

@quiet-node

Copy link
Copy Markdown
Owner

Description

Fixes #349. Since v0.16.0 the base system prompt carried an always-on instruction to reply in the language of the user's latest message, with Vietnamese and Japanese named as examples. It rode in on the search language-parity work (#326) but reaches every provider on every chat turn, and on small local models the named-language tokens can steer replies into Vietnamese even for English questions. This PR removes that instruction from the base prompt.

Key changes

  • Remove the two-line language-matching instruction from src-tauri/prompts/system_prompt.txt, the exact inverse of the hunk feat: search language parity across retrieval and answers #326 added there.
  • Built-in web search keeps its language parity: the scoped rule in the search writer prompt, anchored to the per-message resolved language, is untouched.

Testing

  • bun run test:all:coverage: frontend and backend green, 100% coverage gate holds.
  • bun run validate-build: clean.

Note: existing installs pick up the corrected default automatically; the config loader replaces a non-customized prompt.system with the current built-in prompt on load.

…providers

Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
@quiet-node
quiet-node merged commit bfaa8f9 into main Jul 21, 2026
6 checks passed
@quiet-node
quiet-node deleted the fix/issue-349-default-language branch July 21, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not change default response language

1 participant