Commit graph

1058 commits

Author SHA1 Message Date
sam hoang
e9d9e03b72 fix: improve model picker refresh handling and API config updates
- Add proper change detection for refreshValues using deep comparison
- Increase debounce timing from 50ms to 100ms for better performance
- Add proper error handling for missing Requesty API key
- Fix apiConfiguration update to properly merge with existing state
- Remove debug console logs
2025-02-11 01:48:55 +07:00
sam hoang
793b13ea28 remove verbose 2025-02-11 00:43:45 +07:00
Matt Rubens
2449c49358 Merge remote-tracking branch 'origin/main' into feat/roo-code-requesty-provider 2025-02-10 10:53:51 -05:00
Matt Rubens
059de0f6af
Merge pull request #915 from jcbdev/openroute_api_usage_data_failures
add retries to openrouter generation endpoint to prevent failures on …
2025-02-10 10:50:15 -05:00
Matt Rubens
ceec089745
Merge pull request #863 from RooVetGit/temperature_control
Configure per-configuration temperature
2025-02-10 10:48:54 -05:00
James Barker
b85960ba2a
updated to fix no break condition on loop and to use the same number of retries and delay as the glama provider (for consistency)
Signed-off-by: James Barker <james@jcbdevelopment.co.uk>
2025-02-10 14:58:44 +00:00
sam hoang
d6e55afb51 using ModelPicker for Requesty Model Picker 2025-02-10 20:14:50 +07:00
sam hoang
41fcf85c48 refactor(api): improve OpenAI handler inheritance
- Add OpenAiHandlerOptions interface for configuration
- Extract processUsageMetrics to base class for reuse
- Update RequestyHandler to extend OpenAiHandler
- Add proper type safety for metrics handling
- Clean up code duplication across handlers
2025-02-10 20:14:23 +07:00
sam hoang
91fe764cb8 feat: add Requesty API provider support
- Add RequestyHandler implementation for API integration
- Add RequestyModelPicker component for model selection
- Update shared types and messages for Requesty support
- Update API options to include Requesty provider
2025-02-10 20:13:43 +07:00
James Barker
9c480aaac2
add retries to openrouter generation endpoint to prevent failures on slow usage stat updates server side
Signed-off-by: James Barker <james@jcbdevelopment.co.uk>
2025-02-10 09:13:55 +00:00
cte
3aed7d14cf Fix tests on win32 systems 2025-02-10 00:24:25 -08:00
cte
f447356d81 Disable checkpoints on Windows 2025-02-09 23:53:47 -08:00
Matt Rubens
2ccab1444b Merge remote-tracking branch 'origin/main' into temperature_control 2025-02-09 22:53:44 -05:00
Matt Rubens
d8274aca70
Merge pull request #902 from MuriloFP/fix-disabled-mcp-list
fix: ensure disabled MCP servers appear in settings UI
2025-02-09 22:34:50 -05:00
Matt Rubens
3802791156
Merge pull request #909 from RooVetGit/cte/delete-local-git-config-if-necessary
Delete local git config when appropriate
2025-02-09 22:19:49 -05:00
cte
ffd0e97b32 Delete local git config when appropriate 2025-02-09 18:34:01 -08:00
Roo Code
50f6e3ea65 Fix "Restore Checkpoint" popover 2025-02-09 17:50:22 -08:00
MuriloFP
0bb6112257 fix: ensure disabled MCP servers appear in settings UI
When the MCP server was initialized before opening RooCode, disabled servers
would not appear in the settings UI. This was fixed by:

1. Using getAllServers() instead of getServers() in ClineProvider.ts for UI
   state updates, ensuring all servers (including disabled ones) are shown
2. Maintaining getServers() for operational use (AI prompts, tool calls)
   where disabled servers should be filtered out

