Commit graph

3543 commits

Author SHA1 Message Date
Patrick Erichsen
8bdffaf44b Fix parallel tool calling functionality
- 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>
2025-07-08 15:40:46 -07:00
Patrick Erichsen
148d84fe03 Remove backward compatibility check in addToolCallDeltaToState
- 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>
2025-07-08 15:37:23 -07:00
Patrick Erichsen
c49f8412c3 Revert streaming fixes and preserve parallel tool calls progress
- 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>
2025-07-08 15:33:08 -07:00
Patrick Erichsen
bcf0969f34 Fix parallel tool calls utility functions and remove backward compatibility
- 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>
2025-07-08 13:52:44 -07:00
Patrick Erichsen
41a3106ad5 Update message construction for parallel tool calls
- 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>
2025-07-08 13:24:39 -07:00
Patrick Erichsen
c48eeb4642 Update Redux state management for parallel tool calls
- 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>
2025-07-08 13:22:22 -07:00
Patrick Erichsen
e3d6d166b4 Update PendingToolCallToolbar for parallel tool calls
- 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>
2025-07-08 13:19:49 -07:00
Patrick Erichsen
aa50f54999 Update streamNormalInput to handle multiple tool calls
- 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>
2025-07-08 13:15:06 -07:00
Patrick Erichsen
7cb78fe209 Rename callCurrentTool to callToolById for clarity
- 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>
2025-07-08 13:11:43 -07:00
Patrick Erichsen
082a73e277 Refactor utility functions for parallel tool call support
- 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>
2025-07-08 13:04:05 -07:00
Patrick Erichsen
ab5be7b171 Fix parallel tool calls test format to use OpenAI toolCalls structure
- 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>
2025-07-08 11:02:00 -07:00
Patrick Erichsen
e34d71e600 Add initial parallel tool calls support to core data structures
- 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>
2025-07-08 10:59:36 -07:00
Nate Sesti
eca51fffec
Merge pull request #6499 from continuedev/dallin/bedrock-openai-adapter
feat: Bedrock OpenAI adapter
2025-07-07 22:46:04 -07:00
Dallin Romney
e389050dda proxy missing env secrets 2025-07-07 19:26:55 -07:00
Nate Sesti
fbcc5a46b9
Merge pull request #6445 from continuedev/dallin/plan-mode
Plan Mode
2025-07-07 13:05:05 -07:00
Nate
860174eaa4 fix typo 2025-07-07 13:04:50 -07:00
Dallin Romney
b984c25b8f cubic-feedback 2025-07-07 10:58:40 -07:00
Dallin Romney
9b66433abc fix tool policies logic 2025-07-07 10:52:14 -07:00
Dallin Romney
b855109408 fix tool policies copy 2025-07-07 10:46:56 -07:00
Dallin Romney
518e18df43 update plan mode system message 2025-07-07 10:45:24 -07:00
Dallin Romney
be561ff54c add plan as actual mode in redux, add basePlanSystemMessage 2025-07-07 10:35:39 -07:00
Dallin Romney
7abc031c9c allow interruptions 2025-07-05 22:32:50 -07:00
Nate Sesti
b08d8219ac
Merge pull request #6474 from continuedev/nate/quick-fixe
Quick fixes (codebase related)
2025-07-05 10:32:02 -07:00
Nate Sesti
ea5e7e3cd1
Merge pull request #6467 from continuedev/nate/diff-ui-edit
don't expand edit tool codeblocks by default
2025-07-05 10:30:53 -07:00
Nate
de2d0c187f parse incorrectly formatted vectors so we can salvage broken indexes 2025-07-05 09:53:53 -07:00
Nate
9a5c4c0b50 fix tests 2025-07-05 09:30:48 -07:00
Nate
923b7e79d3 don't collapse code blocks in chat mode 2025-07-04 22:50:08 -07:00
Nate
76d73dbb91 hover color 2025-07-04 22:24:52 -07:00
Nate
85450d44e9 make edit container collapsible 2025-07-04 22:19:47 -07:00
Nate
5a598bf6cc don't expand edit tool codeblocks by default 2025-07-04 21:57:08 -07:00
Nate
b5df848e63 add telemetry for match result 2025-07-04 20:04:53 -07:00
Nate Sesti
f90fafbe36
Merge pull request #6303 from uinstinct/no-results-instruction
improve: instruct model when no context results were retrieved
2025-07-04 17:47:25 -07:00
Dallin Romney
d1651b4a2d add plan to toggle test 2025-07-03 20:47:01 -07:00
Dallin Romney
8a7baaaa48 plan mode 2025-07-03 20:45:23 -07:00
Nate Sesti
1637e01063
Merge pull request #6062 from continuedev/nate/analyze-agent-mode-errors
telemetry for stream_error
2025-07-03 19:35:13 -07:00
Nate
e30434722e remove bad tests 2025-07-03 19:25:24 -07:00
Nate
ace38dfc0e fix a few tests and prettier on test file 2025-07-03 19:20:28 -07:00
Nate
6fa241a3e4 Merge branch 'main' into no-results-instruction 2025-07-03 19:08:13 -07:00
Nate
d43af15aa8 Merge branch 'main' into nate/clean-gui 2025-07-03 19:06:22 -07:00
Nate
c31f2edfa6 Merge branch 'main' into nate/analyze-agent-mode-errors 2025-07-03 18:57:55 -07:00
Nate
429ad6c2d4 Merge branch 'main' into nate/improve-history-search-algorithm 2025-07-03 18:49:13 -07:00
Nate
ffe28e898c address feedback 2025-07-03 18:48:40 -07:00
Nate
23d095bbe7 move to thunk and add tests 2025-07-03 18:39:24 -07:00
Nate Sesti
b002317ddf
Merge pull request #6318 from continuedev/nate/diff-tool
UI Polish
2025-07-03 18:12:41 -07:00
Nate Sesti
f92253c3f3
Merge pull request #6421 from continuedev/pe/rule-dialog
feat: generate rule dialog
2025-07-03 18:07:56 -07:00
Nate Sesti
de8db5cdcb
Merge pull request #6434 from tingwai/tingwai/at-codebase-experimental-call-tools
@codebase use tool calling (under experimental flag)
2025-07-03 18:05:12 -07:00
Nate Sesti
1803de61cf
Merge pull request #6441 from continuedev/dallin/fix-flashing-tool-truncation
Less flashy truncate to tool call icon
2025-07-03 17:37:15 -07:00
Dallin Romney
879b279eb9 less flashy truncate tool icon 2025-07-03 17:19:56 -07:00
Dallin Romney
cd0b328327 package updates 2025-07-03 12:29:47 -07:00
Nate Sesti
e2fcf420bb
Merge pull request #6390 from tingwai/tingwai/indexing-error-handling-dont-halt-on-error
Prevent entire indexing process from stopping on error and surface messages to Indexing menu
2025-07-03 11:02:50 -07:00