mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 08:15:53 +00:00
feat: 完成第二版类型清理
This commit is contained in:
@@ -130,7 +130,8 @@ export function startAgentSummarization(
|
||||
)
|
||||
continue
|
||||
}
|
||||
const textBlock = msg.message.content.find(b => b.type === 'text')
|
||||
const contentArr = Array.isArray(msg.message.content) ? msg.message.content : []
|
||||
const textBlock = contentArr.find(b => b.type === 'text')
|
||||
if (textBlock?.type === 'text' && textBlock.text.trim()) {
|
||||
const summaryText = textBlock.text.trim()
|
||||
logForDebugging(
|
||||
|
||||
Reference in New Issue
Block a user