mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
feat: 完成第二版类型清理
This commit is contained in:
@@ -1235,8 +1235,8 @@ export async function runInProcessTeammate(
|
||||
// Track in-progress tool use IDs for animation in transcript view
|
||||
let inProgressToolUseIDs = task.inProgressToolUseIDs
|
||||
if (message.type === 'assistant') {
|
||||
for (const block of message.message.content) {
|
||||
if (block.type === 'tool_use') {
|
||||
for (const block of (Array.isArray(message.message.content) ? message.message.content : [])) {
|
||||
if (typeof block !== 'string' && block.type === 'tool_use') {
|
||||
inProgressToolUseIDs = new Set([
|
||||
...(inProgressToolUseIDs ?? []),
|
||||
block.id,
|
||||
|
||||
Reference in New Issue
Block a user