- Fixed import for selectCurrentToolCalls in streamNormalInput
- Tool calls now properly transition from 'generating' to 'generated' status
- All parallel tool calling tests are now passing
- Enables true parallel tool execution with proper permission handling
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- This allows parallel tool calls to be processed without ID conflicts
- Tool calls are now stored correctly but still need state transition fix
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Reverted ID-based streaming logic back to index-based approach
- Reverted permission processing changes
- Preserved existing parallel tool calls infrastructure
- Tests show tool calls are stored but not transitioning to "generated" status
- Ready to start fresh on the parallel tool calling issue
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fix findCurrentToolCalls to prioritize toolCallStates array over single toolCallState
- Remove all backward compatibility code for single toolCallState field
- Update clearDanglingMessages to only use toolCallStates array
- Clean up utility function tests to only test new behavior
- Add comprehensive test coverage for parallel tool calls functionality
- Suppress ProseMirror DOM errors in test environment
- Fix TypeScript errors in test files
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Modified constructMessages to find correct tool call state for each tool call ID
- Updated tool message generation to use toolCallStates array when available
- Falls back to legacy toolCallState for backward compatibility
- Each tool call now gets proper output/content from its corresponding state
- Removed TODO comment about parallel tool call limitation
- TypeScript compilation passes, all utility tests pass
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Modified streamUpdate to process all tool calls instead of just [0]
- Store multiple tool calls in toolCallStates array
- Maintain backward compatibility with single toolCallState
- Update streaming logic to handle multiple tool call deltas
- Enhanced abort logic to cancel all pending tool calls
- Removed "Intentionally only supporting one tool call" limitation
- TypeScript compilation passes, all utility tests pass
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Changed from selectCurrentToolCall to selectCurrentToolCallsByStatus
- Show individual UI for each tool call requiring approval
- Display dynamic text: "1 pending tool call" vs "X pending tool calls"
- Individual approve/reject buttons for each tool call
- Added test IDs with toolCallId for specific tool testing
- Used only Tailwind classes, no styled components
- Returns null when no pending tool calls exist
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Changed from selectCurrentToolCall to selectCurrentToolCalls selector
- Added loop to iterate over all tool calls in a response
- Each tool call is marked as "generated" with setToolGenerated
- Auto-execute tools with "allowedWithoutPermission" policy
- Tools with "allowedWithPermission" require manual approval
- Maintains backward compatibility with single tool calls
- TypeScript compilation passes, core functionality verified
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Renamed function from callCurrentTool to callToolById to better reflect its purpose
- Updated function signature to accept toolCallId parameter for parallel tool execution
- Renamed file from callCurrentTool.ts to callToolById.ts
- Updated all import paths and call sites across codebase
- Verified TypeScript compilation passes
- All utility function tests still pass (21/21)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove findCurrentToolCall and replace with parallel-aware alternatives
- Add hasCurrentToolCalls() for boolean checks
- Add findCurrentToolCallsByStatus() for status-specific filtering
- Add new selectors: selectCurrentToolCalls, selectHasCurrentToolCalls, selectCurrentToolCallsByStatus
- Keep selectCurrentToolCall as legacy selector (returns first tool call)
- Update all imports to use proper selectors
- Comprehensive unit tests with 21 passing tests
- Maintain backward compatibility while enabling parallel tool calls
Key Changes:
- Deprecated single tool call logic in favor of array-based approach
- All utility functions now handle both single and multiple tool call scenarios
- TypeScript compilation clean, all tests passing
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Update test to use proper ChatMessage format with toolCalls array
- Fix TypeScript errors by using correct message part types
- Test now properly validates parallel tool calls behavior
- First test passes, showing system can handle multiple tool calls without crashing
- Other tests fail as expected since parallel tool calls aren't implemented yet
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add toolCallStates array to ChatHistoryItem interface for multiple tool calls
- Update findToolCall and findCurrentToolCall utilities to support both single and multiple tool calls
- Add findCurrentToolCalls function to get all current tool calls
- Create comprehensive test suite for parallel tool calls
- Maintain backward compatibility with existing single tool call logic
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>