Skip to content

fix(coach): respect the app language in document chats - #1420

Merged
MBombeck merged 1 commit into
MBombeck:mainfrom
ferges123:fix/coach-document-reply-locale
Nov 19, 2026
Merged

MBombeck merged 1 commit into
MBombeck:mainfrom
ferges123:fix/coach-document-reply-locale

Conversation

@ferges123

@ferges123 ferges123 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When the app was set to a language other than English or German, Coach could answer in English in chats with attached documents. The shared document-chat pipeline used the language of the safety instructions to choose the reply language.

The pipeline now uses the app’s active locale to choose the reply language. It continues to use the existing safety instructions and bases answers only on the attached documents. This applies to Coach conversations with attachments and chats opened from a document.

Tests

  • Added regression coverage for multiple locales, including languages other than English and German. The tests verify the requested reply language and that answers remain grounded in the attached documents.
  • All 13 tests in fenced-chat-pipeline.test.ts passed.

@ferges123
ferges123 marked this pull request as ready for review November 19, 2026 20:27
@MBombeck

Copy link
Copy Markdown
Owner

@ferges123 Thank you, that's exactly right: the reply language should follow the app language, not the two languages the contract was written in. Clean change with a test. Merging it for the next patch.

@MBombeck
MBombeck merged commit 23b21ec into MBombeck:main Nov 19, 2026
31 checks passed
@MBombeck MBombeck mentioned this pull request Nov 19, 2026
@ferges123
ferges123 deleted the fix/coach-document-reply-locale branch November 22, 2026 09:44
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.

2 participants