Commit Graph

942 Commits

Author SHA1 Message Date
cte
85d1d4a77b Run integration tests in CI 2025-01-31 14:12:21 -08:00
Matt Rubens
9aeb498f99 Add optional rate limiting between API calls 2025-01-31 16:44:32 -05:00
Matt Rubens
af9231d22d Make o3-mini work 2025-01-31 16:35:32 -05:00
Anton Shpigunov
7329e945b4 Add expectation to match actual API response in tests 2025-01-31 23:19:17 +02:00
Anton Shpigunov
58fdb6f9ef support o3-mini 2025-01-31 23:09:05 +02:00
cte
5b6c6be022 Update README 2025-01-30 21:35:56 -08:00
cte
275dab042e Merge branch 'main' into cte/shadcn-ui-storybook 2025-01-30 21:28:05 -08:00
cte
901d769bfd Fix tests 2025-01-30 21:26:29 -08:00
Matt Rubens
bedd6fd2a8 Merge pull request #656 from samhvw8/feat/add-to-context-code-action
Feat add to context code action & Fix some code action error
2025-01-31 00:24:38 -05:00
Matt Rubens
7614048ed4 Update src/shared/support-prompt.ts 2025-01-31 00:22:26 -05:00
Matt Rubens
099447d06b Update src/shared/support-prompt.ts 2025-01-31 00:22:20 -05:00
Matt Rubens
308eab0563 Update src/shared/support-prompt.ts 2025-01-31 00:22:15 -05:00
cte
7282e02de3 Merge main 2025-01-30 21:15:34 -08:00
Matt Rubens
81a5e805b2 Merge pull request #638 from napter/approval-feedback
Allow the user to send context with approval or rejection
2025-01-30 23:36:43 -05:00
Matt Rubens
69d05a3296 Merge pull request #668 from RooVetGit/clearer_modes_prompt
Clearer modes prompt section
2025-01-30 22:48:14 -05:00
Matt Rubens
ce072d99d2 Clearer modes prompt section 2025-01-30 22:29:57 -05:00
cte
97367951a2 Enable HMR for the webview, complements of vite 2025-01-30 16:25:13 -08:00
Piotr Rogowski
161a6a5d9e Relax deepseek-r1 detection so it also includes distilled models 2025-01-30 23:43:15 +01:00
Matt Rubens
29dfe11303 Merge pull request #662 from RooVetGit/use_exponential_retry_for_api_failures
Use an exponential delay for API retries
2025-01-30 11:51:53 -05:00
Matt Rubens
e10004d865 Use an exponential delay for API retries 2025-01-30 11:46:26 -05:00
Matt Rubens
886070de2d Merge pull request #636 from samhvw8/feat/vite-tailwind
refactor: migrate from CRA to Vite and improve testing
2025-01-30 11:40:27 -05:00
sam hoang
bb5d506679 refactor: extract editor utilities into EditorUtils module and add tests 2025-01-30 17:42:11 +07:00
sam hoang
2e56149620 feat: add 'Add To Context' code action
- Add new command registration and menu item
- Add new code action type and command ID
- Add support prompt config for adding code to context
- Add message handling in webview for setting chat box content
- Add logic to append selected code to existing chat input
2025-01-30 17:23:12 +07:00
sam hoang
35a7e433f2 refactor: centralize editor utilities and unify command handling
- Create EditorUtils class to centralize shared editor functionality
- Remove duplicated code between CodeActionProvider and command handlers
- Improve command handling to work consistently for both code actions and direct commands
- Add better type safety and error handling for editor operations
2025-01-30 16:26:44 +07:00
Nathan Apter
3aa5b3f9be Allow the user to send context with approval or rejection 2025-01-29 15:28:46 -05:00
Piotr Rogowski
60cb550db7 Fix crash when delta in openai api handling could be empty in some cases.
Fixes #641
2025-01-29 19:43:10 +01:00
Vignesh Subbiah
d6433591b2 Add typing for usageData and adds some unit tests 2025-01-29 22:53:43 +05:30
Vignesh Subbiah
6ccb061d33 Refactors the cached token code for all models 2025-01-29 22:25:01 +05:30
kinandan
26369ca48b Fixing anthropic model caching in roo-code 2025-01-29 21:44:47 +05:30
Matt Rubens
117c4abfee Merge pull request #640 from RooVetGit/new_task_tool
Add a new_task tool
2025-01-29 10:59:35 -05:00
Matt Rubens
13de490c3b Add a new_task tool 2025-01-29 10:56:44 -05:00
sam hoang
12dd54671a refactor: migrate from CRA to Vite and improve testing
Replace Create React App with Vite build system
Add ESLint configuration and improve TypeScript types
Create VSCode UI component mocks for better testing
Update test files with proper async handling
Add Tailwind CSS integration
Fix accessibility by adding ARIA roles
2025-01-29 21:15:28 +07:00
Piotr Rogowski
1534a9c047 Add support for perplexity/sonar-reasoning 2025-01-29 09:54:19 +01:00
Matt Rubens
76278ed99e Merge pull request #616 from websentry-ai/vs/support-unbound
Supports unbound API provider
2025-01-29 00:10:21 -05:00
Matt Rubens
e07d2aa892 Merge pull request #599 from samhvw8/refactor/change-console-log-to-output-channel
refactor: improve error logging in ClineProvider
2025-01-28 23:48:07 -05:00
MFPires
86eb383227 fix: prevent context token counter flickering during API requests
Maintains the last valid context token count between API requests by:
- Adding tracking of last valid context tokens
- Using last known value as fallback when current request lacks token data
- Only updating when new valid token counts are available

This prevents the context counter from flickering to "-" during tool calls
and API request transitions, improving the UI stability.
2025-01-28 21:49:26 -03: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
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
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
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
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
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