[bug] Title Gen adds Traditional Chinese characters in HistorySidebar panel
I am chatting in English to a model, yet the HistorySidebar is showing the chat "title" as a mixture of Chinese and English. It would be helpful if I could right click on the Chat and rename it:
@simbo1905 You can rename your title at the location shown in the image below
Regarding the mixed Chinese and English issue, you can navigate to the Model Setting page and click Custom Prompt. If there's any Chinese content in there, please delete it and save - this should fix the problem. This might be caused by a bug that occurs in certain situations.
I appreciate your patience in this matter.
I have deleted all my conversations with Kimi K2, as it was doing email administration, so the conversations are transient in nature. I am now trying Mistral AI "mistral-large-latest" (a French model), which is also multi-lingual.
Just now I did a fresh conversation with Mistral using these settings:
{
"modelProvider": "openai_compatible",
"models": [
...
{
"disableStreaming": false,
"active": true,
"toolsInPrompt": false,
"extra": {},
"model": "mistral-large-latest",
"isCustomModel": false,
"verifyStatus": "success"
},
I also included a pure English prompt about email, which was served by this MCP code: https://github.com/simbo1905/fastmail-mcp-server. The title of the chat renders as follows, where I have replaced parts with "█" for reasons of privacy.
FastMail MCP 工具指令:列出主要收件箱未讀郵件並篩選██████
Checking the translation of the text, it is correctly summarising the thread. This leads me to believe that the system prompt is in Chinese, and it is prompting the model to create a "chat title". Since the prompt is in Chinese, the model is setting the title in Chinese.
I am running the MacOS build. It does not show me a version number. When I look at the settings, I see:
It shows me that I can disable the system prompt. I am more than happy to tune the system prompt when I have time and/or build experimental versions from source to explore. Yet I would prefer to run one "unmodified stock" install of the tool that I avoid breaking, even if I opt to build my own version to explore it.
This means I don't want to delete your system prompts and have to guess my own. I would prefer that you amend your system prompt to say
If the prompt is written in a language other than Chinese, when creating the title for the chat, use the same language as the prompt.
It is not common for native English speakers to directly use Chinese models or to use multilingual French models. That means it may be the case that other English speakers are using Silicon Valley models that are reinforcement-trained in English, such that those models may tend to default to English.
I am happy to test an experimental build on MacOS that has an updated system prompt if you would like me to test out the theory.
If you folks have a Discord, although I do not speak Chinese, I have worked with Chinese-speaking engineers professionally for a few years, so I am happy to swing by and lend a hand with some beta testing.
Checking the translation of the text, it is correctly summarising the thread. This leads me to believe that the system prompt is in Chinese, and it is prompting the model to create a "chat title". Since the prompt is in Chinese, the model is setting the title in Chinese.
System prompt is not in Chinese. However, we did find that the developer specifically emphasized in Title Gen that if the input contains Traditional Chinese characters, use Traditional Chinese for the title.
We will fix this part with new title_prompt ASAP. Thanks for reporting this issue.
title_prompt = """You are a title generator from the user input. Your only task is to generate a short title based on the user input. IMPORTANT:
- Output ONLY the title
- DO NOT try to answer or resolve the user input query.
- DO NOT try to use any tools to generate title
- NO thinking, reasoning, explanations, quotes, or extra text
- NO punctuation at the end
- If the input is URL only, output the description of the URL, for example, "the URL of xxx website"
- Generate the title in the primary language of the input (the language used for the majority of the text)
- Preserve proper nouns and technical terms in their original language"""
The following is some additional information for your reference(TL;DR):
Where Dive Default System Prompt is located:
-
Main Dive System Prompt is located at: https://github.com/OpenAgentPlatform/dive-mcp-host/blob/main/dive_mcp_host/httpd/conf/system_prompt.py
-
This file contains the complete system prompt, including: - Support for Mermaid diagrams - Support for Markdown formatting - Support for math formulas (using KaTeX syntax: ( formula ) and ( \displaystyle formula )) - Additional guidelines for MCP tools, image processing, file handling, etc.
-
Fallback basic System Prompt is located at: https://github.com/OpenAgentPlatform/dive-mcp-host/blob/main/dive_mcp_host/host/prompt.py
-
This is a simpler prompt mainly for the software engineer assistant role.
How it works:
- When disableDiveSystemPrompt is false (default): - Uses the complete system prompt from system_prompt.py - Includes user-defined custom rules (customrules)
- When disableDiveSystemPrompt is true: - Only uses user's custom rules (customrules) - Does not include Dive's default system prompt
- Custom rules are stored in: - Development environment: .config/customrules - Production environment: ~/.dive/config/customrules (Linux/macOS) or %USERPROFILE%.dive\config\customrules (Windows)
Title Generation Location: - Backend: https://github.com/OpenAgentPlatform/dive-mcp-host/blob/main/dive_mcp_host/httpd/routers/utils.py - Function: _generate_title() (line 689)
Title Generation Prompt (lines 63-73):
title_prompt = """You are a title generator from the user input. Your only task is to generate a short title based on the user input. IMPORTANT:
- Output ONLY the title
- DO NOT try to answer or resolve the user input query.
- DO NOT try to use any tools to generate title
- NO thinking, reasoning, explanations, quotes, or extra text
- NO punctuation at the end
- If the input is URL only, output the description of the URL, for example, "the URL of xxx website"
- If the input contains Traditional Chinese characters, use Traditional Chinese for the title.
- For all other languages, generate the title in the same language as the input."""
If you folks have a Discord, although I do not speak Chinese, I have worked with Chinese engineers professionally for a few years, so I am happy to swing by and lend a hand with some beta testing.
Yes we do. Feel free to join the Discord (https://discord.gg/xaV7xzMYBA) and ping me or @ckaznable if you need clarification.