mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 00:35:51 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -184,7 +184,7 @@ async function generateTitleAndBranch(
|
||||
})
|
||||
|
||||
// Extract text from the response
|
||||
const firstBlock = response.message.content[0] as { type?: string; text?: string } | undefined
|
||||
const firstBlock = response.message!.content?.[0] as { type?: string; text?: string } | undefined
|
||||
if (firstBlock?.type !== 'text') {
|
||||
return { title: fallbackTitle, branchName: fallbackBranch }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user