Commit graph

2395 commits

Author SHA1 Message Date
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
pugazhendhi-m
26baaf89a3
Merge branch 'main' into WEB-1756 2025-02-07 13:02:46 +05:30
Matt Rubens
8f410b7bbf
Merge pull request #812 from RooVetGit/cte/catch-openai-handler-exception
Don't throw when `openAiBaseUrl` is not a valid URL
2025-02-06 07:42:38 -05:00
cte
e0336b5ad8 Don't throw when openAiBaseUrl is not a valid URL 2025-02-06 01:25:08 -08:00
Pugazhendhi
18f15559e3 Fixes test file 2025-02-06 13:03:03 +05:30
Pugazhendhi
286386315e Updates to prod url 2025-02-06 12:57:43 +05:30
Pugazhendhi
915d173720 Reverts changes 2025-02-06 12:53:24 +05:30
Pugazhendhi
32f91b6291 Merged with main branch 2025-02-06 12:44:22 +05:30
Sam
a87502e94d
Merge branch 'main' into deepseek_r1_ollama 2025-02-06 16:48:57 +11:00
Matt Rubens
517b5450f2
Merge pull request #807 from samhvw8/feat/terminal-menu-context
feat: add terminal context menu command
2025-02-05 23:41:32 -05:00
sam hoang
679866ca52 add user input 2025-02-06 10:48:34 +07:00
sam hoang
0ceb370008 feat: add terminal integration commands
- Add terminal context menu commands for:
  - Adding terminal content to context
  - Fixing failed commands
  - Explaining commands
- Implement terminal content selection and retrieval
- Add support prompts for terminal actions
- Register terminal action handlers
2025-02-06 10:27:12 +07:00
Sam
f2c96b89c0 fix(r1): ensure r1 works with ollama 2025-02-06 14:21:29 +11:00
Matt Rubens
4a42feca72
Merge pull request #675 from nissa-seru/truncation-updates
Enable separate config for truncation for models without context caching
2025-02-05 15:37:25 -05:00
Matt Rubens
49c21b6c69 Add new gemini models 2025-02-05 12:04:36 -05:00
Nissa Seru
98c8cc9624 Updated sliding window logic to be inverse of trigger criteria 2025-02-05 04:53:21 -05:00