Commit Graph

665 Commits

Author SHA1 Message Date
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
eefb7218d9 Update to Vite 6 (HMR issue fixed by adding permissive CORS rules) 2025-01-30 22:16:22 -08:00
cte
b5340915f7 Fix boolean logic for cost, apiReqCancelReason (they are never null) 2025-01-30 21:50:19 -08:00
cte
275dab042e Merge branch 'main' into cte/shadcn-ui-storybook 2025-01-30 21:28:05 -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
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
ab4d717211 Revert lint rules in webview-ui too 2025-01-30 23:06:42 -05:00
Matt Rubens
810bbb449f Revert "chore: update eslint config and quiet lint output"
This reverts commit 6db3ecf73e.
2025-01-30 22:40:27 -05:00
cte
97367951a2 Enable HMR for the webview, complements of vite 2025-01-30 16:25:13 -08:00
cte
a5dac3f0a1 Remove lucide 2025-01-30 14:47:59 -08:00
cte
69a2e36b2b Remove CRA cruft 2025-01-30 14:38:41 -08:00
cte
4cf455ed39 Add shadcn/ui + Storybook 2025-01-30 12:50:09 -08: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
Matt Rubens
d1bfbc6d62 Merge pull request #632 from psv2522/sliders-on-newline
fix: Move sliders to newline in settings to avoid horizontal scroll.
2025-01-30 01:15:49 -05:00
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
sam hoang
6db3ecf73e chore: update eslint config and quiet lint output
- Add recommended TypeScript ESLint rules and configurations
- Configure explicit function return types and member accessibility
- Add environment settings for Node.js and ES2021
- Update parser options and ignore patterns
- Add --quiet flag to lint commands to reduce noise
2025-01-29 23:42:15 +07:00
Matt Rubens
13de490c3b Add a new_task tool 2025-01-29 10:56:44 -05:00
sam hoang
477daf8f64 update css variable for shadcn component 2025-01-29 21:35:14 +07:00
sam hoang
43bcfe38a8 Roo Cline -> Roo Code 2025-01-29 21:21:20 +07: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
Prathmesh Vhatkar
a07f94fa19 fix: Move sliders to newline in settings to avoid horizontal scroll at normal(20-25%) window size 2025-01-29 11:57:24 +05:30
sam hoang
e8ff70ebf0 fix config-profile-dropdown-zindex 2025-01-29 12:40:24 +07: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
a968cc3b58 Merge pull request #615 from psv2522/change-select-to-dropdown
fix: Use Dropdown instead of select in settings for more UI consistency
2025-01-28 23:43:56 -05:00
Prathmesh Vhatkar
7e38e50d79 fix: Mock dropdown in tests correctly 2025-01-29 09:14:16 +05:30
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
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
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
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
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
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
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
Ikko Eltociear Ashimine
bfe935e5f5 chore: update CodeBlock.tsx
langauge -> language
2025-01-28 03:13:14 +09:00