From 018507412457d8b15b38787fea5d9660a86932ec Mon Sep 17 00:00:00 2001 From: cwbcheng Date: Fri, 7 Aug 2026 06:04:41 +0800 Subject: [PATCH] fix: instruct fix agent to write summaries in Simplified Chinese --- server/babysitter.test.ts | 1 + server/babysitter.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/server/babysitter.test.ts b/server/babysitter.test.ts index 7edd886..a10a943 100644 --- a/server/babysitter.test.ts +++ b/server/babysitter.test.ts @@ -2753,6 +2753,7 @@ test("babysitPR uses a CODEFACTORY_HOME worktree, passes GitHub context, and ver assert.match(receivedPrompt, /GitHub follow-up replies and review-thread resolution will be handled by the babysitter/i); assert.match(receivedPrompt, /auditToken=codefactory-feedback:gh-review-comment-1/); assert.match(receivedPrompt, /FEEDBACK_SUMMARY_START/); + assert.match(receivedPrompt, /write every summary block in Simplified Chinese/); assert.equal(receivedEnv?.GITHUB_TOKEN, "test-token"); assert.equal(receivedEnv?.GH_TOKEN, "test-token"); diff --git a/server/babysitter.ts b/server/babysitter.ts index f0cd197..a5d599a 100644 --- a/server/babysitter.ts +++ b/server/babysitter.ts @@ -585,6 +585,7 @@ function buildAgentFixPrompt(params: { " ", " FEEDBACK_SUMMARY_END", " Include one block per audit token. These summaries will be posted as follow-up comments on the PR.", + "Language: write every summary block in Simplified Chinese. These summaries are posted on the PR, so use the same language for the whole comment.", "4) If documentation tasks were assigned, emit exactly one docs summary block in the following format:", " DOCS_SUMMARY_START ", " ",