🌐 chore: translate non-English comments to English in chat store (#13728)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
LobeHub Bot
2026-04-11 18:37:00 +08:00
committed by GitHub
parent 390d82d730
commit 44c569c5db
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ function readAgentProfile(workspacePath: string): AgentProfile {
// Try to extract **Emoji:** value (single emoji)
const emojiMatch = content.match(/\*{0,2}Emoji:?\*{0,2}\s*(.+)/i);
const rawAvatar = emojiMatch ? emojiMatch[1].trim() : undefined;
// Filter out placeholder text like (待定), _(待定)_, (TBD), N/A, etc.
// Filter out placeholder text like (待定)(Chinese TBD), _(待定)_, (TBD), N/A, etc.
const isPlaceholder =
rawAvatar && /^[_*(].*[)_*]$|^(?:tbd|todo|n\/?a|none|待定|未定)$/i.test(rawAvatar);
const avatar = rawAvatar && !isPlaceholder ? rawAvatar : undefined;
+1 -1
View File
@@ -73,7 +73,7 @@ export interface SendMessageServerParams {
preloadMessages?: SendPreloadMessage[];
sessionId?: string;
threadId?: string;
// if there is activeTopicIdthen add topicId to message
// if there is activeTopicId, then add topicId to message
topicId?: string;
}
@@ -305,7 +305,7 @@ export class ConversationLifecycleActionImpl {
files: fileIdList,
role: 'user',
agentId: operationContext.agentId,
// if there is topicIdthen add topicId to message
// if there is topicId, then add topicId to message
topicId: operationContext.topicId ?? undefined,
threadId: operationContext.threadId ?? undefined,
imageList: tempImages.length > 0 ? tempImages : undefined,
@@ -320,7 +320,7 @@ export class ConversationLifecycleActionImpl {
content: LOADING_FLAT,
role: 'assistant',
agentId: operationContext.agentId,
// if there is topicIdthen add topicId to message
// if there is topicId, then add topicId to message
topicId: operationContext.topicId ?? undefined,
threadId: operationContext.threadId ?? undefined,
// Pass isSupervisor metadata for group orchestration (consistent with server)
@@ -407,7 +407,7 @@ export class ConversationLifecycleActionImpl {
parentId,
},
preloadMessages: undefined,
// if there is topicIdthen add topicId to message
// if there is topicId, then add topicId to message
topicId: topicId ?? undefined,
threadId: operationContext.threadId ?? undefined,
// Support creating new thread along with message