Repository navigation
Write session summary entries in the same language as the conversation - #594
Merged
Merged
Conversation
…gital-Process-Tools#593) Save-session summaries were produced in English for non-English conversations because the prompt template never told the summarizer to follow the conversation language. Add one rule to prompts/save-session.prompt.txt asking for the entry to be written in the same language as the conversation, keeping file names, identifiers, and technical terms in their original form. Verified locally: a Chinese conversation now yields a Chinese entry. compress-ndc.prompt.txt needs no change: its non-destructive compression contract (zero information loss) already preserves the source language. Co-Authored-By: Claude Code <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds one rule to
prompts/save-session.prompt.txtso the daily-memory summarizer writes each entry in the same language as the conversation being summarized, keeping file names, identifiers, and technical terms in their original form.Why
The template contained English-only instructions and never asked the summarizer to follow the conversation language, so non-English sessions produced English log entries (observed with Chinese conversations).
How verified
Applied the rule to a local template and re-ran a save over a Chinese conversation: the resulting entry was Chinese while file names and technical terms stayed unchanged.
compress-ndc.prompt.txtintentionally needs no change — its non-destructive compression contract (zero information loss) already preserves the source language.Closes #593