Commit Graph

881 Commits

Author SHA1 Message Date
Matt Rubens
eef34c03dc Update prompts and fix tests 2025-01-28 10:11:00 -05:00
sam hoang
411182a5d9 fix error in search and replace, update rule to utilize multiple operation 2025-01-28 21:06:38 +07:00
sam hoang
9b175a736e update prompt for search and replace tool 2025-01-28 21:06:37 +07:00
sam hoang
4e3ea695d8 update rule & prompt for insert-code-block 2025-01-28 21:06:37 +07:00
sam hoang
179ea7904b update with comment in pr 2025-01-28 21:06:37 +07:00
sam hoang
8fa1d5a2f9 refactor(experiments): simplify experiment config structure
- Remove redundant id field from ExperimentConfig interface
- Update UI components to use experiment keys directly
- Improve type safety by using key-based mapping instead of object values
2025-01-28 21:06:36 +07:00
sam hoang
7dd161824b refactor: remove redundant experimentConfigs array, use experimentConfigsMap directly 2025-01-28 21:06:35 +07:00
sam hoang
681fe4a956 chore: update description for exp tool 2025-01-28 21:06:35 +07:00
sam hoang
3ed8540eba refactor(experiments): improve type safety for experiment configuration
Change ExperimentId type to be value-based rather than key-based
Make experiment record types more strict with proper typing
Pass full experiment config object instead of single boolean flag
Update type definitions and usages across codebase
2025-01-28 21:06:35 +07:00
sam hoang
ad552ea026 feat: implement experimental features system
- Add experiments.ts to manage experimental features
- Refactor experimental diff strategy into experiments system
- Add UI components for managing experimental features
- Add tests for experimental tools
- Update system prompts to handle experiments
2025-01-28 21:06:33 +07:00
Matt Rubens
2c97b59ed1 Checkpoint on insert and search/replace tools 2025-01-28 21:05:44 +07:00
Matt Rubens
f07109b686 Merge pull request #606 from Szpadel/extend-r1-support
Extend deepseek-r1 support
2025-01-28 07:30:31 -05:00
Matt Rubens
18c7f57afb Add test 2025-01-28 00:15:14 -05:00
Murilo Pires
5bc1a5062a Merge branch 'RooVetGit:main' into feature/auto-approve-switch-modes 2025-01-28 01:22:01 -03:00
MFPires
b3be00c050 feat: Add auto-approval for mode switching
Implements automatic approval for mode switching operations when enabled, following
existing auto-approval patterns in the codebase.

Implementation:
- Added `alwaysAllowModeSwitch` to state management
- Updated `isAutoApproved` function in ChatView to handle mode switch requests
- Added mode switch option to AutoApproveMenu with appropriate handler
- Integrated with existing auto-approval flow

Tests:
- Added three test cases in ChatView.auto-approve.test.tsx:
  1. Verifies mode switch auto-approval when enabled
  2. Verifies no auto-approval when mode switch setting is disabled
  3. Verifies no auto-approval when global auto-approval is disabled

The implementation follows existing patterns for other auto-approve features
(read, write, browser, etc.) to maintain consistency in the codebase.
2025-01-28 01:20:19 -03:00
MFPires
5311e0c8ab fix: Make context token counter more reliable
- Only consider API requests with valid token information
- Skip messages with invalid/missing token data
- Prevent counter from resetting on action approval messages
- Ensure both tokensIn and tokensOut are valid numbers

This makes the context token counter more stable and accurate
by only updating on valid API responses with complete token data.
2025-01-28 00:27:17 -03:00
MFPires
97fe13dcb1 fix: Prevent context token counter from resetting on failed API calls
- Only update context tokens when both input and output tokens are non-zero
- Keep previous context token count when API calls fail
- Avoid resetting counter on partial or failed responses

This makes the context token counter more resilient against edge cases
and provides more accurate context size tracking during API failures.
2025-01-27 23:12:01 -03:00
MFPires
e668169ed9 feat: Add conversation context token counter
- Add contextTokens to ApiMetrics interface
- Calculate context size using last API request's tokens
- Display context token count in TaskHeader below total tokens
- Use exact token counts instead of character estimation

