Commit Graph

2106 Commits

Author SHA1 Message Date
Matt Rubens
9056a5916a Merge pull request #624 from RooVetGit/v3.3.5
V3.3.5
2025-01-28 15:32:14 -05:00
Matt Rubens
93f43bea43 More renaming 2025-01-28 15:24:45 -05:00
Matt Rubens
15c2b49671 Merge remote-tracking branch 'origin/main' into v3.3.5 2025-01-28 15:03:03 -05:00
Matt Rubens
6dc1a036dd Merge pull request #623 from Szpadel/r1-variants
handle other deepseek-r1 variants on openrouter
2025-01-28 15:01:33 -05:00
Piotr Rogowski
9710fd1110 handle other deepseek-r1 variants on openrouter 2025-01-28 20:53:07 +01:00
Matt Rubens
b17f435e56 Merge remote-tracking branch 'origin/main' into v3.3.5 2025-01-28 14:41:07 -05:00
Matt Rubens
5bee585620 Merge pull request #622 from MuriloFP/feature/add-context-to-environment
Feature/add context to environment
2025-01-28 14:39:22 -05:00
Matt Rubens
d836548c19 insert_code_block -> insert_content 2025-01-28 14:36:12 -05:00
MFPires
ea6dc7c16e feat(ui): add context window percentage to task header
Display the percentage of total context window used alongside token count in the task header. This helps users better understand their context usage relative to the model's capacity.

Implementation details:
- Retrieve model's context window size from normalized API configuration
- Calculate percentage of context window used based on current context tokens
- Display percentage in parentheses next to token count (e.g. "40,000 (20%)")
- Default to context window size of 1 if model info is unavailable
- Format numbers with commas for better readability
2025-01-28 16:33:06 -03:00
MFPires
f7cf08c607 feat: Add context tokens to environment details
Adds the current conversation's context token count to the environment details section by:
- Using existing getApiMetrics() to retrieve contextTokens from the last API request
- Adding a new "Context Tokens" section between "Current Time" and "Current Mode"
- Formatting the token count with toLocaleString() for better readability
- Showing "(Not available)" when no context tokens are present

This provides visibility into the current conversation's token usage directly in the environment details, helping track context window utilization.
2025-01-28 15:49:36 -03:00
Matt Rubens
68035507af v3.3.5 2025-01-28 13:22:16 -05:00
pugazhendhi-m
ea30563cca Merge branch 'main' into vs/support-unbound 2025-01-28 21:58:23 +05:30
Matt Rubens
f2ac56917c Merge pull request #538 from samhvw8/feat/insert_and_search_replace_tools
New Roo Tool insert and search replace tools
2025-01-28 11:23:06 -05:00
Pugazhendhi
63b8e8972f Adds button to get unbound api key 2025-01-28 21:52:12 +05:30
Matt Rubens
50eb2e2c93 Merge pull request #617 from RooVetGit/mode_switch_delay
Add a delay to allow auto approved mode changes to take effect
2025-01-28 11:21:57 -05:00
Matt Rubens
bd0a613be1 Add a delay to allow auto approved mode changes to take effect 2025-01-28 11:11:28 -05:00
Vignesh Subbiah
5329c712de Yields the usage tokens 2025-01-28 21:11:16 +05:30
Matt Rubens
800ec10684 Merge pull request #613 from samhvw8/fix/OpenAiModelPicker.tsx
fix missing set search term in make input lag in openai picker
2025-01-28 10:29:30 -05:00
Matt Rubens
5579922f98 Sneak in a change to apply_diff error message 2025-01-28 10:24:16 -05:00
sam hoang
003bb5cabc fix diffview for search-and-replace tool and insert tool 2025-01-28 22:13:51 +07:00
Matt Rubens
eef34c03dc Update prompts and fix tests 2025-01-28 10:11:00 -05:00
sam hoang
e7ff4ed397 fix missing in make input lag 2025-01-28 21:47:24 +07:00
Prathmesh Vhatkar
db0339b228 fix: Use Dropdown instead of select in settings for more ui consistency 2025-01-28 20:15:52 +05:30
Vignesh Subbiah
4008a1a53e Modifying the usage of unbound.ts in compliance with all providers 2025-01-28 19:43:52 +05:30
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
0fa6fd4ddb chore: remove unused 2025-01-28 21:06:36 +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
bb84d79af1 chore: remove unused 2025-01-28 21:06:34 +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
Matt Rubens
f70e3fc08b Merge pull request #610 from MuriloFP/feature/auto-approve-switch-modes
Feature/auto approve switch modes
2025-01-28 00:07:44 -05:00
MFPires
f50214b017 feat(settings): Add auto-approve mode switching option to Settings UI
Add the ability to configure automatic mode switching approval in the Settings UI.

Implementation:
- Added alwaysAllowModeSwitch checkbox in the Auto-Approve Settings section
- Added state management integration with useExtensionState
- Added vscode.postMessage handler for state updates
- Placed the setting logically between MCP tools and execute operations settings

The new setting allows users to:
- Enable/disable automatic approval of mode switching operations
- Configure mode switching approval independently of other auto-approve settings
- Maintain consistent UX with other auto-approve settings

This completes the mode switching auto-approval feature, working in conjunction with:
- Previously added state management in ExtensionStateContext
- Core logic changes in ClineProvider
- WebviewMessage type updates
- Existing test coverage in ChatView.auto-approve.test.tsx
2025-01-28 01:48:47 -03: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
Matt Rubens
3862057a4d Merge pull request #608 from MuriloFP/feature/context-token-counter
Feature/context token counter
2025-01-27 22:46:21 -05:00
Murilo Pires
1ba632fe89 Update webview-ui/src/components/chat/TaskHeader.tsx
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-01-28 00:39:40 -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
Matt Rubens
86d4a10a9a Merge pull request #605 from eltociear/patch-2
chore: update CodeBlock.tsx
2025-01-27 15:35:21 -05:00
Piotr Rogowski
cb23be6346 Extend deepseek-r1 support 2025-01-27 21:27:24 +01:00
Ikko Eltociear Ashimine
bfe935e5f5 chore: update CodeBlock.tsx
langauge -> language
2025-01-28 03:13:14 +09:00