[GH-ISSUE #4750] [Other] the conversation summary is written in English whatever the conversation language, and Strata neither overrides nor localises that instruction #2180

Closed
opened 2026-11-04 01:57:17 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4750

2026-11-06 核对结果:装机 0.2.11 与 main@9f7d977d2 已存在该修复——压缩摘要请求附加"Write the summary in the language the person used … Keep file paths, commands, error strings, identifiers and numbers exactly as they appear"(context-budget.mjs SUMMARY_LANGUAGE_RULE / withSummaryLanguage,测试引用 #4750)。未做 GUI 实测。可关单;如摘要仍为英文请带会话片段。


Area

[Other] (the agent runtime Strata ships — the compaction prompt)

Desktop app, Terminal or source?

Desktop app (Windows). The prompt is inside the compaction plugin bundled with the app; Strata's side is that it neither overrides nor localises it.

What happened

The conversation summary that replaces the older history is written in English whatever language the conversation is in. The instruction that produces it says so:

- Write concise English engineering prose. Preserve exact file paths, commands, error strings, identifiers, numeric values, function signatures, and …

(installed with 0.2.8 at harness/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js:273; the eight section headings it fills in and the preamble around them, :243-280, are English as well.)

Strata neither overrides nor translates it. Searching the repo at tag v0.2.8 for any summarisation provider/model/prompt override returns nothing: apps/host/server/agent/preset.mjs:73-77 registers compaction-basic with only modelPolicies (the per-model headroomTokens from apps/host/server/agent/profile.mjs:214, :244, :286) and the pruner's character budgets; apps/host/server/agent/plugins/strata-context.mjs:130 and :145 reuse the harness's instruction message verbatim when it has to split the summary request into pieces. The plugin's own locale files (dsh-compaction-basic/locale/en.json, zh.json) carry only the plugin's title and description, not the prompt. By contrast the app's own compaction notices are translated — apps/host/server/agent/context-fit.mjs:61-76 ships in all nine languages. So the visible explanation is localised and the artifact it explains is not.

Why this costs a Chinese (or Japanese, Korean, Russian) user more than a language preference:

  • The checkpoint is what the model reads back for the rest of the task. A Chinese conversation's own phrasing — what the person actually asked for, the wording they insisted on, the Chinese terms in the domain — survives only as quoted strings; everything else comes back paraphrased in English, and the model then continues in whichever language the surviving text suggests.
  • A small local model is exactly the case where an English-only instruction is least reliable: it may answer in Chinese while writing the checkpoint, or lose the Chinese terms it was using. Nothing in Strata pins the language to the conversation; nothing lets the person choose.
  • It also makes the checkpoint unreadable to the person. They cannot audit what the app decided to forget, which is the main way a user catches a bad summary.

Smallest steps or command that reproduce it

  1. Load a local model, set the app's language to 简体中文, and hold a Chinese conversation with file paths and commands in it until compaction fires (on a 32K window that is about 20,000 tokens; the arithmetic is in #4744).
  2. Open the app's compaction notice (it appears in Chinese) and then look at what the model is now working from: the replacement message starts with <compacted-summary> and its section headings and prose are English.
  3. Ask the assistant to restate the original request. It restates the English summary rather than the Chinese conversation, and the Chinese wording the person used is gone unless it happens to sit in the newest kept tail.

Reproduction status

Confirmed for the prompt text and for the absence of any override (read at tag v0.2.8 in the repo, and in the plugin installed with 0.2.8). Not verified: how strongly a given local model obeys the English rule, and how much of the loss is language versus length — that needs a scripted A/B on one model, which I did not run. The person at the keyboard reports the practical effect over long Chinese sessions (the app starts answering from an English restatement of their own request).

Strata version

Strata 0.2.8 — app 0.2.8, Control and engine 0.1.54, agent component deepseek-harness 0.2.1-alpha.3.

Graphics card, memory and system

NVIDIA GeForce RTX 3080 Ti Laptop GPU 16 GB - 64 GB RAM - Windows 11 Pro build 26300

Model, size and settings

Qwen3.8-Flash-Next IQ3_S, 384K context, app language 简体中文. The prompt is model-independent.

Logs

None: the summary is generated as part of the normal request path.

Searched open and closed issues for summariz, summaris, compaction language, English, localis, translat, and for the exact phrase "Write concise English": the compaction issues found (#3998, #3928, #2228, #3694 closed, #4542) are all about cost, thresholds or lost progress — none is about the language of the checkpoint. The translation work the repo has done recently (#3479, #3825, and French in 0.2.7) covers interface strings, not this prompt. Nothing else overlaps.

Suggested fix (not tested)

  • Write the checkpoint in the conversation's language, keeping the "preserve exact file paths, commands, error strings, identifiers" clause untouched — that clause is the reason English is safe today, and it should stay literal either way.
  • If a fixed language is preferred for tooling reasons, make it a setting: the same place that already sets the interface language has the value, and modelPolicies from profile.mjs:214 is already per-model, so a per-conversation language field would sit beside it without a new mechanism.
  • Either way, show the person the checkpoint in the app (it is already the message that replaced their history) so a bad summary can be caught instead of inferred.
Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4750 **2026-11-06 核对结果**:装机 0.2.11 与 main@9f7d977d2 已存在该修复——压缩摘要请求附加"Write the summary in the language the person used … Keep file paths, commands, error strings, identifiers and numbers exactly as they appear"(context-budget.mjs SUMMARY_LANGUAGE_RULE / withSummaryLanguage,测试引用 #4750)。未做 GUI 实测。可关单;如摘要仍为英文请带会话片段。 --- ### Area [Other] (the agent runtime Strata ships — the compaction prompt) ### Desktop app, Terminal or source? Desktop app (Windows). The prompt is inside the compaction plugin bundled with the app; Strata's side is that it neither overrides nor localises it. ### What happened The conversation summary that replaces the older history is written in English whatever language the conversation is in. The instruction that produces it says so: ``` - Write concise English engineering prose. Preserve exact file paths, commands, error strings, identifiers, numeric values, function signatures, and … ``` (installed with 0.2.8 at `harness/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js:273`; the eight section headings it fills in and the preamble around them, `:243-280`, are English as well.) Strata neither overrides nor translates it. Searching the repo at tag `v0.2.8` for any summarisation provider/model/prompt override returns nothing: `apps/host/server/agent/preset.mjs:73-77` registers `compaction-basic` with only `modelPolicies` (the per-model `headroomTokens` from `apps/host/server/agent/profile.mjs:214`, `:244`, `:286`) and the pruner's character budgets; `apps/host/server/agent/plugins/strata-context.mjs:130` and `:145` reuse the harness's instruction message verbatim when it has to split the summary request into pieces. The plugin's own locale files (`dsh-compaction-basic/locale/en.json`, `zh.json`) carry only the plugin's title and description, not the prompt. By contrast the app's own compaction notices *are* translated — `apps/host/server/agent/context-fit.mjs:61-76` ships in all nine languages. So the visible explanation is localised and the artifact it explains is not. Why this costs a Chinese (or Japanese, Korean, Russian) user more than a language preference: - The checkpoint is what the model reads back for the rest of the task. A Chinese conversation's own phrasing — what the person actually asked for, the wording they insisted on, the Chinese terms in the domain — survives only as quoted strings; everything else comes back paraphrased in English, and the model then continues in whichever language the surviving text suggests. - A small local model is exactly the case where an English-only instruction is least reliable: it may answer in Chinese while writing the checkpoint, or lose the Chinese terms it was using. Nothing in Strata pins the language to the conversation; nothing lets the person choose. - It also makes the checkpoint unreadable to the person. They cannot audit what the app decided to forget, which is the main way a user catches a bad summary. ### Smallest steps or command that reproduce it 1. Load a local model, set the app's language to 简体中文, and hold a Chinese conversation with file paths and commands in it until compaction fires (on a 32K window that is about 20,000 tokens; the arithmetic is in #4744). 2. Open the app's compaction notice (it appears in Chinese) and then look at what the model is now working from: the replacement message starts with `<compacted-summary>` and its section headings and prose are English. 3. Ask the assistant to restate the original request. It restates the English summary rather than the Chinese conversation, and the Chinese wording the person used is gone unless it happens to sit in the newest kept tail. ### Reproduction status Confirmed for the prompt text and for the absence of any override (read at tag `v0.2.8` in the repo, and in the plugin installed with 0.2.8). Not verified: how strongly a given local model obeys the English rule, and how much of the loss is language versus length — that needs a scripted A/B on one model, which I did not run. The person at the keyboard reports the practical effect over long Chinese sessions (the app starts answering from an English restatement of their own request). ### Strata version Strata 0.2.8 — app `0.2.8`, Control and engine `0.1.54`, agent component `deepseek-harness` `0.2.1-alpha.3`. ### Graphics card, memory and system NVIDIA GeForce RTX 3080 Ti Laptop GPU 16 GB - 64 GB RAM - Windows 11 Pro build 26300 ### Model, size and settings Qwen3.8-Flash-Next IQ3_S, 384K context, app language 简体中文. The prompt is model-independent. ### Logs None: the summary is generated as part of the normal request path. ### Duplicate search Searched open and closed issues for `summariz`, `summaris`, `compaction language`, `English`, `localis`, `translat`, and for the exact phrase "Write concise English": the compaction issues found (#3998, #3928, #2228, #3694 closed, #4542) are all about cost, thresholds or lost progress — none is about the language of the checkpoint. The translation work the repo has done recently (#3479, #3825, and French in 0.2.7) covers interface strings, not this prompt. Nothing else overlaps. ### Suggested fix (not tested) - Write the checkpoint in the conversation's language, keeping the "preserve exact file paths, commands, error strings, identifiers" clause untouched — that clause is the reason English is safe today, and it should stay literal either way. - If a fixed language is preferred for tooling reasons, make it a setting: the same place that already sets the interface language has the value, and `modelPolicies` from `profile.mjs:214` is already per-model, so a per-conversation language field would sit beside it without a new mechanism. - Either way, show the person the checkpoint in the app (it is already the message that replaced their history) so a bad summary can be caught instead of inferred.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2180
No description provided.