Commit Graph

629 Commits

Author SHA1 Message Date
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
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
sam hoang
e7ff4ed397 fix missing in make input lag 2025-01-28 21:47:24 +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
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
Matt Rubens
57518e10b3 Add per-server MCP network timeout configuration 2025-01-26 22:49:21 -05: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
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
Matt Rubens
1bf0145099 Merge pull request #541 from PretzelVector/indent_collapsed_settings
[cosmetic] indent collapsing settings
2025-01-26 00:19:58 -05:00
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
90d6ab7e2e Add configuration picker on the modes page 2025-01-25 22:30:35 -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
dairui1
4a75f85eac feat: Add openRouterBaseUrl option 2025-01-25 16:48:21 +08:00
~PV
e90d46ef1b indent collapsed settings 2025-01-24 11:26:39 -08: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
fd7034c3d3 Merge pull request #537 from samhvw8/fix/model-name-524
fix #524
2025-01-24 12:57:15 -05:00
sam hoang
4e8f7ca396 fix #524 2025-01-25 00:54:09 +07: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
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
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
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
sam hoang
55a5a97d8b refactor: consolidate code action and enhance prompts into unified support prompts system
- Rename codeActionPrompt to supportPrompt for better clarity
- Move enhance prompt functionality into support prompts system
- Add ENHANCE tab alongside other support prompt types
- Update UI to show enhancement configuration in ENHANCE tab
- Update tests to reflect new unified structure

This change simplifies the prompt system by treating enhancement as another type of support prompt rather than a separate system.
2025-01-24 00:46:20 +07:00
sam hoang
22907a0578 refactor: consolidate prompt functionality into support-prompt module
- Move code action prompts from core/prompts to shared/support-prompt
- Migrate enhance prompt functionality from modes to support-prompt
- Add UI for managing code action prompts in PromptsView
- Update types and interfaces for better prompt management
2025-01-24 00:46:19 +07:00
sam hoang
0c81f427cb Revert onChange back to onInput 2025-01-24 00:40:53 +07:00
Matt Rubens
343d3fa687 Merge pull request #516 from samhvw8/feat/use-azure-openai
feat: add explicit Azure OpenAI flag
2025-01-23 09:25:41 -08:00
sam hoang
f745f080f4 feat: add explicit Azure OpenAI flag and setup memory bank docs
- Add openAiUseAzure flag to force Azure OpenAI client initialization
- Add "Use Azure" checkbox in API settings UI

This change improves Azure OpenAI configuration flexibility by allowing users to explicitly opt-in to Azure client, regardless of the base URL pattern.
2025-01-24 00:14:55 +07:00
Matt Rubens
2b059c6d15 Fix button to open custom modes settings 2025-01-23 08:14:15 -08:00
Matt Rubens
fc03237a4f Revert "fix: avoid deleting configs if the currentApiConfigName hasn't been changed"
This reverts commit 8ad904a13c.
2025-01-22 12:56:54 -08: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
4b24564087 style: remove double scroll bar through unsetting overflow 2025-01-22 23:01:52 +07:00
Matt Rubens
21c7ac7046 Merge pull request #481 from monotykamary/fix/noop-on-no-renames
fix: avoid deleting configs if the currentApiConfigName is the same
2025-01-22 07:32:38 -08:00