Commit Graph

166 Commits

Author SHA1 Message Date
Matt Rubens
14683cc3c5 Cleanup and release 2025-02-01 12:05:39 -05:00
Matt Rubens
1e5a257e52 Removed active selection for now 2025-02-01 11:57:36 -05:00
loup
064dc4e52f feat: opened tabs and selection in the @ menu 2025-02-01 11:16:38 -05:00
Matt Rubens
90ba9e18e1 Remove annoying test 2025-02-01 11:16:38 -05:00
sam hoang
f906755d90 feat: add setting to enable/disable MCP server creation
- Add enableMcpServerCreation setting to control whether MCP server creation is allowed
- Add UI toggle in settings view for this feature
- Update system prompt to conditionally include MCP server creation documentation
- Add tests for new functionality
2025-02-01 09:34:53 +07:00
Matt Rubens
9aeb498f99 Add optional rate limiting between API calls 2025-01-31 16:44:32 -05:00
Matt Rubens
1496b232f5 Revert "Revert lint rules in webview-ui too"
This reverts commit ab4d717211.
2025-01-31 09:45:53 -05:00
Matt Rubens
a43bc8877e Revert "Fix boolean logic for cost, apiReqCancelReason (they are never null)"
This reverts commit b5340915f7.
2025-01-31 09:45:41 -05:00
cte
b5340915f7 Fix boolean logic for cost, apiReqCancelReason (they are never null) 2025-01-30 21:50:19 -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
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
ab4d717211 Revert lint rules in webview-ui too 2025-01-30 23:06:42 -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
Matt Rubens
b543bd9489 Merge pull request #654 from psv2522/better-border-on-input-focus
fix:Made the main inputbox focus styling better, added better spacing in openai compatible section
2025-01-30 09:57:49 -05: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
Prathmesh Vhatkar
cd09571683 fix:padding improved, removed scrollbar in inputbox 2025-01-30 13:40:35 +05:30
Prathmesh Vhatkar
fec57e30a8 fix:Made the main inputbox focus styling better, added better spacing in openai compatible section 2025-01-30 11:21:54 +05:30
Nathan Apter
fe82500e94 Send the text when the buttons are clicked 2025-01-29 15:28:46 -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
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
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
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
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
Prathmesh Vhatkar
2d65b8aabe fix:Using optionStyle everywhere correctly 2025-01-26 19:10:16 +05:30
Prathmesh Vhatkar
63787d1f7b fix:Added correct styling for the select options 2025-01-26 18:00:10 +05:30
Matt Rubens
60749237ff Merge remote-tracking branch 'origin/main' into r1-display-reason 2025-01-26 00:16:55 -05:00
Matt Rubens
d052bebed6 Fix bug where always allow wasn't showing up for MCP tools 2025-01-25 23:47:46 -05:00
Matt Rubens
66909b5c36 Hardcode version in announcement 2025-01-25 21:41:03 -05:00
Piotr Rogowski
c6607065b9 Add support for displaying reasoning for openrouter models 2025-01-26 02:11:56 +01:00
Matt Rubens
d1754cace0 Add a tool to switch modes 2025-01-24 03:05:03 -05:00
sam hoang
f86e96d157 refactor: separate mode and support prompts
- Rename customPrompts to customModePrompts for mode-specific prompts
- Add new customSupportPrompts type for support action prompts
- Update types to be more specific (CustomModePrompts and CustomSupportPrompts)
- Fix all related tests and component implementations
2025-01-24 01:46:33 +07:00
Tom X Nguyen
ece63103c7 style: align chatrow through padding and keep flex-start for the trash 2025-01-22 23:02:32 +07:00
Tom X Nguyen
8d0acfa987 style: Align text and button in user input box 2025-01-22 15:47:37 +07:00
Matt Rubens
323af09269 Fix announcement 2025-01-21 09:59:50 -05:00
Matt Rubens
b8e0aa0cde Custom modes 2025-01-21 09:39:54 -05:00
Matt Rubens
37c2bae0eb Remove mode chooser from settings 2025-01-20 11:41:38 -05:00
Matt Rubens
60a0a824b9 Prettier backfill 2025-01-17 14:11:28 -05:00
Matt Rubens
72fe12d096 Refactor modes 2025-01-17 10:03:23 -05:00
Matt Rubens
ee344facda Fixes to the auto approve menu 2025-01-16 03:42:38 -05:00
Matt Rubens
b65c8d0ec6 Customize for Roo 2025-01-15 23:48:53 -05:00
Saoud Rizwan
4b4905ec9e Add auto-approve UI and notification integration 2025-01-15 21:02:14 -05:00
Matt Rubens
84a0063b99 Fix ChatTextArea layout 2025-01-15 00:43:26 -05:00
Matt Rubens
4493b55276 Merge pull request #351 from RooVetGit/custom_prompts
Custom prompts
2025-01-14 15:26:54 -05:00
Matt Rubens
5140b67d74 Add a button to copy markdown out of the chat 2025-01-14 01:13:02 -05:00
Matt Rubens
75e308b033 Add a screen for custom prompts 2025-01-13 22:45:14 -05:00
Matt Rubens
4c292abf7a Fix margins 2025-01-13 13:06:24 -05:00
Matt Rubens
b53d63abda A couple more tiny tweaks to buttons 2025-01-12 14:59:11 -05:00
Matt Rubens
5698d10113 Small fixes 2025-01-12 14:05:35 -05:00