Commit graph

14965 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
8327f4a9e1
Merge pull request #6505 from continuedev/dallin/config-yaml-96
chore: config-yaml v96
2025-07-08 08:44:47 -07:00
Nate Sesti
37911e4ccb
Merge pull request #6504 from continuedev/dallin/openai-adapters-45
chore: openai-adapters 1.0.45
2025-07-08 08:44:27 -07:00
Dallin Romney
922441918a
Merge pull request #6496 from continuedev/nate/pr-compliance-checks-workflow
feat: add comprehensive PR compliance checks workflow
2025-07-08 01:17:19 -07:00
Dallin Romney
26cef4e4a1 chore: config-yaml v96 2025-07-07 22:56:39 -07:00
Dallin Romney
6bce891c87 chore: bump openai-adapters to 45 2025-07-07 22:52:35 -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
b3ed984e16 add env secret resolution for continue sdk 2025-07-07 19:54:45 -07:00
Dallin Romney
ed3217aaff remove extraneous bedrock load errors, don't force bedrock openai adapter 2025-07-07 19:53:50 -07:00
Dallin Romney
e389050dda proxy missing env secrets 2025-07-07 19:26:55 -07:00
Dallin Romney
2b88e54e37 support secretAccessKey and accessKeyId for bedrock 2025-07-07 18:47:37 -07:00
Dallin Romney
81860c6028 rerank and embed functions 2025-07-07 18:17:55 -07:00
Dallin Romney
537d5439d0 fix empty message bedrock openai adapter bug 2025-07-07 15:29:33 -07:00
Dallin Romney
ee12f2bd65 WIP: bedrock openai adapter 2025-07-07 14:56:30 -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
Nate
81c80ebf52 ci: add link to recommended extension for conv commits 2025-07-07 12:49:03 -07:00
Nate
2c8fd74cd1 fix: comment with guidance 2025-07-07 12:46:02 -07:00
Nate
8b8a8123e7 update compliance.yaml 2025-07-07 12:37:36 -07:00
Nate
714a41c1d8 feat: add comprehensive PR compliance checks workflow 2025-07-07 12:26:26 -07:00
Dallin Romney
f260ea0abc
Merge pull request #6439 from continuedev/dallin/limit-web-tool-output
Truncate large agent tool output
2025-07-07 12:18:58 -07:00
Nate Sesti
44c4c82e90
Merge pull request #6280 from continuedev/bdougie/mcp-cwd
feat: adds cwd to the MCP yaml as an option.
2025-07-07 12:13:54 -07:00
Brian 'bdougie' Douglas
30596c06d4 Merge branch 'main' into bdougie/mcp-cwd 2025-07-07 11:43:55 -07:00
Patrick Erichsen
47b7f3c74c
Merge pull request #6484 from continuedev/exigow/attach-env
fix: Attach environment type to reported exceptions
2025-07-07 11:34:42 -07:00
Patrick Erichsen
f36c6c2cb2
Merge pull request #6476 from continuedev/dallin/allow-interruptions
Allow tool call interruptions
2025-07-07 11:28:29 -07:00
Dallin Romney
559faae153 use exported diff lines limit 2025-07-07 11:24:19 -07:00
Patrick Erichsen
7165a7b89a
Merge pull request #6466 from chezsmithy/feat-amazon-nova
feat: ✨ Enable amazon nova models
2025-07-07 11:24:12 -07:00
Patrick Erichsen
063e774bce
Merge pull request #6463 from continuedev/jacob/enhancement/nextedit-render
Jacob/enhancement/nextedit render
2025-07-07 11:23:33 -07:00
Brian Douglas
8e9391808e
Merge pull request #6492 from continuedev/bdougie/docs-redirect-fix
fix: move /advanced to /customize
2025-07-07 11:03:52 -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
Brian 'bdougie' Douglas
bfa6e29b7a fix redirects 2025-07-07 10:48:46 -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
Brian 'bdougie' Douglas
5789e7e1a1 move settings to match old location 2025-07-07 10:39:46 -07:00
Dallin Romney
be561ff54c add plan as actual mode in redux, add basePlanSystemMessage 2025-07-07 10:35:39 -07:00
Brian 'bdougie' Douglas
1e895390e6 prettier 2025-07-07 10:30:01 -07:00
Brian 'bdougie' Douglas
7476742fbd fix broken links 2025-07-07 10:27:08 -07:00
Brian 'bdougie' Douglas
4a5323c808 move /advanced to /customize 2025-07-07 10:17:52 -07:00