Commit graph

2406 commits

Author SHA1 Message Date
hannesrudolph
83b6f3cc80 refactor: simplify command allow/deny implementation
- Remove redundant allowCommand/denyCommand message types from WebviewMessage
- Remove corresponding handlers from webviewMessageHandler
- Remove unused test file for allowCommand functionality
- Remove unused i18n keys for command_allowed and command_denied
- Simplify to use existing allowedCommands/deniedCommands infrastructure
2025-07-15 17:27:34 -06:00
hannesrudolph
2f321e98ce fix: address PR #5491 review feedback
- Standardized terminology from 'whitelisted/blacklisted' to 'allowed/denied' across all i18n files
- Removed unused _isExpanded and terminalShellIntegrationDisabled variables in CommandExecution.tsx
- Added comprehensive JSDoc documentation to complex algorithms in commandPatterns.ts
- Consolidated redundant command parsing logic into unified commandUtils module
- Updated all imports to use the new centralized utilities
- Maintained backward compatibility with re-exports where needed

All tests passing after refactoring.
2025-07-15 17:03:57 -06:00
hannesrudolph
51d010e450 fix: add missing roo-cline.allowedCommands configuration registration 2025-07-15 16:18:08 -06:00
hannesrudolph
39a8fad110 fix: Remove remaining references to disableLlmCommandSuggestions
This completes the removal of the LLM command suggestions feature by:
- Removing the setting from Task.ts system prompt generation
- Removing the message handler case from webviewMessageHandler.ts
2025-07-15 14:11:18 -06:00
hannesrudolph
d899a36bd4 refactor: Remove LLM suggestion feature in favor of deterministic shell-quote parser
This commit simplifies the command pattern extraction implementation by:
- Removing all LLM-based command suggestion functionality
- Always using the shell-quote parser for deterministic command pattern extraction
- Eliminating the commandSuggestionsEnabled setting and related UI components
- Removing unnecessary complexity from the codebase

The shell-quote parser provides consistent and predictable results without
requiring LLM calls, making the feature more reliable and performant.
2025-07-15 14:10:18 -06:00
hannesrudolph
60815f405c fix: prevent LLM from suggesting full command chains in execute-command
- Updated execute-command prompt to explicitly forbid suggesting full command chains
- Added clear instruction that only the first command should be suggested for chained commands
- This ensures the LLM will only suggest the initial command and let the user decide on subsequent commands
2025-07-15 13:42:30 -06:00
hannesrudolph
f903871394 fix: prevent removed commands from reappearing due to workspace config merging
- Fixed issue where removed command patterns would reappear in the UI
- The problem was caused by workspace configuration being merged after UI state updates
- Now properly filters out removed patterns when merging workspace config
- Added comprehensive tests to verify the fix handles all edge cases
- Ensures user's removal actions are preserved across config updates

Fixes #5480
2025-07-15 13:01:05 -06:00
hannesrudolph
238bae6aef fix: resolve command whitelisting issues
- Fixed programmatic suggestion generation when LLM suggestions are disabled
  - CommandExecution component now properly generates suggestions from allowed patterns
  - Added proper handling for when llmGeneratedSuggestions setting is false

- Fixed settings persistence for command allow/deny lists
  - AutoApproveSettings now correctly saves patterns to globalState
  - Fixed state management to properly update both local and global state

- Improved LLM prompt to generate complete suggestions for chained commands
  - Updated execute-command prompt to handle && and || operators
  - Ensures suggestions include full command chains, not just the first part
  - Added tests to verify proper handling of complex command patterns
2025-07-15 12:15:46 -06:00
hannesrudolph
70ca7a6cae refactor: move command whitelisting from VS Code settings to plugin UI
- Removed 'roo-code.commandWhitelist' from VS Code settings (package.json)
- Added command whitelisting to Auto Approve settings in plugin UI
- Migrated existing whitelist settings to new location on extension activation
- Updated all related components, tests, and localization files
- Maintains backward compatibility by migrating existing settings

