Forbid bilingual glosses in forced reply language.

Stop English replies from keeping Chinese parentheticals like failure (失联).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-15 20:52:03 +08:00
parent 91f2e9a5c8
commit 8360c2e4fc
4 changed files with 19 additions and 4 deletions

View file

@ -50,11 +50,14 @@ test('replyInstruction is empty for follow-user and forces otherwise', () => {
assert.equal(replyInstruction('follow-user'), '')
assert.match(replyInstruction('en'), /English/)
assert.match(replyInstruction('en'), /Do not switch to the user's language/)
assert.match(replyInstruction('en'), /Never add Chinese glosses/)
assert.match(replyInstruction('zh'), /简体中文/)
assert.match(replyInstruction('zh'), /Never add English glosses/)
})
test('replyReminder is empty for follow-user and reminds otherwise', () => {
assert.equal(replyReminder('follow-user'), '')
assert.match(replyReminder('en'), /Mandatory/)
assert.match(replyReminder('en'), /English/)
assert.match(replyReminder('en'), /No Chinese words/)
assert.match(replyReminder('zh'), /No English glosses/)
})