This helps users track the total size of their conversation context,
which is useful for managing context window limits.
2025-01-27 23:02:25 -03:00
Piotr Rogowski
cb23be6346 Extend deepseek-r1 support 2025-01-27 21:27:24 +01:00
Matt Rubens
ed1f656258 Merge pull request #594 from samhvw8/feat/code-action-with-current-task
feat(code-actions): add "Fix Code in Current Task" action
2025-01-27 09:43:46 -05:00
Matt Rubens
61fb096f96 Add new/existing task for all three actions 2025-01-27 09:40:04 -05:00
Matt Rubens
2ffb009e6a Speed up diff edits 2025-01-27 02:52:05 -05:00
sam hoang
85c49d8eff feat(code-actions): add "Fix Code in Current Task" action
Adds ability to fix code within the context of an active task instead of starting a new one. This allows for more efficient workflow when already working with Roo.

Add new FIX_IN_CURRENT_TASK code action and command
Enhance ClineProvider to support context-aware code fixing
Update tests to verify new action functionality
2025-01-27 14:24:26 +07:00
Matt Rubens
57518e10b3 Add per-server MCP network timeout configuration 2025-01-26 22:49:21 -05:00
Matt Rubens
5d20477785 Throw FileRestrictionErrors sooner 2025-01-26 02:44:59 -05:00
Matt Rubens
2fbf276f00 Merge pull request #555 from dairui1/feat/openrouter_base_url
feat: Add openRouterBaseUrl option
2025-01-26 00:35:11 -05:00
Matt Rubens
3d5780f44e Fix 2025-01-26 00:31:53 -05:00
Piotr Rogowski
c6607065b9 Add support for displaying reasoning for openrouter models 2025-01-26 02:11:56 +01:00
Piotr Rogowski
663747eb2d Use deepseek-r1 recommended temperature 2025-01-25 23:34:50 +01:00
dairui1
4a75f85eac feat: Add openRouterBaseUrl option 2025-01-25 16:48:21 +08:00
Evan
674216cc8a reuse existing non-busy terminals 2025-01-24 23:39:29 -05:00
Matt Rubens
8c929ba16a Do a more complete mode switch from switch_mode command 2025-01-24 23:04:57 -05:00
Matt Rubens
e2241286f3 Fix test 2025-01-24 13:39:31 -05:00
Matt Rubens
cda44d52d4 Don't allow setting a retry period below 5 seconds, default to 10 2025-01-24 12:59:49 -05:00
Matt Rubens
7c41a9cbf8 Merge pull request #526 from RooVetGit/switch_mode_tool
Add a tool to switch modes
2025-01-24 12:50:57 -05:00
Matt Rubens
9464a1bae9 Merge pull request #523 from RooVetGit/allow_architect_mode_to_write_markdown
Allow architect and ask modes to write md files
2025-01-24 12:50:08 -05:00
Matt Rubens
5f8a8887fb Validation fixes 2025-01-24 12:46:10 -05:00
sam hoang
a7ae6c46d1 feat: user prompt in code action 2025-01-24 22:19:10 +07:00
Matt Rubens
0cfc095544 Merge remote-tracking branch 'origin/main' into aws-profile-support 2025-01-24 09:10:11 -05:00
Matt Rubens
d1754cace0 Add a tool to switch modes 2025-01-24 03:05:03 -05:00
Matt Rubens
569e104bf2 Updated role definition for ask 2025-01-24 01:46:46 -05:00
Matt Rubens
ba69cd756f Cleanup 2025-01-24 01:32:48 -05:00
Matt Rubens
980189460d Update system prompt 2025-01-24 00:39:45 -05:00
Matt Rubens
6c3c216034 Add test to confirm this works with custom modes 2025-01-24 00:30:24 -05:00
Matt Rubens
7413d6494e Let ask mode write markdown too 2025-01-23 23:48:38 -05:00
Matt Rubens
4e77fb93bb Allow architect mode to write md files 2025-01-23 23:41:47 -05:00
Matt Rubens
0a32e24c6d Merge pull request #329 from samhvw8/feat/roo-cline-code-action
New Feature code action
2025-01-23 17:19:45 -08:00
Matt Rubens
3257dffa56 Review feedback 2025-01-23 15:56:24 -08:00
Matt Rubens
039590d2c3 Merge pull request #520 from Premshay/feat/add-llama-model
feat(api): add Llama 3.3 70B Instruct to AWS Bedrock model options
2025-01-23 15:16:53 -08:00
Matt Rubens
45aa069f39 Merge pull request #501 from punkpeye/add-polling
feat: poll usage
2025-01-23 15:16:10 -08:00