Skip to content

fix: generate session titles in the conversation's language, not always English#4683

Closed
dieutx wants to merge 1 commit into
NousResearch:mainfrom
dieutx:fix/title-generator-match-conversation-language
Closed

fix: generate session titles in the conversation's language, not always English#4683
dieutx wants to merge 1 commit into
NousResearch:mainfrom
dieutx:fix/title-generator-match-conversation-language

Conversation

@dieutx

@dieutx dieutx commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Session titles are always generated in English regardless of the conversation language. A Japanese user chatting in Japanese gets an English title like "Discussion About Python Decorators" instead of something in Japanese.

Companion to #4670 which fixes the same issue for context compression summaries.

Root Cause

The title generator prompt in agent/title_generator.py has no language-matching instruction:

Generate a short, descriptive title (3-7 words) for a conversation...

The LLM defaults to English.

Fix

Added one line to the prompt:

Write the title in the same language the user is using in the conversation.

Same approach as #4670 uses for compression summaries.

Tests

1 passed

@dieutx

dieutx commented Apr 3, 2026

Copy link
Copy Markdown
Contributor Author

Closing — can't verify the fix end-to-end on my setup. The prompt change is correct but #4670 may cover this too.

@dieutx dieutx closed this Apr 3, 2026
@dieutx dieutx deleted the fix/title-generator-match-conversation-language branch April 3, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant