Commit graph

4548 commits

Author SHA1 Message Date
Daniel Riccio
4da7b79684
fix: ensure slider always displays valid value (min 2) for concurrent file reads
- Fix issue where slider could display values below minimum when enabled with maxConcurrentFileReads <= 1
- Add test cases for edge cases (value 0 and 1)
- Ensure UI always shows at least the minimum value of 2
2025-05-30 18:55:41 -05:00
sam hoang
105aef70b1
feat(ConcurrentFileReadsExperiment): improve logic for enabling/disabling and add tests 2025-05-31 04:55:11 +07:00
Canyon Robins
da63d1e590
[Condense] Fix bug where bedrock requires a user message first (#4150)
* [Condense] Fix bug where bedrock requires a user message first

* update tests

* Revert previous commits

* always prepend user message

* fix tests

* changeset
2025-05-30 17:25:05 -04:00
Sam Hoang Van
9ba0cd5c7a
feat(read_file): enhance file reading capabilities with multi-file support and improved parameter handling (#2886)
* feat(read_file): enhance file reading capabilities with multi-file support and improved parameter handling

fix(read_file): change return to continue on approval rejection in readFileTool

Enhance readFileTool with improved error handling and validation

- Introduced a FileEntry interface for better type management.
- Added validation for start_line and end_line to ensure proper ranges.
- Implemented RooIgnore validation before processing files.
- Enhanced error handling with dedicated functions for file and global errors.
- Streamlined file reading logic to handle binary files, definitions-only mode, and line thresholds more effectively.
- Improved user feedback for empty files and read limits.

chore: update Jest snapshot for system prompt tool usage

Refactor read-file tool to support XML input format and multiple line ranges

- Updated the `getReadFileDescription` function to reflect new XML structure for file reading requests.
- Modified `readFileTool` to parse XML input, allowing multiple line ranges for each file.
- Removed old parsing logic that handled line ranges as separate parameters.
- Implemented validation for line ranges and ensured proper error handling for file access.
- Adjusted approval messaging to accommodate new line range format.
- Enhanced error handling to provide consistent feedback for file read errors.

update from KJ7LNW  comment

feat: add maxConcurrentFileReads setting to enhance read_file tool performance

feat: enhance readFileTool with XML parsing and file processing state tracking

feat: enhance readFileTool to include user feedback handling and processing state tracking

chore: clean up read_file tool documentation by removing extra newlines

feat: update read_file tool tests to handle user feedback and approval states

feat: add tests for feedback message formatting and XML special character handling in read_file tool

Implement code changes to enhance functionality and improve performance

feat: increase max concurrent file reads and adjust slider range in settings

feat: increase default max concurrent file reads from 5 to 15 across settings and context management

fix(read_file): enhance legacy path handling and remove duplicate parameters

feat(read_file): enhance file description handling and add support for multiple files in messages

done poc for new ux

idea 1

* fix the test

* fix: normalize locale file formatting to use tabs

- Applied prettier formatting to all locale JSON files
- Fixed mixed indentation (spaces/tabs) to use consistent tabs
- Aligns with project's prettier configuration

* fix(settings): improve checkbox handling and slider configuration in ConcurrentFileReadsExperiment

* fix(read_file): enhance description to include partial reads support

* fix(read_file): update description for partial reads and improve example clarity

* fix: suggestions

* fix: translations

* test: update system prompt snapshots for multi-file read tool

* fix: remove batch permission question from readFile tool translations

---------

Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
2025-05-30 17:09:42 -04:00
Ryan Pfister
177e7a8eb9
Fix UTF-8 encoding in ExecaTerminalProcess (#3989)
* Fix UTF-8 encoding issue in integrated terminal

- Set LANG and LC_ALL environment variables to en_US.UTF-8
- Resolves Encoding::CompatibilityError in Ruby/CocoaPods commands
- Ensures consistent UTF-8 encoding across all terminal sessions

This change addresses the terminal encoding issue where commands like
'pod install' would fail due to incompatible character encoding. The
fix ensures all integrated terminals are initialized with proper
UTF-8 locale settings.

* Add comprehensive unit tests for ExecaTerminalProcess UTF-8 encoding fix

- Tests verify LANG and LC_ALL are set to en_US.UTF-8
- Tests ensure existing environment variables are preserved
- Tests confirm UTF-8 settings override conflicting locale values
- Addresses PR feedback requesting test coverage for encoding fix
- All 7 tests passing with proper mocking of execa and ps-tree
2025-05-30 16:24:04 -04:00
Matt Rubens
116a50f7b4
Pass headers to SSE (fixes #2705) (#4148)
* Pass headers to SSE

* Add changeset
2025-05-30 15:34:19 -04:00
Christiaan Arnoldus
dabb95f2df
bugfix: Set sidebar name (#4146)
* Set the sidebar name

* Have Roo Code update its own translations
2025-05-30 09:33:15 -04:00
pugazhendhi-m
934c83d3d9
Add task metadata to Unbound API requests (#4144)
* Add structured task metadata to Unbound API requests

* Moves origin app to a constant

---------

Co-authored-by: Pugazhendhi <pugazhendhi@unboundsecurity.ai>
2025-05-30 07:40:35 -04:00
Matt Rubens
78769f187c
Revert "Add roocode.com website to monorepo" (#4145)
Revert "Add roocode.com website to monorepo (#4128)"

This reverts commit 0f22eabb1b.
2025-05-30 07:37:47 -04:00
pugazhendhi-m
7ee90f916f
Refactor model cache breakpoint logic to use model info in Unbound (#4137)
Co-authored-by: Pugazhendhi <pugazhendhi@unboundsecurity.ai>
2025-05-29 23:33:12 -07:00
Chris Estreich
0f22eabb1b
Add roocode.com website to monorepo (#4128)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-05-29 22:35:14 -07:00
Canyon Robins
6762b579b2
[Evals] Headless evals with Docker (#4121)
* [Evals] Try to resurrect headless evals with Docker

* fixes; now it runs

* rm

* remove commented out files

* remove trailing space

* nit

* throw error on concurrency attempt
2025-05-29 15:36:11 -07:00
github-actions[bot]
0fd8105cfb
Changeset version bump (#4086)
* changeset version bump

* Update package.json

* Update CHANGELOG.md

---------

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-05-29 18:33:52 -04:00
Chris Estreich
699b0c051b
Appease changests (#4126) 2025-05-29 15:27:01 -07:00
Matt Rubens
af5b1b402d
v3.19.0 (#4109) 2025-05-29 18:15:23 -04:00
John Richmond
838256a7c1
Add roo cloud settings (#4117)
* Add roo cloud settings

First setting controls logging task messages.

* Update packages/cloud/src/TelemetryClient.ts

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>

* Fix typo

---------

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-05-29 15:10:34 -07:00
Chris Estreich
f3e124e083
Fix deeplinks again (#4125) 2025-05-29 14:49:24 -07:00
Chris Estreich
b0821b3148
Pass editor deeplink URI to app.roocode.com (#4120) 2025-05-29 13:45:06 -07:00
Matt Rubens
8de608a0df
Account tab cleanup (#4119) 2025-05-29 16:41:19 -04:00
John Richmond
1801af26b7
Cleanup unused class (#4115)
Leftover from a rename, I think.
2025-05-29 11:55:26 -07:00
Chris Estreich
170fde848a
Add appName to TelemetryProperties (#4111) 2025-05-29 10:09:40 -07:00
Canyon Robins
3139971f4a
[Condense] Add condense button to expanded task view (#4110) 2025-05-29 09:37:49 -07:00
Matt Rubens
337b5dac88
Condensing fixes (#4107)
* Add missing telemetry types

* Give IconButton the pointer cursor when enabled

* Change context condensing to use a Lucide icon

* Mock Lucide icons globally
2025-05-29 10:45:13 -04:00
ChuKhaLi
c03b9f9d25
Update codebase search description to emphasize English query require… (#4089)
* Update codebase search description to emphasize English query requirement

* refactor: improve the wording

---------

Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-05-29 09:03:20 -04:00
Ruakij
201fb3b5a2
Fix: Ensure write_to_file creates empty files when content is empty (#3871)
* Fix #3650: Allow empty content in write_to_file tool

Change validation from !newContent to newContent === undefined
to allow empty strings while still rejecting undefined values.

* Add unit tests for writeToFileTool
2025-05-29 08:52:26 -04:00
zeo
0ef52c8cd7
Add DeepSeek R1 0528 to the Chutes provider (#4105)
New model for the Chutes provider, surpasses the old DeepSeek R1
and is free so it is also set to be the default model now.
2025-05-29 06:41:05 -04:00
Chris Estreich
9d9880a74b
Fix Roo Code Nightly package.json generation (#4098) 2025-05-28 22:23:12 -07:00
John Richmond
d4c00e58ed
Simplify CloudService callbacks (#4097)
- Remove AuthService callbacks, add user-info event
- Store userInfo on AuthService and fetch it when sessions go active
- Simplify CloudService callbacks to just stateChanged
- Add cloudUserInfo to state and remove authenticatedUser message
2025-05-28 21:15:48 -07:00
Chris Estreich
7820b7517a
Roo Code Cloud (#4069)
Co-authored-by: John Richmond <5629+jr@users.noreply.github.com>
2025-05-28 20:43:30 -07:00
Matt Rubens
4cf240f3db
Check rooignore for insert_content and search_and_replace (#4094) 2025-05-28 22:36:19 -04:00
xyOz
aa6265462e
@directory not respecting .rooIgnore Fix (#4075)
* Issue fixed.

* Update src/core/mentions/index.ts

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

* Update index.ts

---------

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-05-28 21:58:50 -04:00
Canyon Robins
70e753ebb1
[Condense] Move condense button out of expanded task menu (#4093)
* [Condense] Move condense button out of expanded task menu

* tests

* fix test

* fix test again

* tailwind css
2025-05-28 18:58:08 -07:00
Matt Rubens
3ee7786a1b
Update AWS regions to include Spain and Hyderabad (solves #3862) (#4042)
Update AWS regions to include Spain and Hyderabad
2025-05-28 21:41:20 -04:00
Canyon Robins
4804e3b3b9
[Condense] Move condense settings out of experimental and defualt enable (#4088)
* [Condense] Move condense settings out of experimental and defualt enable

* tests

* wip

* Update translations

* fixes

* more tests

* changeset

* wip

* update translations

* fix more translations
2025-05-28 17:05:39 -07:00
Matt Rubens
12669e1e64
Turn Prompts tab into Modes tab and move support prompts to Settings (#4078) 2025-05-28 17:47:37 -04:00
Christiaan Arnoldus
b7f606db34
Improve POSIX shell compatibility in pre-push hook (#4053)
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
2025-05-28 14:46:40 -07:00
Christiaan Arnoldus
57038b75a0
Fix menu breaking when Roo is moved between primary and secondary sidebars (#4045)
* Fix menu breaking when Roo is moved between primary and secondary sidebars

Hello Roo Team! We changed this on the Kilo side and thought it might be useful to you!

The menu buttons (Settings etc.) stop working when Roo is moved between the primary and secondary sidebars.
This is because ClineProvider is prematurely disposed in that case
This change prevents the ClineProvider from being disposed when hosted in a sidebar.
It should still be disposed when hosted in a tab, because they have their own ClineProvider instance.

Found while investigating https://github.com/Kilo-Org/kilocode/issues/502.

* refactor: improve logging

* fix: extra bracket

---------

Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-05-28 17:07:03 -04:00
Canyon Robins
2e5a1a8e1d
[Condense] Skip condense and show error if the context grows (#4061)
* [Condense] Skip condense and show error if the context grows

* update tests

* changeset

* nit: error should be nonempty

* update translations

* add more errors

* add more test cases

* update translations

* pipe error back from truncate code

* add condense_context_error ClineMessage

* fixes

* translations
2025-05-28 15:55:07 -04:00
github-actions[bot]
5fa2cd2055
Update contributors list (#4044)
docs: update contributors list [skip ci]

Co-authored-by: mrubens <mrubens@users.noreply.github.com>
2025-05-28 15:07:17 -04:00
மனோஜ்குமார் பழனிச்சாமி
5c4280c103
bugfix: Update PAGER env for Windows compatibility in Terminal (#3986)
Update PAGER environment variable for Windows compatibility in Terminal class
2025-05-28 15:05:00 -04:00
xyOz
2c58caeb59
Chat input clearing during running task (#4084)
Fixes bug
2025-05-28 14:59:02 -04:00
Sacha Sayan
145ce6e7b5
Lock mermaid diagram sizes. (#3514) 2025-05-28 13:45:52 -04:00
Adrian Belmans
5d33d4c3ff
Mcp server instructions update fix (#3699)
* Refactor weather server example implementation inside of prompt to use new MCP SDK features

* update NPM install instructions as well

* docs: minor improvements

* refactor: improve readability on mcpHub check

* fix: add missing bracket

* refactor: add interfaces

---------

Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-05-28 13:27:01 -04:00
ChuKhaLi
171307c2dc
fix: ensure correct precedence for roleDefinition and customInstructions when generating system prompt (#3791)
* fix: ensure correct precedence for roleDefinition and customInstructions

* Refactors mode selection logic for custom modes

Refactors the mode selection logic to prioritize custom modes
2025-05-28 13:23:49 -04:00
Sam Hoang Van
e8b4dda922
feat: Make checkpoint on new task (#3834)
* feat: Make checkpoint on new task

Ensures that invoking the `newTaskTool` always creates a checkpoint, even if no files have changed. This provides a consistent state snapshot before a sub-task is initiated.

* refactor: remove delay

---------

Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-05-28 13:13:42 -04:00
Sam Hoang Van
acd51c5120
fix(webview): resolve memory leak in ChatView by stabilizing callback props (#3926)
* fix(webview): resolve memory leak in ChatView by stabilizing callback props

- Stabilize handleSendMessage using clineAskRef to prevent frequent re-creation
- Stabilize toggleRowExpansion by extracting handleSetExpandedRow and managing dependencies
- Re-integrate scrolling logic into useEffect hook to avoid destabilizing callbacks
- Add everVisibleMessagesTsRef to reduce unnecessary ChatRow remounts by Virtuoso
- Update onToggleExpand signature to accept timestamp parameter for better stability
- Remove diagnostic console.log statements used for debugging callback changes

These changes address detached DOM elements memory leak caused by frequent
callback re-creation triggering unnecessary component re-renders and preventing
proper garbage collection of chat message DOM nodes.

* comment correct TTL

---------

Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-05-28 13:11:38 -04:00
Trung Dang
dde71d24e4
feat(McpHub): inject env vars on whole mcp config (#3970)
* types(utils/config): improve return type infer

* feat(McpHub): inject env variable on whole mcp config

* fix: check for undefined configInjected

* refactor: improve type assertion

---------

Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-05-28 13:10:40 -04:00
Matt Rubens
1365800474
Fix centering of the about text (#4080) 2025-05-28 11:55:00 -04:00
Matt Rubens
3bfe2a3873
Update CHANGELOG.md 2025-05-28 11:24:06 -04:00
Chris Estreich
39d0f68659
Improve configuration for npm publish of @roo-code/types (#4062) 2025-05-27 22:10:41 -07:00