This change improves user experience by consolidating all auto-approval
settings in one location within the plugin's settings interface.
2025-07-15 11:58:20 -06:00
hannesrudolph
10843e87c0 fix: add missing imports for vscode and Package in Task.ts
- Added vscode import to fix TypeScript error
- Added Package import from shared/package module
- Fixes pre-push type checking failure
2025-07-15 09:23:47 -06:00
hannesrudolph
8bbecace55 feat: add setting to disable LLM command suggestions
- Added new configuration setting 'roo.disableLLMCommandSuggestions'
- Made command suggestions conditional based on the setting
- Updated system prompt to pass the setting value
- Added comprehensive tests for the new functionality
- Added localization support for the new setting

Fixes #5491
2025-07-15 09:22:05 -06:00
hannesrudolph
c9964e245e chore: update all locale files with new command permission translations 2025-07-14 17:25:46 -06:00
hannesrudolph
b7986c078e fix: address PR review comments and improve command permission UI
- Add comprehensive test coverage for removing command patterns
- Fix hardcoded strings with proper i18n translations
- Improve tooltips with clearer descriptions and settings link
- Update button tooltips to say 'Add to allowed list' etc
- Fix failing tests after UI changes
2025-07-14 17:01:47 -06:00
hannesrudolph
e98c404ce8 refactor: streamline command permission instructions for LLM
- Simplify and condense the suggestion guidelines
- Remove verbose list of common patterns
- Reduce from 3 examples to 2 more focused examples
- Remove redundant 'with suggestions' text from examples
- Keep instructions effective while reducing token usage
2025-07-14 16:05:14 -06:00
hannesrudolph
4ec34ad494 fix: use inclusive terminology in command permission instructions
- Replace 'whitelist/whitelisting' with 'allow/allowing'
- Update description to mention both allowing and denying commands
- Change 'Whitelisting Guidelines' to 'Command Permission Guidelines'
- Maintains consistency with the codebase's inclusive terminology
2025-07-14 16:02:33 -06:00
hannesrudolph
df69540d59 fix: remove trailing spaces from command suggestion examples
- Remove instruction to include trailing spaces in suggestions
- Update all examples to not have trailing spaces
- Patterns like 'npm', 'git', 'ls' work fine without trailing spaces
- This prevents LLM from generating suggestions with unwanted spaces
2025-07-14 15:59:54 -06:00
hannesrudolph
7d75a0c07e fix: trim trailing spaces from command suggestions
- Add .trim() when parsing individual <suggest> tags
- Prevents suggestions like 'npm run ' with trailing spaces
- Ensures cleaner command patterns in the UI
2025-07-14 15:57:14 -06:00
hannesrudolph
a0e8c24352 feat: add denyCommand handler for individual command deny listing 2025-07-14 15:13:51 -06:00
hannesrudolph
20363b4218 fix: resolve knip unused files issue
- Remove unused shared files that were causing knip failures
- Move command parsing utilities to webview-ui/src/utils
- Update imports to use local utilities instead of shared
- Define COMMAND_OUTPUT_STRING locally in commandParsing utility
2025-07-14 15:11:27 -06:00
hannesrudolph
cf6c38092d fix: resolve all issues in PR #5491 - command whitelisting feature
- Fix hardcoded English strings by moving to translation files
- Add missing ARIA attributes for accessibility compliance
- Extract suggestion parsing logic to shared utils (src/shared/commandParsing.ts)
- Move pattern extraction logic to shared utils (src/shared/commandPatterns.ts)
- Extract CommandPatternSelector as a separate component for better modularity
- Consolidate message types to use 'allowedCommands' consistently
- Update tests to match new implementation

