Commit graph

49 commits

Author SHA1 Message Date
cte
f11c0afa1e Stabilize tests in CI 2025-02-23 02:28:10 -08:00
Roo Code
bfa73fb69d Does that work? 2025-02-18 21:16:16 -07:00
cte
7de31e10b0 Checkpoints logging tweaks 2025-02-12 13:27:19 -08:00
cte
90b019f55c Shadow git checkpoints 2025-02-12 13:17:43 -08:00
cte
94cb09f6cd Log restoreCheckpoint duration 2025-02-11 11:24:33 -08:00
cte
d9ac8efb1f Complete the comment 2025-02-11 11:19:00 -08:00
cte
37c2a1760b Check for empty stash commits 2025-02-11 10:24:51 -08:00
cte
6b351876e7 Add duration logging 2025-02-11 10:16:51 -08:00
cte
68ea2e8588 Checkpoints logging tweaks 2025-02-11 10:14:36 -08:00
Matt Rubens
85768097d7 Bring back checkpoints on Windows 2025-02-11 10:25:50 -05:00
cte
6dbb59642f Revert debugging 2025-02-11 03:25:33 -08:00
cte
a985494b95 Remove unused type 2025-02-11 03:23:59 -08:00
cte
971d29b1fb Revert debugging 2025-02-11 03:23:22 -08:00
cte
9d8360663e New checkpoints algorithm 2025-02-11 03:16:49 -08:00
cte
ca54d1e2fe Stashless checkpoints 2025-02-10 23:51:51 -08: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
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
cte
ffd0e97b32 Delete local git config when appropriate 2025-02-09 18:34:01 -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
Roo Code
e38d9ecb22 Merge remote-tracking branch 'origin/main' into mrubens-patch-4 2025-02-09 00:53:18 -05:00
cte
152c5a026a Remove simple-git debugging 2025-02-08 09:09:14 -08:00
Matt Rubens
719331385b
Update CheckpointService.test.ts 2025-02-08 12:00:11 -05:00
cte
59ddaa9f00 Current checkpoint indicator 2025-02-08 01:07:31 -08:00
cte
2bff829816 Checkpoints service 2025-02-07 22:23:54 -08: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
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
57518e10b3 Add per-server MCP network timeout configuration 2025-01-26 22:49:21 -05:00
Matt Rubens
b8e0aa0cde Custom modes 2025-01-21 09:39:54 -05:00
Matt Rubens
60a0a824b9 Prettier backfill 2025-01-17 14:11:28 -05:00
Matt Rubens
5fbfe9b775 Add test coverage 2025-01-07 16:20:11 -05:00
Matt Rubens
ff062c6e2e Allow selection of multiple browser viewport sizes and adjusting screenshot quality 2024-12-29 16:26:18 -08:00
LibertyTeeth
72eadedcd4
Update BrowserSession.ts
One-line change to improve Roo-Cline's eyesight.

Aside: the above improves an AI's vision; the below works for people.  My prescription has gone from -4.50 to -2.50 in a year, and I only do the exercises once a month or so, after the first few weeks of once a day:

https://www.youtube.com/watch?v=7TU7o5E3QuU
2024-12-24 13:20:36 -05:00
Matt Rubens
6a6084b7ca Toggle to switch browser size to 1280x800 2024-12-18 00:33:46 -05:00
Matt Rubens
3d7ff32406 Allow enabling/disabling of MCP servers 2024-12-14 01:39:25 -05:00
Matt Rubens
1346f1280c MCP checkbox for always allow 2024-12-13 16:14:13 -05:00
Matt Rubens
be3d8a6166
Incorporate MCP changes (#93)
Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
2024-12-12 23:16:39 -05:00
Mark Percival
93e70c62f1
Chore: Prettier for consistant formatting (#794)
* Chore: Pretier for consistant formatting

- TODO: This PR needs to be updated by Saoud after he runs `npm install` & `npm format:fix` and commits the results of the prettier changes.

* Revert prettier config

* Run npm install

* Fix prettier config and ignore package lock

* Run format

---------

Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
2024-11-21 13:13:54 -08:00
Saoud Rizwan
bca22a8aa1 Fixes 2024-10-27 18:33:20 -04:00
Saoud Rizwan
78a3666f68 Fixes 2024-10-27 16:25:28 -04:00
Saoud Rizwan
fbc987e220 Adjust browser resolution; show loading spinner when browser session has started 2024-10-27 16:05:26 -04:00
Saoud Rizwan
d9f9e7ba16 Add browser_action tool 2024-10-27 02:39:41 -04:00
Saoud Rizwan
c04dfc76cb Misc refactor cline 2024-10-09 01:49:59 -04:00
Saoud Rizwan
2b63b91bfb Refactor out file helpers into fs.ts 2024-10-09 01:49:55 -04:00
Saoud Rizwan
40f7942801 Refactor out of utils 2024-09-24 11:45:12 -04:00
Saoud Rizwan
888b3b7022 Refactor glob 2024-09-24 11:21:08 -04:00
Saoud Rizwan
24bad56785 Refactor services 2024-09-24 11:15:24 -04:00
Saoud Rizwan
e410e317cc Refactor tree-sitter 2024-09-24 11:07:37 -04:00