continue icon indicating copy to clipboard operation
continue copied to clipboard

Inconsistent Path Format Requirements Across Tools

Open shanevcantwell opened this issue 11 months ago • 3 comments

Before submitting your bug report

Relevant environment info

- OS: any
- Continue version: 1.3.28 (verified against main branch)
- IDE version: any
- Model: any (all models receive conflicting instructions)
- config: any

Description

Inconsistent Path Format Requirements Across Tools

Summary

Different tools specify contradictory path format requirements. A model that successfully reads a file may fail to edit it using the same path format.

The Conflict

Tool Path Instruction
read_file "Can be relative, absolute, tilde, or file:// URI"
read_file_range "relative to workspace root (NOT uri or absolute path)"
multi_edit "RELATIVE to the project/workspace root"
edit_file "the relative filepath"
create_new_file "Can be relative, absolute, tilde, or file:// URI"
ls "Can be relative, absolute, tilde, or file:// URI"

The Problem

  1. Model reads a file using /absolute/path/to/file.ts (allowed by read_file)
  2. Model tries to edit the same file using /absolute/path/to/file.ts
  3. multi_edit expects relative path only → confusion or failure

The model has no clear guidance that different tools require different formats.

Proposed Fix

Option A: Standardize all tools to accept the same formats

"Path can be relative to workspace root (e.g., 'src/file.ts'), absolute,
tilde-prefixed (~/...), or file:// URI. Relative paths are recommended."

Option B: Make restrictions explicit and consistent If some tools truly require relative paths only, state this clearly:

"This tool requires paths relative to workspace root. Do not use absolute paths or URIs.
Use the same format shown in read_file results."

Related Issues

  • #9045 - Path format failures with multi_edit on Windows
  • #8936 - Dollar sign in paths breaks read_file/multi_edit
  • #3255 - VS Code extension host file resolution issues

To reproduce

No response

Log output


shanevcantwell avatar Dec 25 '25 02:12 shanevcantwell

Related Issues

  • #9178 - model mistreat absolute path as relative path
  • #9045 - Code writing to file failed (path format failures with multi_edit on Windows)
  • #8936 - File system tools (read_file, multi_edit) fail on paths containing dollar signs ($) on Windows
  • #8464 - file_path is required error
  • #7495 - under Agent mode multiedit tool has error
  • #3767 - Backslash instead of forward slash in chat file path
  • #3255 - Continue causes VS Code extension host to fail resolving files
  • #8931 - Windows file:// URI handling in uriToPath() causes "Invalid saved config URI" and path doubling

continue avatar Dec 25 '25 02:12 continue

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Mar 25 '26 02:03 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

github-actions[bot] avatar Apr 05 '26 02:04 github-actions[bot]