mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4750] [Other] the conversation summary is written in English whatever the conversation language, and Strata neither overrides nor localises that instruction #2180
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
(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.8for any summarisation provider/model/prompt override returns nothing:apps/host/server/agent/preset.mjs:73-77registerscompaction-basicwith onlymodelPolicies(the per-modelheadroomTokensfromapps/host/server/agent/profile.mjs:214,:244,:286) and the pruner's character budgets;apps/host/server/agent/plugins/strata-context.mjs:130and:145reuse 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-76ships 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:
Smallest steps or command that reproduce it
<compacted-summary>and its section headings and prose are English.Reproduction status
Confirmed for the prompt text and for the absence of any override (read at tag
v0.2.8in 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 engine0.1.54, agent componentdeepseek-harness0.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)
modelPoliciesfromprofile.mjs:214is already per-model, so a per-conversation language field would sit beside it without a new mechanism.