fix: use 'Assistant' as fallback name instead of 'AssistantNameMissing'
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -272,7 +272,7 @@ function formatTranscriptMarkdown(messages: ParsedMessage[], title?: string | nu
|
|||||||
lines.push('');
|
lines.push('');
|
||||||
|
|
||||||
for (const msg of messages) {
|
for (const msg of messages) {
|
||||||
const sender = msg.role === 'user' ? 'User' : (assistantName || 'AssistantNameMissing');
|
const sender = msg.role === 'user' ? 'User' : (assistantName || 'Assistant');
|
||||||
const content = msg.content.length > 2000
|
const content = msg.content.length > 2000
|
||||||
? msg.content.slice(0, 2000) + '...'
|
? msg.content.slice(0, 2000) + '...'
|
||||||
: msg.content;
|
: msg.content;
|
||||||
|
|||||||
Reference in New Issue
Block a user