The fix maintains clean separation between UI display and operational
server filtering.
2025-02-09 19:15:01 -03:00
Roo Code
96ab5dcb1f Don't clobber existing user.name and user.email git config values 2025-02-09 00:28:17 -08:00
Matt Rubens
c66f685e03
Merge pull request #878 from RooVetGit/mrubens-patch-4
Update CheckpointService.test.ts
2025-02-09 01:04:21 -05:00
Matt Rubens
99f2333154
Merge pull request #873 from nissa-seru/create-logging-util
Implement logging utility
2025-02-09 00:55:36 -05:00
Roo Code
e38d9ecb22 Merge remote-tracking branch 'origin/main' into mrubens-patch-4 2025-02-09 00:53:18 -05:00
Roo Code
2ddf54de5d Support the Ark provider when used through OpenAI compatible 2025-02-08 23:53:19 -05:00
cte
152c5a026a Remove simple-git debugging 2025-02-08 09:09:14 -08:00
Nissa Seru
b194bcea4d Merge branch 'create-logging-util' of https://github.com/nissa-seru/Roo-Code into create-logging-util 2025-02-08 12:06:34 -05:00
Nissa Seru
6ae6535201 Fix meta spreading order 2025-02-08 12:06:12 -05:00
Matt Rubens
719331385b
Update CheckpointService.test.ts 2025-02-08 12:00:11 -05:00
Vignesh Subbiah
5995923daf
Merge branch 'main' into pm/unbound-fetch-models 2025-02-08 22:11:22 +05:30
Nissa Seru
c49f685cbf
Merge branch 'main' into create-logging-util 2025-02-08 09:08:03 -07:00
Nissa Seru
41d18bdaaa
Update src/utils/logging/index.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-02-08 09:52:07 -05:00
Nissa Seru
f403a336dc Implement logging utility 2025-02-08 09:41:29 -05:00
Vignesh Subbiah
c049436101 DRYs up read model from cache logic 2025-02-08 18:44:32 +05:30
Vignesh Subbiah
70ed217149
Merge branch 'main' into pm/unbound-fetch-models 2025-02-08 17:46:35 +05:30
cte
59ddaa9f00 Current checkpoint indicator 2025-02-08 01:07:31 -08:00
Joe Manley
71d344d0a8 Fix tests 2025-02-07 23:17:02 -08:00
Joe Manley
88fb6ec15a Remove magic numbers 2025-02-07 23:09:06 -08:00
Joe Manley
adedc1c2c6 Remove magic numbers 2025-02-07 23:08:26 -08:00
cte
121f3ab7fa Checkpoint service integration 2025-02-07 22:27:27 -08:00
cte
2bff829816 Checkpoints service 2025-02-07 22:23:54 -08:00
Joe Manley
ce858aa34e
Update src/api/providers/ollama.ts
Suggestion from Matt

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-02-07 21:22:18 -08:00
Roo Code
bc9773ff9a Configure per-configuration temperature 2025-02-08 00:21:13 -05:00
MuriloFP
c9be470319 fix: prevent race conditions in McpServerManager singleton initialization
Added thread-safe initialization to the McpServerManager singleton pattern to
prevent potential race conditions when getInstance is called concurrently.
The changes include:

1. Added initializationPromise to track ongoing initialization
2. Implemented double-checked locking pattern:
   - First check: Return existing instance if available
   - Second check: Wait for any ongoing initialization
   - Third check: Double-check inside initialization block
3. Added proper cleanup in finally block to prevent deadlocks

This ensures that:
- Only one McpHub instance is ever created
- Concurrent calls wait for initialization to complete
- Resources are properly initialized and cleaned up
- No memory leaks from incomplete initialization

The fix maintains the existing functionality while making it safe for
concurrent access in VS Code's multi-window environment.
2025-02-07 17:12:39 -03:00
MuriloFP
ef95562dfe fix: ensure MCP server list appears in settings when server starts first
When the MCP server was initialized before opening RooCode, the server list
would not appear in the settings. This was fixed by:

1. Adding proper server list initialization in ClineProvider.ts when the
   webview launches, checking if mcpHub exists and sending its current
   servers to the webview:

   ```typescript
   if (this.mcpHub) {
     this.postMessageToWebview({
       type: "mcpServers",
       mcpServers: this.mcpHub.getServers()
     })
   }
   ```

2. Using the public getServers() method from McpHub instead of relying on
   internal state updates, ensuring consistent server list state across
   the application.

The fix maintains clean separation of concerns and follows existing patterns
for state management between the extension and webview.
2025-02-07 16:57:21 -03:00
MuriloFP
b2b5e1ffa6 fix: Implement singleton pattern for MCP server management to prevent multiple instances
Problem:
- Multiple instances of the Roo Code application were launching separate MCP server instances
- This led to unnecessary resource consumption and potential conflicts between instances

Solution:
1. Created new McpServerManager singleton class to manage MCP server instances:
   - Static getInstance() method ensures only one McpHub instance exists
   - Tracks registered ClineProvider instances
   - Handles cleanup on extension deactivation

2. Modified ClineProvider class:
   - Changed mcpHub from private to protected
   - Added getMcpHub() public getter method
   - Updated initialization to use McpServerManager
   - Added unregister logic in dispose()

3. Updated extension.ts to handle cleanup:
   - Added McpServerManager cleanup in deactivate()

Technical Implementation:
- Uses WeakRef for provider tracking to allow proper garbage collection
- Maintains global state to track instance IDs
- Implements proper cleanup of resources on disposal
- Ensures backward compatibility with existing code

This change significantly improves resource usage and prevents potential conflicts
between multiple instances of the application while maintaining all existing
functionality.
2025-02-07 15:51:30 -03:00
Pugazhendhi
64a579e965 Fixes default model in test file 2025-02-07 19:31:36 +05:30
Pugazhendhi
ddc6b9c63f Changed default model to sonnet 3.5 2025-02-07 18:57:58 +05:30
Roo Code
4b3ea07033 Prevent provider client instantiations from throwing 2025-02-07 03:06:01 -08:00
Pugazhendhi
01be0389ee Fixed indentation 2025-02-07 14:06:57 +05:30
Pugazhendhi
e0417e99f8 Fixed indentation 2025-02-07 14:05:56 +05:30
Pugazhendhi
5955c01ce8 Removed AutoApproveMenu.test.tsx 2025-02-07 14:05:08 +05:30