Commit graph

2264 commits

Author SHA1 Message Date
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
Matt Rubens
c641c59160
Merge pull request #846 from RooVetGit/cte/catch-openai-provider-error
Prevent *all* provider clients from throwing
2025-02-07 07:55:40 -05:00
Roo Code
4b3ea07033 Prevent provider client instantiations from throwing 2025-02-07 03:06:01 -08:00
Matt Rubens
c14de4f232
Merge pull request #845 from RooVetGit/mrubens-patch-4
Update CHANGELOG.md
2025-02-07 01:32:18 -05:00
Matt Rubens
483feabb15
Update CHANGELOG.md
Oops, left out a few things in 3.3.12. Sorry!
2025-02-07 01:10:05 -05:00
Matt Rubens
003d4e43a6
Merge pull request #837 from RooVetGit/mrubens-patch-4
Update CHANGELOG.md
2025-02-06 23:14:31 -05:00
Matt Rubens
9b4a9391ee
Update CHANGELOG.md 2025-02-06 23:03:25 -05:00
Chris Estreich
5622272e75
Merge pull request #829 from RooVetGit/cte/shadcn-combobox
Add `@shadcn/ui` components required for the combobox
2025-02-06 16:13:12 -08:00
Roo Code
f05dd88369 Add Storybook story 2025-02-06 16:07:48 -08:00
Roo Code
4a1f5b96bc Add @shadcn/ui components required for the combobox 2025-02-06 15:06:16 -08:00
Matt Rubens
1d85424320
Merge pull request #828 from hannesrudolph/patch-3
Update README.md
2025-02-06 17:25:14 -05:00
Hannes Rudolph
3a058aa90f
Update README.md
Removed the badges for now
2025-02-06 15:24:16 -07:00
Matt Rubens
593afaccc1
Merge pull request #825 from hannesrudolph/patch-2
Fixed rate limited by upstream error
2025-02-06 17:01:53 -05:00
Hannes Rudolph
c0a61065b1
Fixed rate limited by upstream error 2025-02-06 13:48:47 -07:00
Chris Estreich
1c87cf3ba4
Merge pull request #823 from RooVetGit/cte/partially-reapply-00ec57a
Re-apply part of 00ec57a, npm script changes omitted
2025-02-06 08:58:35 -08:00
Chris Estreich
29773377fe
Merge pull request #822 from RooVetGit/cte/ensure-vsix-correctly-built
Validate vsix in publish GHA
2025-02-06 08:57:51 -08:00
cte
36dd8c9ce4 PR feedback 2025-02-06 08:53:21 -08:00
cte
5c55515959 Re-apply part of 00ec57a, npm script changes omitted 2025-02-06 08:51:34 -08:00
cte
327e764d85 Validate vsix in publish GHA 2025-02-06 08:38:31 -08:00
Matt Rubens
92561aae5b
Merge pull request #820 from RooVetGit/changeset-release/main
Changeset version bump
2025-02-06 09:52:27 -05:00
Matt Rubens
70d9ba2fbd
Update CHANGELOG.md 2025-02-06 09:52:13 -05:00
R00-B0T
c095f0cec9 Updating CHANGELOG.md format 2025-02-06 14:51:26 +00:00
github-actions[bot]
0715b1e5b0 changeset version bump 2025-02-06 14:50:40 +00:00
Matt Rubens
d6c5eba6e7
Merge pull request #819 from RooVetGit/3.3.14
3.3.14
2025-02-06 09:49:49 -05:00
Matt Rubens
ada9c4bfb5 Changeset 2025-02-06 09:48:43 -05:00
Matt Rubens
c0306e3e8e Revert "Merge pull request #799 from RooVetGit/cte/package-json-cleanup"
This reverts commit 00ec57afee, reversing
changes made to b83442e899.
2025-02-06 09:48:06 -05:00
Matt Rubens
56a7b8f73f
Merge pull request #818 from RooVetGit/changeset-release/main
Changeset version bump
2025-02-06 09:18:17 -05:00
Matt Rubens
aaedd15652
Update CHANGELOG.md 2025-02-06 09:14:44 -05:00
Matt Rubens
fa0823a0ee
Update CHANGELOG.md 2025-02-06 09:13:49 -05:00
R00-B0T
1cbaccd7f5 Updating CHANGELOG.md format 2025-02-06 14:11:19 +00:00
github-actions[bot]
a2d57cb0bb changeset version bump 2025-02-06 14:10:44 +00:00
Matt Rubens
2dc3939dfe
Merge pull request #817 from RooVetGit/v3.3.13
v3.3.13
2025-02-06 09:09:58 -05:00
Matt Rubens
96a3e6e24c v3.3.13 2025-02-06 09:09:11 -05:00
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
Matt Rubens
6037140c4f
Merge pull request #808 from sammcj/deepseek_r1_ollama
fix(r1): Ensure the DeepSeek r1 model works with Ollama
2025-02-06 02:09:24 -05:00
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
Matt Rubens
e0f0aa7529
Merge pull request #806 from RooVetGit/mrubens-patch-4
Update README.md
2025-02-05 22:26:44 -05:00
Matt Rubens
7207e94a9c
Update README.md 2025-02-05 22:23:58 -05:00
Sam
f2c96b89c0 fix(r1): ensure r1 works with ollama 2025-02-06 14:21:29 +11:00
Matt Rubens
54681f811a
Merge pull request #805 from hannesrudolph/patch-1
Update README.md
2025-02-05 19:15:02 -05:00
Hannes Rudolph
e4e4e184d8
Update README.md
Fixed Header Area
2025-02-05 17:12:49 -07: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
Chris Estreich
00ec57afee
Merge pull request #799 from RooVetGit/cte/package-json-cleanup
Better organize package.json, optimize tasks.json, split extension and webview linting
2025-02-05 12:17:44 -08:00
Roo Code
f913d567fa Better organize package.json, optimize tasks.json, split extension and webview linting 2025-02-05 12:15:18 -08:00
Matt Rubens
b83442e899
Merge pull request #797 from RooVetGit/changeset-release/main
Changeset version bump
2025-02-05 12:11:02 -05:00