Roo-Code/src/core
Roo Code 44c3fd4e57 fix: handle absolute paths in WriteToFileTool consistently with other tools
This fix addresses issue #11208 where WriteToFileTool would fail with
EACCES permission denied when the LLM outputs an absolute path like
"/plans" instead of a relative path.

The fix adds the same absolute path handling that already exists in
SearchReplaceTool and EditFileTool:
- Detect if the provided path is absolute using path.isAbsolute()
- Convert absolute paths to relative paths using path.relative(task.cwd, absolutePath)

This ensures that absolute paths get normalized to workspace-relative
paths rather than attempting to write to system root level directories.

Also adds two new tests for absolute path handling to prevent regression.
2026-02-05 05:10:07 +00:00
..
assistant-message fix: sanitize tool_use_id in tool_result blocks to match API history (#11131) 2026-01-30 23:15:25 -05:00
auto-approval refactor: replace fetch_instructions with skill tool and built-in skills (#11084) 2026-01-29 12:47:36 -07:00
checkpoints Add some functionality to @roo-code/core for the cli (#10584) 2026-01-09 13:05:15 -08:00
condense fix: transform tool blocks to text before condensing (EXT-624) (#10975) 2026-02-02 22:31:09 -05:00
config fix: auto-migrate v1 condensing prompt and handle invalid providers on import (#10931) 2026-01-23 22:32:04 -05:00
context/context-management Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
context-management feat(condense v2.1): add smart code folding (#10942) 2026-01-27 18:47:24 -05:00
context-tracking feat(condense v2.1): add smart code folding (#10942) 2026-01-27 18:47:24 -05:00
diff refactor: remove legacy XML tool calling code (getToolDescription) (#10929) 2026-01-23 19:13:55 -05:00
environment feat: lossless terminal output with on-demand retrieval (#10944) 2026-01-27 22:12:19 -07:00
ignore Follow symlinks in rooignore checks (#7405) 2025-08-26 10:12:20 -04:00
mentions refactor(read_file): Codex-inspired read_file refactor EXT-617 (#10981) 2026-01-29 15:16:32 -07:00
message-manager feat: lossless terminal output with on-demand retrieval (#10944) 2026-01-27 22:12:19 -07:00
message-queue Move message queue to the extension host (#7604) 2025-09-02 19:12:18 -07:00
prompts feat: add support for AGENTS.local.md personal override files (#11183) 2026-02-04 12:53:13 -08:00
protect Mark code-workspace files as protected (#7403) 2025-08-26 00:09:14 -04:00
task IPC fixes for task cancellation and queued messages (#11162) 2026-02-02 11:13:56 -08:00
task-persistence chore: clean up XML legacy code and native-only comments (#10900) 2026-01-22 15:56:11 -05:00
tools fix: handle absolute paths in WriteToFileTool consistently with other tools 2026-02-05 05:10:07 +00:00
webview fix(cli): resolve race condition causing provider switch during mode changes (#11205) 2026-02-04 18:26:41 -08:00