Commit graph

8 commits

Author SHA1 Message Date
Roo Code
65d432d90a fix: stop spinner on failed file edits and add re-anchor experiment (#12032)
Part 1 - UI Bug Fix:
- ApplyDiffTool: Add finalizePartialToolAskIfNeeded to close partial ask
  messages on error paths, preventing stuck spinners
- ApplyDiffTool: Always show diff_error on first failure (was >= 2)
- ApplyDiffTool: Set didToolFailInCurrentTurn on diff apply failure
- EditFileTool: Always show diff_error on first failure (was >= 2)

Part 2 - Re-anchor Before Edit Experiment:
- Add reAnchorBeforeEdit experiment type to packages/types
- Add RE_ANCHOR_BEFORE_EDIT to shared experiments config (default off)
- When enabled, adds system prompt guideline instructing the model to
  re-read a file before every edit to reduce hallucination-based failures
- Add English localization keys for settings UI
- Settings UI auto-renders via existing ExperimentalSettings component
2026-03-29 12:17:05 +00:00
Chiranjeevisantosh Madugundi
5db2062d0c
feat: show aggregated +/− line counts in FileChangesPanel header (#11618)
* feat: show aggregated +/− line counts in FileChangesPanel header

* feat(FileChangesPanel): show merged diff relative to final file state

* fix(webview): restrict readFileContent to paths inside the workspace

* fix: add workspace-boundary validation to readFileContent to prevent path traversal

* fix(tests): mock isPathOutsideWorkspace in readFileContent spec

* fix(tests): mock isPathOutsideWorkspace in readFileContent spec

* fix: use path.resolve/path.sep in readFileContent test mock for cross-platform compatibility

The isPathOutsideWorkspace mock used hardcoded Unix-style path comparisons
(/mock/workspace with forward slashes), which fails on Windows where
path.resolve() produces paths with drive letters (C:\mock\workspace\...).

Replace manual string normalization with path.resolve() and path.sep so the
mock behaves correctly on both Windows and Unix.

---------

Co-authored-by: Roo Code <roomote@roocode.com>
2026-02-19 23:22:20 -07:00
Hannes Rudolph
8de9337e63
chore: remove XML tool calling support (#10841)
Co-authored-by: daniel-lxs <ricciodaniel98@gmail.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2026-01-20 20:25:08 -05:00
Chris Estreich
a4eb15b5a8
Add some functionality to @roo-code/core for the cli (#10584) 2026-01-09 13:05:15 -08:00
Daniel
ef4b95060b
fix: stabilize file paths during native tool call streaming (#10555) 2026-01-08 17:38:58 -05:00
Daniel
05f35735f0
feat: enable multiple native tool calls per turn with failure guardrails (#9273) 2025-11-25 20:21:13 -05:00
Daniel
271d01bada
fix: Update tools to return structured JSON for native protocol (#9373) 2025-11-18 20:01:15 -05:00
Daniel
5e6e601b0a
Add native tool call support (#9159)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-11-13 12:48:35 -05:00
Renamed from src/core/tools/applyDiffTool.ts (Browse further)