All linters and tests now pass successfully.
2025-07-14 15:11:27 -06:00
github-actions[bot]
88c4261829
Changeset version bump (#5708)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-07-14 16:45:39 -04:00
Daniel
5cab585eb3
fix: prioritize built-in model dimensions over custom dimensions (#5705) 2025-07-14 16:20:34 -04:00
github-actions[bot]
6702871c4e
Changeset version bump (#5702)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-07-14 14:52:28 -04:00
Matt Rubens
1187a7c50e
Tweaks to command timeout error (#5700) 2025-07-14 14:38:01 -04:00
SannidhyaSah
824c49487b
feat: enable Claude Code provider to run natively on Windows (#5615) 2025-07-14 14:12:39 -04:00
Roomote Bot
e0196320b5
feat: Add configurable timeout for command execution (#5668)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-07-14 14:12:12 -04:00
Daniel
d7787a2de3
feat: add gemini-embedding-001 model to code-index service (#5698)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-07-14 14:10:40 -04:00
Roomote Bot
f71275ef55
fix: resolve vector dimension mismatch error when switching embedding models (#5616) (#5617)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-07-14 14:10:09 -04:00
chris-garrett
a163053430
fix: [5424] return the cwd in the exec tool's response so that the model is not lost after subsequent calls (#5667) 2025-07-13 22:36:25 -04:00
github-actions[bot]
62f97b917a
Changeset version bump (#5670)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-07-13 14:51:05 -04:00
Daniel
5bffebde58
feat: add enable/disable toggle for code indexing (#5599) 2025-07-12 12:55:50 -04:00
Matt Rubens
cdacdfd54b
Add a command denylist (#5614)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-07-12 12:36:04 -04:00
github-actions[bot]
50e45a2bc6
Changeset version bump (#5613)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-07-11 23:43:52 -04:00
Daniel
32308d79c4
feat: add comprehensive error telemetry to code-index service (#5595) 2025-07-11 23:01:50 -04:00
Hannes Rudolph
39b83070c3
feat: Enable dynamic tool selection in architect mode for context discovery (#5607)
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-07-11 22:47:45 -04:00
Hannes Rudolph
f5dfbf1fc2
feat(claude-code): add configurable max output tokens setting (#5610)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
2025-07-11 22:31:50 -04:00
Murilo Pires
9aa2e6ea54
Fix/issue 2897 mermaid syntax warning (#5530) 2025-07-11 17:46:38 -04:00
Daniel
0ecae9d4f1
fix: exclude cache tokens from context window calculation (#5603)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-07-11 16:54:51 -04:00
Daniel
50598b22b5
fix(i18n): Correct translation fallback logic for embedding errors (#5574)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-07-10 15:47:47 -04:00
Noritaka Kobayashi
ab55854702
chore: fix typos in comment & document (#5569) 2025-07-10 11:33:26 -04:00
Daniel
97b917eac8
fix: handle Qdrant vector dimension mismatch when switching embedding models (#5562) (#5565) 2025-07-10 11:29:25 -04:00
Matt Rubens
a7b5cbd722
Soften the language for incompatible profiles (#5561) 2025-07-10 09:47:47 -04:00
github-actions[bot]
5cfd98dc33
Changeset version bump (#5560)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-07-10 07:10:05 -04:00
Will Li
08c9420350
fix (#5540) 2025-07-09 20:57:10 -04:00
github-actions[bot]
6e473f5449
Changeset version bump (#5537)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-07-09 19:39:48 -04:00
Daniel
45f3d88ddf
fix(embeddings): Translate error messages before sending to UI (#5535)
fix(embeddings): translate error messages before sending to UI

- Import t() function from i18n module
- Wrap error messages with t() translation function in _initializeEmbedder()
- Ensures proper localization of error messages in the UI
- Falls back to original message if no translation exists
2025-07-09 19:22:05 -04:00
Matt Rubens
be1eaa51eb
Make account tab visible (#5534)
* Make account tab visible

* Fix order
2025-07-09 19:21:47 -04:00
Vivek Soni
7a8848de3b
fix: use decodeURIComponent in openFile (#5504)
* fix: use decodeURIComponent in openFile

* feat: add error handling for decodeURIComponent and tests

- Added try-catch block around decodeURIComponent to handle invalid escape sequences
- Falls back to original path if decoding fails
- Added comprehensive unit tests for the openFile function
- Tests cover invalid URI encoding, valid encoding, and various edge cases

* fix: update test to handle dynamic workspace paths in CI

* fix: handle Windows path separators in open-file tests

---------

Co-authored-by: Vivek Soni <vivex@Viveks-MacBook-Air-2.local>
Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
2025-07-09 19:08:35 -04:00
github-actions[bot]
5f0860798e
Changeset version bump (#5531)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Chris Estreich <cestreich@gmail.com>
2025-07-09 15:01:52 -07:00
Matt Rubens
8824a719eb
Fix nightly build again (#5527) 2025-07-09 16:50:29 -04:00